【E1546】STM32+MQ-2烟雾传感器源程序

2021-10-17 11:37:07      索炜达电子      1674     

项目编号:E1538

文件大小:286K

源码说明:带中文注释

开发环境:C编译器

简要概述:

最近在做C8T6的烟雾模块,网上参考有点少,整理一下分享给大家。
STM32F103C8T6自带AD,我买了个MQ-2模块直接接线

【E1546】STM32+MQ-2烟雾传感器源程序

串口调试助手选择 115200-N-8-1
引脚可以改 smog.c void Smog_Init(void)选择自己需要的引脚即可

目录│文件列表:

 └ smog成功

    ├ Doc

    │  └ readme.txt

    ├ 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

    │     │ BB.hex

    │     └ BH-F103.hex

    └ User

       │ main.c

       │ stm32f10x_conf.h

       │ stm32f10x_it.c

       │ stm32f10x_it.h

       ├ ADCsmg

       │  │ adc.c

       │  └ adc.h

       ├ DELAY

       │  │ delay.c

       │  └ delay.h

       ├ SMOG

       │  │ smog.c

       │  └ smog.h

       ├ SYS

       │  └ sys.h

       └ USART

          │ usart.c

          └ usart.h

TAGSTM32
  • 21 次
  • 1 分