The inspiration :I think about making a lamp with ICD that shows text " Good morning & Hi Basmala "
ICD that shows text " Good morning & Hi Basmala " Automatically when the light ON , and a Lamp working manually by switch
The source of inspiration : https://www.pinterest.com/pin/816558976225129519/
Tinker cad icon
Arduino IDE
Arduino UNO
bread board
Relay
jumper wires
LDR sensor
LCD
ON/OFF switch
Software
Tinker cad : to simulate the circuit before connecting it to avoid any errors in the circuit connection
Arduino IDE: makes it easy to write code and upload it to the board.
Materials
Arduino UNO: It can be programmed to control the electronics ,Like the buzzer tones
small bread board & jumper wires :Wires the components together
LCD :Shows a text to interact with the users
LDR sensor : sense the light
Switch : ON/OFF the lamp
wood sticks: for the enclosure
scissors, a pencil, cutter , thick paper to make the body of Hovercraft: for the enclosure
Thinking
1-Start with brainstorming and detecting the code and components I need
2 INPUTs: ON/OFF switch & LDR sensor
2 OUTPUTs: LCD & Light lamp
Tinker cad circuit
1-start to simulate the circuit on tinker cad before wiring it in real
2-The connections are :
Arduino UNO : connect the Arduino GND with the -ve side one the breadboard
LCD:(OUT PUT 1)
-Ground (black wire)
-5v (red wire)
-SDA --A4 (yellow wire )
-SCL--A5 (purple wire )
LDR sensor: (INPUT 1)
-Ground (Black wire)
-5 volt (red wire)
-pin 12 (blue wire)
ON/OFF Switch: (INPUT 2)
-Ground (black wire)
-Pin 4 (red wire)
LED:(OUT PUT 2)
-Ground (Black wire)
-Pin 13 (Green wire)
Coding
1-start to code each electronic components alone then merge the codes together
2-LCD: I download the library and change the print text
3-Use if codition to control the circuit
if the light on ---the LCD will backlight and print Hi Basmala
else---the LCD will noBackLight
if the switch read High ---the lamp ON
else---the lamp OFF
3-INPUT_PULLUP for the switch input
Connections
Start to connect the components together like in tinker cad simulation
start with switch and lamp and test them together
NOTE, In the real connection I use a lamp that needs 5 volt, so I use relay and set it on 5v
Try the led coding ,then use the if codition to make the LDR sensor control the LED
VID. & PIC.
https://drive.google.com/drive/folders/1TlFLrYexeNfJgqN4JofadjTuNhxzhdVd
The problem:
In the step of simulating on tinkercad , The simulation didnt work .All the connections and the code are right .
The reason :
-The pushbutton when it is up it doesn't connect with the ground and also doesn't connect with 5 volt ,so the state of the pushbutton isn't High or Low
The solution:
-Edit the code on Arduino IDE and add PULLUP after the INPUT , this means that when the pushbutton in up (doesn't connect with the ground ) it connected with 5 V
TINKER CAD
* In the process of designing the circuit of the smart planter and connecting the sensors together I will use tinker cad to simulate the circuit before connecting it to avoid any errors
* I will need the basic information about circuits connections and electrons to imagine the path of the electricity in the project circuit
ARDUINO IDE
*helps me in uploading codes on Arduino to control the electronics
Arduino IDE
Tinker cad icon
I can call this week the Master week ,I totally deal with new things like arduino coding 🥳