This circuit integrates an Arduino UNO microcontroller with a Bluetooth module (HM-10), a 16x2 I2C LCD display, two hobby gearmotors with a 48:1 gearbox, a 9V battery, a rocker switch, and an L298N DC motor driver. The Arduino UNO serves as the central processing unit, interfacing with the Bluetooth module for wireless communication, controlling the LCD for display purposes, and managing the motor driver to operate the gearmotors. The circuit is powered by a 9V battery, with a rocker switch included for power control.
5V
connected to Bluetooth module HM-10 VCC and 16x2 I2C LCD VCCGND
connected to Bluetooth module HM-10 GND, 16x2 I2C LCD GND, and L298N DC motor driver GNDVin
connected to L298N DC motor driver 5VA4 (SDA)
connected to 16x2 I2C LCD SDAA5 (SCL)
connected to 16x2 I2C LCD SCLD10
connected to L298N DC motor driver IN4D9
connected to L298N DC motor driver IN3D6
connected to L298N DC motor driver IN2D5
connected to L298N DC motor driver IN1D1 (TX)
connected to Bluetooth module HM-10 RXD0 (RX)
connected to Bluetooth module HM-10 TXVCC
connected to Arduino UNO 5VGND
connected to Arduino UNO GNDRX
connected to Arduino UNO D1 (TX)TX
connected to Arduino UNO D0 (RX)VCC
connected to Arduino UNO 5VGND
connected to Arduino UNO GNDSDA
connected to Arduino UNO A4 (SDA)SCL
connected to Arduino UNO A5 (SCL)pin 1
of one motor connected to L298N DC motor driver OUT4pin 2
of the same motor connected to L298N DC motor driver OUT3pin 1
of the other motor connected to L298N DC motor driver OUT2pin 2
of the other motor connected to L298N DC motor driver OUT1-
connected to the other battery +
-
of the second battery connected to L298N DC motor driver GND+
of the first battery connected to rocker switch inputinput
connected to the +
of the first 9V batteryoutput
connected to L298N DC motor driver 12VGND
connected to Arduino UNO GND and the -
of the second 9V battery5V
connected to Arduino UNO Vin12V
connected to rocker switch outputIN1
connected to Arduino UNO D5IN2
connected to Arduino UNO D6IN3
connected to Arduino UNO D9IN4
connected to Arduino UNO D10OUT1
connected to one gearmotor pin 2OUT2
connected to one gearmotor pin 1OUT3
connected to the other gearmotor pin 2OUT4
connected to the other gearmotor pin 1void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
This code is a template for the Arduino UNO and does not contain any specific functionality. It provides the basic structure for an Arduino sketch with setup()
and loop()
functions. The setup()
function is intended for initialization code that runs once, while the loop()
function contains code that runs repeatedly, forming the main logic of the program.