This circuit is designed to control a set of four "Motor amarillo motorreductor hobby" motors using an "Arduino UNO" microcontroller and an "L298N DC motor driver". The circuit also includes an "HC-05 Bluetooth Module" for wireless communication and a set of LEDs for indication purposes. The power is supplied by a "battery 12v". The Arduino UNO is programmed to manage the motor driver, read signals from the Bluetooth module, and control the LEDs.
vcc
and GND
pins are connected to the corresponding output pins OUT1
, OUT2
, OUT3
, and OUT4
of the L298N motor driver.D13
, D12
, D11
, and D10
are connected to the anodes of the red and white LEDs.D9
, D8
, D7
, D5
, D4
, and D3
are connected to the ENA
, IN1
, IN2
, IN3
, IN4
, and ENB
pins of the L298N motor driver, respectively.D1
and D0
are used for serial communication with the HC-05 Bluetooth module's RXD
and TXD
pins.5V
pin provides power to the HC-05 Bluetooth module.GND
pin is connected to the common ground net, which includes the cathodes of the LEDs and the ground of the HC-05 Bluetooth module.12V
pin is connected to the positive terminal of the 12v battery.GND
pin is connected to the negative terminal of the 12v battery and the common ground net.VCC
pin is connected to the 5V
output from the Arduino UNO.GND
pin is connected to the common ground net.void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
The provided code is a template with empty setup()
and loop()
functions. The setup()
function is intended for initialization code that runs once at startup, and the loop()
function contains the main logic of the program that runs repeatedly. Actual implementation details need to be added to control the motors, read from the Bluetooth module, and manage the LEDs.