一、模块接线如下
1.烟雾传感器
VCC------------->+5V
GND------------->GND
DO-------------->PG9
2.超声波传感器
VCC------------->5V
GND------------->GND
Trig------------>PB6
Echo------------>PB7
3.光照强度传感器
VCC------------->3.3V
GND------------->GND
SCL------------->PC12
SDA------------->PC11
ADDR------------>GND
4.温湿度传感器
VCC------------->3.3V
GND------------->GND
DATA------------>PA8
5.继电器
IN1------------->PG2 用于超声波
IN2------------->PG3 用于光照强度
IN3------------->PG4 用于烟雾传感器
IN4------------->PG5 用于温湿度传感器
二、程序下载
下载软件:FlyMcu
下载选项:RTS的高电平复位,DTR高电平进BootLoader
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
STM32+超声波传感器(HC_RS04)+光照传感器(BH1750)+温湿度传感器(DHT11)+烟雾传感器(MQ_2)的例子 (242个子文件)
test.uvgui.Administrator 75KB
test.axf 411KB
test.uvgui_JBC.bak 150KB
test.uvgui_Administrator.bak 75KB
test_uvopt.bak 25KB
test_uvproj.bak 21KB
keilkill.bat 399B
stm32f10x_tim.c 107KB
lcd.c 82KB
stm32f10x_flash.c 61KB
stm32f10x_rcc.c 50KB
stm32f10x_adc.c 46KB
stm32f10x_i2c.c 45KB
stm32f10x_can.c 44KB
stm32f10x_usart.c 37KB
system_stm32f10x.c 36KB
stm32f10x_fsmc.c 35KB
stm32f10x_spi.c 30KB
stm32f10x_dma.c 29KB
stm32f10x_sdio.c 28KB
stm32f10x_gpio.c 23KB
stm32f10x_dac.c 19KB
core_cm3.c 17KB
stm32f10x_cec.c 11KB
stm32f10x_pwr.c 9KB
stm32f10x_rtc.c 8KB
stm32f10x_bkp.c 8KB
misc.c 7KB
stm32f10x_exti.c 7KB
usart.c 6KB
stm32f10x_wwdg.c 6KB
stm32f10x_dbgmcu.c 5KB
stm32f10x_iwdg.c 5KB
main.c 5KB
stm32f10x_it.c 4KB
stm32f10x_crc.c 3KB
adc.c 3KB
crc16.c 3KB
myiic.c 3KB
dht11.c 3KB
hc_rs04.c 3KB
timer.c 2KB
delay.c 1KB
beep.c 1KB
bh1750.c 1KB
key.c 889B
led.c 559B
relay.c 528B
mq_2.c 391B
lcd.crf 376KB
stm32f10x_tim.crf 362KB
main.crf 359KB
hc_rs04.crf 355KB
stm32f10x_can.crf 349KB
stm32f10x_adc.crf 347KB
stm32f10x_rcc.crf 347KB
stm32f10x_flash.crf 347KB
stm32f10x_i2c.crf 346KB
usart.crf 346KB
bh1750.crf 346KB
stm32f10x_usart.crf 346KB
dht11.crf 346KB
stm32f10x_fsmc.crf 346KB
stm32f10x_sdio.crf 344KB
stm32f10x_spi.crf 344KB
stm32f10x_gpio.crf 344KB
myiic.crf 343KB
stm32f10x_dma.crf 343KB
stm32f10x_dac.crf 342KB
stm32f10x_cec.crf 342KB
system_stm32f10x.crf 341KB
stm32f10x_bkp.crf 341KB
stm32f10x_rtc.crf 341KB
stm32f10x_pwr.crf 341KB
stm32f10x_exti.crf 341KB
adc.crf 340KB
stm32f10x_wwdg.crf 340KB
misc.crf 340KB
beep.crf 340KB
delay.crf 340KB
stm32f10x_iwdg.crf 340KB
timer.crf 340KB
relay.crf 340KB
stm32f10x_crc.crf 340KB
stm32f10x_it.crf 340KB
led.crf 340KB
key.crf 340KB
crc16.crf 340KB
stm32f10x_dbgmcu.crf 340KB
mq_2.crf 339KB
core_cm3.crf 4KB
main.d 2KB
stm32f10x_dbgmcu.d 2KB
stm32f10x_usart.d 2KB
stm32f10x_flash.d 2KB
system_stm32f10x.d 2KB
stm32f10x_exti.d 2KB
stm32f10x_iwdg.d 2KB
stm32f10x_gpio.d 2KB
stm32f10x_fsmc.d 2KB
共 242 条
- 1
- 2
- 3
资源评论
qq_31363467
- 粉丝: 2
- 资源: 9
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功