Mega2560-Controlled Automation System with Non-Contact Liquid Level Sensing and Motor Control
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
The circuit in question appears to be a complex system involving a variety of components including sensors, a microcontroller, power supply units, motor drivers, and communication modules. The central control unit is a Mega2560 R3 Pro CH340G microcontroller, which interfaces with various sensors and actuators to perform its functions. The circuit includes power regulation and distribution components, a motor with a gearbox, servo motors, and a touch display for user interaction. Communication is facilitated by a UART TTL to RS485 converter, and the circuit is protected by a circuit breaker and a fuse.
Component List
- Terminal Blocks: Used for organizing and connecting wires.
- Servo Motors: Actuators that can be precisely controlled for position.
- UART TTL to RS485 Converter: Facilitates communication between devices using different voltage logic levels.
- MRB Planetary Gearbox Motor: A motor with a gearbox for increased torque.
- Touch Display: An interactive display for user input and feedback.
- XKC-Y26-V Sensors: Likely liquid level sensors based on the pin labels.
- Switching Power Supply: Converts AC to DC voltage and regulates the output.
- Temperature Sensor (LM35): Measures temperature and provides an analog output.
- XL4016: A DC-DC converter module.
- Mega2560 R3 Pro CH340G: A microcontroller board based on the ATmega2560.
- IBT-2 H-Bridge Motor Driver: Controls the direction and speed of motors.
- AC Circuit Breaker: Provides overcurrent and short circuit protection.
- 5A Fuse: Additional overcurrent protection.
Wiring Details
Terminal Blocks
- Used for making secure electrical connections between various components and the microcontroller.
Servo Motors
- PWM: Connected to digital pins on the microcontroller for pulse-width modulation control.
- VCC: Connected to a power distribution terminal block.
- GND: Connected to a ground terminal block.
UART TTL to RS485 Converter
- TXD: Transmits data to the microcontroller's TX1 pin.
- RXD: Receives data from the microcontroller's RX0 pin.
- VCC: Power input connected to a power distribution terminal block.
- GND: Ground connection to a ground terminal block.
- A/B: Differential communication lines connected to the touch display's TX and RX pins, respectively.
MRB Planetary Gearbox Motor
- +: Connected to the motor driver's output.
- -: Connected to the motor driver's output.
Touch Display
- VCC: Power input connected to a power distribution terminal block.
- TX/RX: Communication lines connected to the RS485 converter.
- GND: Ground connection to a ground terminal block.
XKC-Y26-V Sensors
- VCC: Power input connected to a power distribution terminal block.
- OUT: Output signal connected to various digital pins on the microcontroller.
- GND: Ground connection to a ground terminal block.
- MODE: Mode selection pin (not detailed in the wiring).
Switching Power Supply
- AC: Input from the AC circuit breaker.
- -V/+V: Outputs connected to power distribution terminal blocks.
- GND: Ground connection to a ground terminal block.
Temperature Sensor (LM35)
- +Vs: Power input connected to a power distribution terminal block.
- Vout: Output signal connected to the microcontroller's analog pin A0.
- GND: Ground connection to a ground terminal block.
XL4016
- In+/In-GND: Input from a power distribution terminal block.
- Out+/Out-GND: Output connected to power distribution terminal blocks.
Mega2560 R3 Pro CH340G
- Central microcontroller interfacing with all sensors, actuators, and communication modules.
IBT-2 H-Bridge Motor Driver
- RPWM/LPWM: Connected to digital pins on the microcontroller for motor speed control.
- L_EN/R_EN: Enable pins connected to a digital pin on the microcontroller.
- VCC: Power input connected to a power distribution terminal block.
- GND: Ground connection to a ground terminal block.
AC Circuit Breaker
- VIN/VOUT: Connected to the power 220v input and the switching power supply.
- GND: Ground connection to the power 220v input.
5A Fuse
- Input/Output: Placed in series with the power supply for overcurrent protection.
Documented Code
No code was provided in the input. The microcontroller's behavior and the interaction with the connected components are programmed through embedded code, which is not available in the provided documentation.