this week I choose to try connect Buzzer and LED to LDR sensor using Arduino as it will be cool to add this feature in my final project .
this week I used tinkercad software to create and simulate electric circuits before bring it to the real world not to cause damage to my kit.
It is an open-source Arduino Software (IDE), used it to makes it easy to write code and upload it to the board.
I used:
Arduino UNO
Adaptor 5V
Jumpers male-male ... female-female
breadboard
Resistor
LDR sensor
LEDs
Using tinkercad software
design circuit on tinckercad
I put LEDs and Piezo on one Arduino pin (2) as I need them to make light and noise when there is light there.
coding using code block on tinckercad
//used if else condition
//LDR sensor is high when there is no light
I but a condition if arduino read LDR low (there is light )
then send current to LEDs on pin 2 (HIGH)
then copy paste it to Arduino ID software
upload it to Arduino after prepare the circuit.
collect components from my kit and connect them as on tinkercad then test it.
it works✨
connect Arduino with laptop and upload the code
it was a difficult week I face many problems in understand Arduino connection with other component so I tried different connections
I use barmej to improve my knowledge
step by step I get familiar with the Arduino ID software
I meant to make connection i will use it in my final project.
Title of Media
Title of Media