

This circuit is designed to control two DC Mini Metal Gear Motors using an L298N DC motor driver, which is interfaced with an Arduino Nano microcontroller. The Arduino Nano also connects to a 5 channel IR array for input and an HC-05 Bluetooth Module for wireless communication. Power is supplied by a 7.4v battery, which is controlled by a Rocker Switch and regulated by an XL6009E1 Boost Converter to ensure stable operation of the motor driver and the microcontroller.
+, -OUT1, OUT2, 12V, GND, 5V, OUT3, OUT4, 5V-ENA-JMP-I, 5V-ENA-JMP-O, +5V-J1, +5V-J2, ENA, IN1, IN2, IN3, IN4, ENBA5, A4, A3, A2, A1, VCC, GNDD1/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/SCKIN1, IN2Key, VCC, GND, TXD, RXD, State1, 2IN+, IN-, OUT-, OUT++ connected to Rocker Switch pin 1- connected to GND net (common ground)OUT1 connected to DC Mini Metal Gear Motor (1) IN2OUT2 connected to DC Mini Metal Gear Motor (1) IN112V connected to XL6009E1 Boost Converter OUT+GND connected to GND net (common ground)5V connected to Arduino Nano VINOUT3 connected to DC Mini Metal Gear Motor (2) IN2OUT4 connected to DC Mini Metal Gear Motor (2) IN1ENA connected to Arduino Nano D3IN1 connected to Arduino Nano D4IN2 connected to Arduino Nano D5IN3 connected to Arduino Nano D7IN4 connected to Arduino Nano D8ENB connected to Arduino Nano D9A5 connected to Arduino Nano A4A4 connected to Arduino Nano A3A3 connected to Arduino Nano A2A2 connected to Arduino Nano A1A1 connected to Arduino Nano A0VCC connected to Arduino Nano D2GND connected to GND net (common ground)GND connected to GND net (common ground)VIN connected to L298N DC Motor Driver 5VD3 connected to L298N DC Motor Driver ENAD4 connected to L298N DC Motor Driver IN1D5 connected to L298N DC Motor Driver IN2D7 connected to L298N DC Motor Driver IN3D8 connected to L298N DC Motor Driver IN4D9 connected to L298N DC Motor Driver ENBA4 connected to 5 Channel IR Array A5A3 connected to 5 Channel IR Array A4A2 connected to 5 Channel IR Array A3A1 connected to 5 Channel IR Array A2A0 connected to 5 Channel IR Array A1D2 connected to 5 Channel IR Array VCCD1/TX connected to HC-05 Bluetooth Module RXDD0/RX connected to HC-05 Bluetooth Module TXD5V connected to HC-05 Bluetooth Module VCCGND connected to GND net (common ground)VCC connected to Arduino Nano 5VTXD connected to Arduino Nano D0/RXRXD connected to Arduino Nano D1/TX1 connected to 7.4v Battery +2 connected to XL6009E1 Boost Converter IN+IN+ connected to Rocker Switch 2IN- connected to GND net (common ground)OUT+ connected to L298N DC Motor Driver 12VOUT- connected to GND net (common ground)void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Note: The provided code is a template and does not contain any functional code. It is expected that the user will fill in the setup and loop functions with the necessary code to control the motors via the L298N driver, read inputs from the IR array, and communicate with the HC-05 Bluetooth module.