Idea:
when infrared sensor is on "detects moving object"
LED lights up
Fixing IR sensor in home
when someone enters , light is on
Software :
Tinker CAD:
for circuit simulation and connection of items
Arduino IDE:
For coding and uploading code on real Arduino board
Components:
Arduino UNO board
breadboard
jumpers
IR sensor
Resistance for LED
LED
connecting cable (from Arduino board to laptop)
Tinker cad components
Real circuit components
Breadboard
yellow LED
IR sensor
Arduino UNO
Jumpers
connection cable
Tinker cad Connection
Code blocks
Design Phase:The design of the circuit is so simple:
IR sensor , LED on a breadboard connected with Arduino UNO board
Input component:
IR sensor
Action component:
LED
CODEBLOCKS Phase:
code blocks:
connected IR sensor to pin 2"input"
LED on pin 4 "output"
IF .. Else condition to control IR sensor, when on:
the LED lights up
Arduino IDE Phase:
I changed in the code a little bit to fit real circuit requirements as IR sensor is different from PIR sensor on tinker CAD
Simulating the Circuit on tinkercad:
After making the required connections on tinker , i started simulation to check connections before going through breadboard connection
Implementing Circuit on breadboard
After making the required connections on tinker cad and simulating the circuit. I built connection on breadboard.
Implementing The Code:
After making the required connections on tinker cad and simulating the circuit. i copied the text code to Arduino IDE
I completed the code by adding extra movement for servo
I changed a bit in code as the IR sensor different from PIR sensor on tinker cad
I changed LED code as didn't work as required when i connected the circuit
after running the code , the sensor worked then the LED worked as required.
-Salma tried to help me when the circuit didn't work with Arduino by checking similar examples.
-I reconnected the whole circuit again to make sure connections are right.
when using LDR sensor , got stuck when the real circuit didn't work but well simulated on tinker cad
I tried different connection but the circuit didn't work
i discovered that the LDR sensor is corrupted , so I used another sensor
Good trial as in final project i will replace the IR sensor with LDR sensor and servo movement will be dependent on sensor reading
Shake hand exercise in lab helped me in imagining manual mode in final project using potentiometer.
shake hand video
simulation