Arduino UNO and L293D Motor Driver Controlled Robot with Flysky Receiver and Battery Power
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an Arduino UNO microcontroller, an L293D motor driver, two motors with reducers, a Flysky receiver, and a power supply from two 18650 Li-ion batteries. The circuit is designed to control the motors using signals from the Flysky receiver, with the Arduino UNO acting as the central controller.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
L293D
- Description: A quadruple high-current half-H driver designed to drive inductive loads such as relays, solenoids, DC and bipolar stepping motors.
- Pins: M1A, M1B, M1IN1, EN1, M1IN2, M2IN2, M2IN1, EN2, M2B, M2A, V+, V-
Motor with Reducer (Motor 1)
- Description: A DC motor with a gear reducer.
- Pins: 3 - 6 VCC, GND
Motor with Reducer (Motor 2)
- Description: A DC motor with a gear reducer.
- Pins: 3 - 6 VCC, GND
18650 Li-ion Battery x 2
- Description: A pair of 18650 Li-ion batteries providing power to the circuit.
- Pins: +, -
Flysky Receiver
- Description: A receiver module for Flysky remote control systems.
- Pins: CH1, CH2, CH3, CH4, CH5, CH6, B/VCC, VCC, GND
Wiring Details
Arduino UNO
- 5V connected to VCC of Flysky Receiver
- GND connected to GND of Flysky Receiver
- D11 connected to EN1 of L293D
- D10 connected to EN2 of L293D
- D9 connected to M2IN1 of L293D
- D8 connected to M2IN2 of L293D
- D7 connected to M1IN1 of L293D
- D6 connected to M1IN2 of L293D
- D2 connected to CH2 of Flysky Receiver
L293D
- EN1 connected to D11 of Arduino UNO
- EN2 connected to D10 of Arduino UNO
- M2IN1 connected to D9 of Arduino UNO
- M2IN2 connected to D8 of Arduino UNO
- M1IN1 connected to D7 of Arduino UNO
- M1IN2 connected to D6 of Arduino UNO
- M1A connected to 3 - 6 VCC of Motor 1
- M1B connected to GND of Motor 1
- M2A connected to 3 - 6 VCC of Motor 2
- M2B connected to GND of Motor 2
- V+ connected to + of 18650 Li-ion Battery x 2
- V- connected to - of 18650 Li-ion Battery x 2
Motor with Reducer (Motor 1)
- 3 - 6 VCC connected to M1A of L293D
- GND connected to M1B of L293D
Motor with Reducer (Motor 2)
- 3 - 6 VCC connected to M2A of L293D
- GND connected to M2B of L293D
18650 Li-ion Battery x 2
- + connected to V+ of L293D
- - connected to V- of L293D
Flysky Receiver
- VCC connected to 5V of Arduino UNO
- GND connected to GND of Arduino UNO
- CH2 connected to D2 of Arduino UNO
Documented Code
Arduino UNO 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 document provides a comprehensive overview of the circuit, including the components used, their connections, and the code running on the Arduino UNO.