Arduino UNO Controlled Bluetooth-Enabled Motor with Light Sensing
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary of the Circuit
This circuit is designed to control a motor using an Arduino UNO microcontroller in conjunction with an L298N DC motor driver. The system is powered through a 2.1mm DC Barrel Jack and includes a Photocell (LDR) for light sensing and an HC-05 Bluetooth Module for wireless communication. The motor's operation can be influenced by the light intensity detected by the Photocell and commands received via Bluetooth.
Component List
Arduino UNO
- Microcontroller board based on the ATmega328P
- It has 14 digital input/output pins, 6 analog inputs, a 16 MHz quartz crystal, a USB connection, a power jack, an ICSP header, and a reset button.
Photocell (LDR)
- A light-dependent resistor whose resistance changes with light intensity
- Used for sensing light levels in the environment
Resistor
- A 10k Ohm resistor
- Typically used for current limiting or voltage division
Motor and Wheels
- A DC motor connected to wheels
- Used for creating motion in the project
L298N DC Motor Driver
- A dual H-bridge motor driver
- Used for controlling the direction and speed of DC motors
2.1mm DC Barrel Jack
- A power connector for the circuit
- Used to supply power from an external source
HC-05 Bluetooth Module
- A wireless communication module
- Enables Bluetooth connectivity for remote control
Comments
- Additional notes or annotations about the circuit
- Used for documentation and clarification purposes
Wiring Details
Arduino UNO
5Vconnected to Photocell (LDR) and HC-05 Bluetooth ModuleGNDconnected to Resistor, L298N DC Motor Driver, and HC-05 Bluetooth ModuleA0connected to Photocell (LDR) through ResistorD9connected to L298N DC Motor DriverIN1D10connected to L298N DC Motor DriverIN2D0connected to HC-05 Bluetooth ModuleTXDD1connected to HC-05 Bluetooth ModuleRXD
Photocell (LDR)
- One pin connected to Arduino UNO
5V - Other pin connected to Arduino UNO
A0through Resistor
Resistor
- One pin connected to Photocell (LDR)
- Other pin connected to Arduino UNO
GND
Motor and Wheels
vccconnected to L298N DC Motor DriverOUT2GNDconnected to L298N DC Motor DriverOUT1
L298N DC Motor Driver
GNDconnected to Arduino UNOGNDand 2.1mm DC Barrel JacksleeveIN1connected to Arduino UNOD9IN2connected to Arduino UNOD10OUT1connected to Motor and WheelsGNDOUT2connected to Motor and Wheelsvcc12Vconnected to 2.1mm DC Barrel Jackcenter
2.1mm DC Barrel Jack
sleeveconnected to L298N DC Motor DriverGNDcenterconnected to L298N DC Motor Driver12V
HC-05 Bluetooth Module
VCCconnected to Arduino UNO5VGNDconnected to Arduino UNOGNDTXDconnected to Arduino UNOD0RXDconnected to Arduino UNOD1
Documented Code
Arduino UNO Code (sketch.ino)
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 include specific functionality. It should be populated with the logic required to read the Photocell sensor, control the motor via the L298N driver, and handle Bluetooth communication with the HC-05 module.