Bluetooth-Controlled Robot with Vietduino Uno and L298N Motor Driver
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit is designed to control a set of motors using a Vietduino Uno USB-C microcontroller in conjunction with an L298N DC motor driver. The system is capable of receiving commands via a Bluetooth connection through an HC-05 Bluetooth Module. Power is supplied by a 7.4V battery, which is controlled by a Rocker Switch. The motors are connected to the motor driver, which in turn is controlled by the Vietduino Uno USB-C.
Component List
Vietduino Uno USB-C
- Microcontroller board based on the ATmega328P
- Features digital I/O pins, analog input pins, and various power pins
- USB-C connection for programming and power
L298N DC Motor Driver
- Dual H-bridge motor driver capable of driving two DC motors or one stepper motor
- Provides pins for motor outputs, power supply, and control inputs
HC-05 Bluetooth Module
- Wireless communication module for Bluetooth connectivity
- Features pins for serial communication and power
Rocker Switch
- Simple on/off switch to control the power flow in the circuit
7.4V Battery
- Power source for the circuit
Motor and Wheels (4 instances)
- DC motors connected to wheels for mobility
- Each motor has power and ground connections
Wiring Details
Vietduino Uno USB-C
- Digital pins 10, 9, 6, 5 are connected to the L298N motor driver control inputs (IN4, IN3, IN2, IN1 respectively)
- Digital pins 3, 2 are used for serial communication with the HC-05 Bluetooth Module (TXD, RXD)
- 5V and GND pins provide power and ground to the HC-05 Bluetooth Module
- VIN pin is connected to the Rocker Switch for power input
L298N DC Motor Driver
- Motor output pins OUT1, OUT2, OUT3, OUT4 are connected to the respective motors
- Control input pins IN1, IN2, IN3, IN4 are connected to the Vietduino Uno USB-C
- 12V and GND pins are connected to the Rocker Switch and Vietduino Uno USB-C for power input
HC-05 Bluetooth Module
- RXD, TXD pins are connected to the Vietduino Uno USB-C for serial communication
- VCC and GND pins are connected to the Vietduino Uno USB-C for power
Rocker Switch
- One terminal is connected to the 7.4V battery positive terminal
- The other terminal is connected to the Vietduino Uno USB-C VIN pin and the L298N motor driver 12V pin
7.4V Battery
- Positive terminal is connected to the Rocker Switch
- Negative terminal is connected to the Vietduino Uno USB-C GND pin and the L298N motor driver GND pin
Motor and Wheels
- Each motor's VCC pin is connected to one of the L298N motor driver's motor output pins
- Each motor's GND pin is connected to the L298N motor driver's GND pin
Documented Code
No code has been provided for the microcontroller. The documentation of the code would typically include a description of the functionality, setup, and main loop, along with any functions or libraries used. Since no code is available, this section cannot be completed. If code becomes available, it should be documented here following the structure and comments provided within the code itself.