ATMEGA328-Based Smart Induction Motor Controller with Bluetooth and LCD Display
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit is designed to control an AC light and a single-phase induction motor using an ATMEGA328 microcontroller. It includes various sensors and modules such as a DHT11 humidity and temperature sensor, an HC-05 Bluetooth module, an HW-040 rotary encoder, and an SW-420 vibration sensor. The circuit also features an LCD display for user interaction and feedback.
Component List
ATMEGA328
- Description: Microcontroller
- Pins: RESET, D0, D1, D2, D3, D4, VCC, GND, CRYSTAL, D5, D6, D7, D8, D9, D10, D11, D12, D13, AREF, A0, A1, A2, A3, A4, A5
HC-05 Bluetooth Module
- Description: Bluetooth communication module
- Pins: Key, VCC, TXD, RXD, State, GND
HW-040 Rotary Encoder
- Description: Rotary encoder for user input
- Pins: GND, +, SW, DT, CLK
SW-420 Vibration Sensor
- Description: Vibration sensor
- Pins: vcc, Ground, Digital output
DHT11 Humidity and Temperature Sensor
- Description: Humidity and temperature sensor
- Pins: VDD, DATA, NULL, GND
230V to 12V Step Down Transformer
- Description: Transformer to step down voltage
- Pins: phase
Bridge Rectifier
- Description: Converts AC to DC
- Pins: AC input +, AC input -, +, -
1N4007 Rectifier Diode
- Description: Rectifier diode
- Pins: Cathode, Anode
Electrolytic Capacitor
- Description: Capacitor
- Pins: -, +
- Properties: Capacitance: 0.00047 Farads
7805
- Description: Voltage regulator
- Pins: Vin, Gnd, Vout
LED: Two Pin (red)
- Description: LED
- Pins: cathode, anode
Resistor
- Description: Resistor
- Pins: pin1, pin2
- Properties: Resistance: 330 Ohms
GND
- Description: Ground connection
- Pins: GND
Ceramic Capacitor
- Description: Capacitor
- Pins: pin0, pin1
- Properties: Capacitance: 0.0000001 Farads
Vcc
- Description: Power supply connection
- Pins: Vcc
LM358 Op-Amp
- Description: Operational amplifier
- Pins: 8, 1, 2, 3, 4, 5, 6, 7
1N4148 Diode
- Description: General-purpose diode
- Pins: Cathode, Anode
Adafruit Standard LCD 16x2
- Description: LCD display
- Pins: VSS, VDD, V0, RS, R/W, E, DB0, DB1, DB2, DB3, DB4, DB5, DB6, DB7, LED+, LED-
Optoisolator MOC3021
- Description: Optoisolator
- Pins: ANODE, CATHODE, N/C, MAIN TERM, NC
Single Phase Induction Motor
- Description: Motor
- Pins: 1, neutral, 3
BT136 600
- Description: Triac
- Pins: MT1, MT2, GATE
240V Power Source
- Description: Power source
- Pins: Live, Neutral
Fuse
- Description: Fuse
- Pins: Terminal 1, Terminal 2
Crystal 16MHz
- Description: Crystal oscillator
- Pins: pin 0, pin 1
2Pin Push Switch
- Description: Push switch
- Pins: Input +, Output +
Wiring Details
ATMEGA328
- RESET: Connected to GND via a 2Pin Push Switch and an Electrolytic Capacitor.
- D2: Connected to pin 7 of LM358 Op-Amp.
- D3: Connected to DATA pin of DHT11 Humidity and Temperature Sensor.
- D4: Connected to Digital output pin of SW-420 Vibration Sensor.
- CRYSTAL: Connected to pin 0 and pin 1 of Crystal 16MHz and Ceramic Capacitors.
- D5: Connected to CLK pin of HW-040 Rotary Encoder.
- D6: Connected to DT pin of HW-040 Rotary Encoder.
- D7: Connected to RXD pin of HC-05 Bluetooth Module.
- D8: Connected to State pin of HC-05 Bluetooth Module.
- D9: Connected to CATHODE pin of optoisolator MOC3021.
- D10: Connected to CATHODE pin of another optoisolator MOC3021.
- D11: Connected to TXD pin of HC-05 Bluetooth Module.
- D12: Connected to pin1 of a Resistor and RS pin of Adafruit Standard LCD 16x2.
- A0: Connected to pin1 of a Resistor and E pin of Adafruit Standard LCD 16x2.
- A2: Connected to DB4 pin of Adafruit Standard LCD 16x2.
- A3: Connected to DB5 pin of Adafruit Standard LCD 16x2.
- A4: Connected to DB6 pin of Adafruit Standard LCD 16x2.
- A5: Connected to DB7 pin of Adafruit Standard LCD 16x2.
HC-05 Bluetooth Module
- VCC: Connected to Vcc.
- GND: Connected to GND.
- TXD: Connected to D11 of ATMEGA328.
- RXD: Connected to D7 of ATMEGA328.
- State: Connected to D8 of ATMEGA328.
HW-040 Rotary Encoder
- GND: Connected to GND.
- +: Connected to Vcc.
- CLK: Connected to D5 of ATMEGA328.
- DT: Connected to D6 of ATMEGA328.
SW-420 Vibration Sensor
- vcc: Connected to Vcc.
- Ground: Connected to GND.
- Digital output: Connected to D4 of ATMEGA328.
DHT11 Humidity and Temperature Sensor
- VDD: Connected to Vcc.
- DATA: Connected to D3 of ATMEGA328.
- GND: Connected to GND.
230V to 12V Step Down Transformer
- phase: Connected to Neutral of 240V Power Source and neutral of Single Phase Induction Motor.
Bridge Rectifier
- AC input +: Connected to Anode of 1N4007 Rectifier Diode and phase of 230V to 12V Step Down Transformer.
- AC input -: Connected to phase of 230V to 12V Step Down Transformer.
- +: Connected to AC input + and pin1 of a Resistor.
- -: Connected to pin0 of Ceramic Capacitor, cathode of LED, and - of Electrolytic Capacitor.
1N4007 Rectifier Diode
- Anode: Connected to AC input + of Bridge Rectifier and phase of 230V to 12V Step Down Transformer.
- Cathode: Connected to + of Electrolytic Capacitor and Vin of 7805.
Electrolytic Capacitor
- -: Connected to pin0 of Ceramic Capacitor, cathode of LED, and - of Bridge Rectifier.
- +: Connected to Anode of 1N4007 Rectifier Diode and Vin of 7805.
7805
- Vin: Connected to + of Electrolytic Capacitor.
- Gnd: Connected to GND.
- Vout: Connected to pin1 of a Resistor.
LED: Two Pin (red)
- cathode: Connected to pin0 of Ceramic Capacitor and - of Bridge Rectifier.
- anode: Connected to pin2 of a Resistor.
Resistor
- pin1: Connected to various components such as ATMEGA328, Bridge Rectifier, and 7805.
- pin2: Connected to various components such as LED, Vcc, and optoisolator MOC3021.
GND
- GND: Connected to various components such as ATMEGA328, HC-05 Bluetooth Module