Arduino Mega 2560 Controlled Dual DC Motor System with Start Switch and Stepdown Regulator
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino Mega 2560 microcontroller, a DC motor driver (L9110), two DC motors, a start switch, a battery, and a step-down voltage regulator (XL4015). The Arduino Mega 2560 controls the DC motors through the L9110 driver, and the power is managed by the battery and the voltage regulator. The start switch is used to control the power flow to the voltage regulator.
Component List
DC Motor
- Description: A motor that converts electrical energy into mechanical energy.
- Pins: pin 1, pin 2
Comment
- Description: Placeholder for comments in the circuit.
- Pins: None
Battery
- Description: Provides power to the circuit.
- Pins: -, +
Arduino Mega 2560
- Description: A microcontroller board based on the ATmega2560.
- Pins: IOREF, RESET, 3V3, 5V, GND, VIN, A0-A15, D0-D53, PWM pins, AREF, SDA, SCL
START SWITCH
- Description: A switch to start the circuit.
- Pins: NO 1, NC 1, NO 2, NC 2
L9110
- Description: A dual-channel motor driver.
- Pins: MOTOR B-A, MOTOR B-B, MOTOR A-A, MOTOR A-B, B-IA, B-IB, GND, VCC, A-IA, A-IB
Regulator Stepdown DC XL4015 CC CV
- Description: A step-down voltage regulator.
- Pins: IN +, IN -, OUT +, OUT -
Wiring Details
DC Motor 1
- Pin 1 connected to L9110 MOTOR A-A
- Pin 2 connected to L9110 MOTOR A-B
DC Motor 2
- Pin 1 connected to L9110 MOTOR B-B
- Pin 2 connected to L9110 MOTOR B-A
Battery
- - connected to START SWITCH NC 1
- + connected to START SWITCH NO 1
Arduino Mega 2560
- GND connected to Regulator Stepdown DC XL4015 OUT -
- GND connected to L9110 GND
- VIN connected to Regulator Stepdown DC XL4015 OUT +
- D10 PWM connected to L9110 A-IA
- D11 PWM connected to L9110 A-IB
- D12 PWM connected to L9110 B-IB
- D13 PWM connected to L9110 B-IA
START SWITCH
- NC 1 connected to Battery -
- NO 1 connected to Battery +
- NO 2 connected to Regulator Stepdown DC XL4015 IN +
- NC 2 connected to Regulator Stepdown DC XL4015 IN -
L9110
- GND connected to Arduino Mega 2560 GND
- VCC connected to Regulator Stepdown DC XL4015 OUT +
- A-IA connected to Arduino Mega 2560 D10 PWM
- A-IB connected to Arduino Mega 2560 D11 PWM
- B-IA connected to Arduino Mega 2560 D13 PWM
- B-IB connected to Arduino Mega 2560 D12 PWM
- MOTOR A-A connected to DC Motor 1 pin 1
- MOTOR A-B connected to DC Motor 1 pin 2
- MOTOR B-A connected to DC Motor 2 pin 2
- MOTOR B-B connected to DC Motor 2 pin 1
Regulator Stepdown DC XL4015 CC CV
- IN + connected to START SWITCH NO 2
- IN - connected to START SWITCH NC 2
- OUT + connected to Arduino Mega 2560 VIN
- OUT + connected to L9110 VCC
- OUT - connected to Arduino Mega 2560 GND
- OUT - connected to L9110 GND
Documented Code
Arduino Mega 2560 Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Additional Documentation (documentation.txt)
This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used in the microcontroller.