Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an Arduino Nano, an HC-05 Bluetooth Module, a DC Motor, and an L293D motor driver. The circuit is designed to control a DC motor using commands received via Bluetooth.
Component List
Arduino Nano
- Description: A small, complete, and breadboard-friendly board based on the ATmega328P.
- Pins: D1/TX, D0/RX, RESET, GND, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11/MOSI, D12/MISO, VIN, 5V, A7, A6, A5, A4, A3, A2, A1, A0, AREF, 3V3, D13/SCK
HC-05 Bluetooth Module
- Description: A Bluetooth module for wireless communication.
- Pins: Key, VCC, TXD, RXD, State, GND
DC Motor
- Description: A motor that runs on direct current (DC).
- Pins: pin 1, pin 2
L293D Motor Driver
- Description: A quadruple high-current half-H driver designed to drive inductive loads such as relays, solenoids, DC and bipolar stepping motors.
- Pins: enable 1, input 1, output 1, gnd, output 2, input 2, vs, vss, input 4, output 4, output 3, input 3, enable 2
Wiring Details
Arduino Nano
- D10 connected to L293D Motor Driver input 1
- D9 connected to L293D Motor Driver enable 1
- D5 connected to HC-05 Bluetooth Module TXD
- D4 connected to HC-05 Bluetooth Module RXD
- D3 connected to L293D Motor Driver input 2
- 5V connected to L293D Motor Driver vs, L293D Motor Driver vss, and HC-05 Bluetooth Module VCC
- GND connected to L293D Motor Driver gnd and HC-05 Bluetooth Module GND
HC-05 Bluetooth Module
- TXD connected to Arduino Nano D5
- RXD connected to Arduino Nano D4
- VCC connected to Arduino Nano 5V
- GND connected to Arduino Nano GND
DC Motor
- pin 1 connected to L293D Motor Driver output 2
- pin 2 connected to L293D Motor Driver output 1
L293D Motor Driver
- input 1 connected to Arduino Nano D10
- enable 1 connected to Arduino Nano D9
- input 2 connected to Arduino Nano D3
- vs connected to Arduino Nano 5V
- vss connected to Arduino Nano 5V
- gnd connected to Arduino Nano GND
- output 2 connected to DC Motor pin 1
- output 1 connected to DC Motor pin 2
Documented Code
Arduino Nano Code
void setup() {
}
void loop() {
}
This code is a basic template for the Arduino Nano. The setup()
function is where you initialize settings, and the loop()
function is where the main code runs repeatedly. You can add your motor control and Bluetooth communication code within these functions.