Bluetooth Controlled Lock
The idea for this week is a Bluetooth Controlled Lock.
Software
Fritzing for Circuit Design and Simulation.
Arduino to Program the Circuit.
BT Terminal to Send Data to BT Module.
Material
Arduino UNO "Controller".
2 LEDs (1 Green and 1 Red) "Output".
2x220 ohm Resistors
2x1kohm Resistors.
1x1kohm Resistor.
Bluetooth Module.
Servo Motor "Output".
Breadboard.
Jumper Wires.
Electronics
Fritzing
Bluetooth App to Send to and Receive data from Arduino
Arduino
Wiring Diagram
Preparation Steps
Search for Inspiration "Instructables, Arduino Project Hub, Adafruit".
Wire the Circuit Physically and test components.
Program the Circuit using Arduino and test results.
Wiring Explanation
Wire VCC and GND of Arduino to Breadboard to be common for all components to the wiring is Parallel.
Wire Servo to pin 9 "Output".
Wire BT Module to pin 1 and 2 as those are the pins of data transmission between BT and Arduino "Input".
Wire 2 LEDs to represent the state of Servo "Output".
Implementation Steps
Wire my Physical Circuit Using the Mentioned Materials Above.
Program my Arduino Board.
Run the Program to See the Action in Real Simulation.
Import Servo Motor Library.
Define pins for LEDs and Servo.
Initialize Pins as OUTPUT and Serial Monitor for Bluetooth in void setup().
Loop over the BT serial monitor to read any entered data.
Store the entered data in "pass" variable.
Define the First Condition for the Entered Password in the Main Loop.
if the password is right and safe is closed, servo motor opens the safe and green LED is on.
if the password is right and safe is open, servo motor closes the safe and red LED is on.
Physical Wiring on Breadboard
if password is wrong a message of "Invalid Password" is printed on the serial monitor and servo will be closed and red LED is on.
Connection and Understanding of Bluetooth module, after research i found these links is useful and helped me.
Title of Media
Title of Media
We Controlled Robot arm of 3 Servos with bluetooth.
Robot arm Control with BT