Smart Curtain
source: Smart Curtain
Smart Curtain...
The idea was inspired to have a merger between this week and the previous week.
So I designed a smart curtain that works in two states...
The first case: manually by pressing the button
The second case: using Photoresistor
We design the desired circuit on TINKERCAD to keep the components safe and make sure that the electronic circuit is built correctly.
We simulate the desired circuit on TINKERCAD to check the working process of the electronic circuit is correct or not.
The main Function that will be looped while Arduino is powered ON.
The photocell will read the value on analog pin A0 and print it on serial monitor. '
After that if I pushed the button the servo will be rotated to the specified value.
If I used LDR sensor the servo will be rotated to the specified value that comes from LDR.
Declaration of pins
Declaration Variables
At first, I built and designed my circuit on TINKERCAD.
Then, I implemented the circuit on bread board
then, I put it into the body
I prepared the cardboard to be suitable for all components
Automatic Mode ON
Finally, That is the final output...
Manual Mode ON
Problem: Not being able to fix Push Button on the card board due to its small legs.
Solution: I used crocodiles wires to attach it to its small legs from one side, and from another side is connected to male-male wire.
The final output...
Automatic Mode ON
Manual Mode ON
I Have a problem with uploading videos, and i didn't find any solution