NUCLEO-F303RE and ESP8266 Based Air Quality Monitoring System with I2C LCD Display and Buzzer Alerts
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
The circuit in question is designed to interface a NUCLEO-F303RE development board with several peripheral devices, including an LCD Display (16x4 I2C), an ESP8266 ESP-01 WiFi module, a Buzzer module, and an MQ-2 gas sensor. The NUCLEO-F303RE board serves as the central processing unit, managing data communication over I2C with the LCD display, serial communication with the WiFi module, analog signal reading from the MQ-2 sensor, and digital control of the Buzzer module. The circuit is powered by the NUCLEO-F303RE board's voltage outputs, with common ground connections throughout the components.
Component List
NUCLEO-F303RE Board
- Description: A development board featuring an STM32F303RE microcontroller, suitable for running complex embedded applications.
- Pins: SCL_I2C(PA15), SDA_I2C(PB7), USART_1 TX, USART1_RX (PC5), USART_2 RX(PA3), USART_2 TX(PA2), TIM1(PC0), ADC1(PA0), RELAY_IN(PB9), +3V, +5V, GND
LCD Display 16x4 I2C
- Description: A 16x4 character LCD display with an I2C interface for displaying text and simple graphics.
- Pins: SCL, SDA, VCC, GND
ESP8266 ESP-01 WiFi Module
- Description: A compact WiFi module that provides internet connectivity to microcontroller-based projects.
- Pins: TXD, CH_PD, RST, VCC, GND, GPIO_2, GPIO_0, RXD
Buzzer Module
- Description: An electronic buzzer capable of producing audible tones when driven by a digital signal.
- Pins: GND, Vcc, I/O
MQ-2 Sensor
- Description: A gas sensor used for detecting a variety of gases including LPG, smoke, and alcohol vapor.
- Pins: VCC, GND, A0, D0
Wiring Details
NUCLEO-F303RE Board
- SCL_I2C(PA15) connected to LCD Display SCL
- SDA_I2C(PB7) connected to LCD Display SDA
- USART_1 TX connected to ESP8266 ESP-01 WiFi Module TXD
- USART1_RX (PC5) connected to ESP8266 ESP-01 WiFi Module RXD
- TIM1(PC0) connected to Buzzer Module I/O
- ADC1(PA0) connected to MQ-2 Sensor A0
- +3V connected to ESP8266 ESP-01 WiFi Module CH_PD and VCC
- +5V connected to Buzzer Module Vcc, LCD Display VCC, and MQ-2 Sensor VCC
- GND connected to Buzzer Module GND, LCD Display GND, MQ-2 Sensor GND, and ESP8266 ESP-01 WiFi Module GND
LCD Display 16x4 I2C
- SCL connected to NUCLEO-F303RE Board SCL_I2C(PA15)
- SDA connected to NUCLEO-F303RE Board SDA_I2C(PB7)
- VCC connected to NUCLEO-F303RE Board +5V
- GND connected to NUCLEO-F303RE Board GND
ESP8266 ESP-01 WiFi Module
- TXD connected to NUCLEO-F303RE Board USART_1 TX
- RXD connected to NUCLEO-F303RE Board USART1_RX (PC5)
- CH_PD connected to NUCLEO-F303RE Board +3V
- VCC connected to NUCLEO-F303RE Board +3V
- GND connected to NUCLEO-F303RE Board GND
Buzzer Module
- I/O connected to NUCLEO-F303RE Board TIM1(PC0)
- Vcc connected to NUCLEO-F303RE Board +5V
- GND connected to NUCLEO-F303RE Board GND
MQ-2 Sensor
- A0 connected to NUCLEO-F303RE Board ADC1(PA0)
- VCC connected to NUCLEO-F303RE Board +5V
- GND connected to NUCLEO-F303RE Board GND
Documented Code
No code has been provided for the microcontrollers in the circuit. The documentation of the code would typically include descriptions of the functions, initialization procedures, main loop, interrupt service routines, and any libraries or external modules used. Since no code is available, this section cannot be completed. If code becomes available at a later date, it should be documented here following the structure mentioned above.