Build a simple smart circuit that contains at least TWO action components that you can control wirelessly
fake user detector :
idea is the user knows the real number to move the servo otherwise the buzzer will ring and the motor will move to other direction ( lock ) . I just loved the idea of being the only one to access something and tried to apply it .
I used tinkerCAD for the simulation
used materials :
servo motor
Arduino Uno
jumper wires
buzzer
Bluetooth module
the device contains Bluetooth module which gives order to servo motor and buzzer through the user
I used BT terminal on android to connect to the Bluetooth module
the device contains two outputs
1- buzzer when the number is wrong (anything except 1)
2- servo motor moves when number is right (1)
this is the link for the tinker cad simulation
NOTE: I used ultrasonic sensor instead of Bluetooth module as its not available in tinkercad
servo motor connected to pin 12
buzzer is connected to pin 11
Bluetooth module connected to pin 0 1
first we used if condition if input is 0 so motor angle set to 180 and buzzer high if data = 1 so buzzer low and motor angle to 0
for the code I first adjusted the pins for motor and buzzer then I made void loop for Bluetooth module if 1 motor goes by 180 degree and buzzer low if not 1 (0) buzzer high and motor 0 degree knowing that motor start is 90 degrees
I couldn't fit the motor angle as i wanted i didn't know its origin or its boundaries
I saw a YouTube video says that you can adjust the motor arm by moving it by removing the bolt so I did it and it was a really nice solution.
getting to know how to design a circuit