Develop a system that measures AC current irrespective of the load and calculates the energy consumed in kilowatt-hours (kWh). The system will utilize an STM32F103C8T6 microcontroller and a ZMCT103 current sensor. The data will be saved in EEPROM and displayed on an LCD to show the current energy consumption. The project will leverage I2C, UART, and timer functionalities.
- AC Current Measurement: Accurately measure AC current with the ZMCT103 sensor.
- Energy Calculation: Calculate energy consumption in kWh based on measured current.
- Data Storage: Save measurement data in EEPROM for later analysis.
- User Interface: Display current energy consumption on an LCD.
- Communication Interfaces: Utilize I2C for the EEPRom and timers for periodic updates.
- STM32F103C8T6 Microcontroller: Central processing unit for the project.
- ZMCT103 Current Sensor: For measuring AC current.
- LCD Display: To show the current energy consumed.
- EEPROM: For storing measurement data.
- Supporting Components: Breadboard, jumper wires, power supply, etc.
(i) Install VS Code and necessary libraries for STM32 development.
(i)Microcontroller Setup: Connect the ZMCT103 sensor and LCD to the STM32.
- Current Sensor Configuration: Set up the ZMCT103 for accurate current measurement.
- LCD Configuration: Configure the LCD for displaying information via I2C.
- Timer Setup: Set timers for periodic updates to the LCD.