2021-09-25 15:35:03 索煒達(dá)電子 2702
項(xiàng)目編號(hào):E1307
文件大?。?96K
源碼說(shuō)明:帶中文注釋
開(kāi)發(fā)環(huán)境:C編譯器
簡(jiǎn)要概述:
STM32F103RCT6+光敏傳感器監(jiān)測(cè)光照強(qiáng)度可以用串口助手接收
我用的是四針腳光敏傳感器
不同型號(hào)的STM32 ADC通道的選擇也不一樣
我使用的是STM32F103RCT6單片機(jī) 選擇了ADC2 通道6 對(duì)應(yīng)的是PA6引腳。
希望對(duì)你們有幫助
目錄│文件列表:
└ STM32+光敏傳感器
├ Libraries
│ ├ CMSIS
│ │ │ core_cm3.c
│ │ │ core_cm3.h
│ │ │ stm32f10x.h
│ │ │ system_stm32f10x.c
│ │ │ system_stm32f10x.h
│ │ └ startup
│ │ │ startup_stm32f10x_cl.s
│ │ │ startup_stm32f10x_hd.s
│ │ │ startup_stm32f10x_hd_vl.s
│ │ │ startup_stm32f10x_ld.s
│ │ │ startup_stm32f10x_ld_vl.s
│ │ │ startup_stm32f10x_md.s
│ │ │ startup_stm32f10x_md_vl.s
│ │ └ startup_stm32f10x_xl.s
│ └ STM32F10x_StdPeriph_Driver
│ ├ inc
│ │ │ misc.h
│ │ │ stm32f10x_adc.h
│ │ │ stm32f10x_bkp.h
│ │ │ stm32f10x_can.h
│ │ │ stm32f10x_cec.h
│ │ │ stm32f10x_crc.h
│ │ │ stm32f10x_dac.h
│ │ │ stm32f10x_dbgmcu.h
│ │ │ stm32f10x_dma.h
│ │ │ stm32f10x_exti.h
│ │ │ stm32f10x_flash.h
│ │ │ stm32f10x_fsmc.h
│ │ │ stm32f10x_gpio.h
│ │ │ stm32f10x_i2c.h
│ │ │ stm32f10x_iwdg.h
│ │ │ stm32f10x_pwr.h
│ │ │ stm32f10x_rcc.h
│ │ │ stm32f10x_rtc.h
│ │ │ stm32f10x_sdio.h
│ │ │ stm32f10x_spi.h
│ │ │ stm32f10x_tim.h
│ │ │ stm32f10x_usart.h
│ │ └ stm32f10x_wwdg.h
│ └ src
│ │ misc.c
│ │ stm32f10x_adc.c
│ │ stm32f10x_bkp.c
│ │ stm32f10x_can.c
│ │ stm32f10x_cec.c
│ │ stm32f10x_crc.c
│ │ stm32f10x_dac.c
│ │ stm32f10x_dbgmcu.c
│ │ stm32f10x_dma.c
│ │ stm32f10x_exti.c
│ │ stm32f10x_flash.c
│ │ stm32f10x_fsmc.c
│ │ stm32f10x_gpio.c
│ │ stm32f10x_i2c.c
│ │ stm32f10x_iwdg.c
│ │ stm32f10x_pwr.c
│ │ stm32f10x_rcc.c
│ │ stm32f10x_rtc.c
│ │ stm32f10x_sdio.c
│ │ stm32f10x_spi.c
│ │ stm32f10x_tim.c
│ │ stm32f10x_usart.c
│ └ stm32f10x_wwdg.c
├ Project
│ │ BH-F103.uvoptx
│ │ BH-F103.uvprojx
│ ├ DebugConfig
│ │ └ Target_1_STM32F103VE_1.0.0.dbgconf
│ └ Objects
│ └ BH-F103.hex
└ User
│ main.c
│ stm32f10x_conf.h
│ stm32f10x_it.c
│ stm32f10x_it.h
├ ADC
│ │ adc.c
│ └ adc.h
├ BEEP
│ │ beep.c
│ └ beep.h
├ DELAY
│ │ delay.c
│ └ delay.h
├ LCD
│ │ font.h
│ │ lcd.c
│ └ lcd.h
├ LSENS
│ │ lsens.c
│ └ lsens.h
├ SYS
│ └ sys.h
└ USART
│ usart.c
└ usart.h