This week my assessment revolves around making a circuit
I get inspired by making a private box including my private things and away from the lovely nephews😅😆
electric component for making the circuit (breadboard / on/off switch /Lots of wires / buzzer for making voice /LCD l2c screen / Arduino/5 v adaptor for powering the circuit / LDR sensor / IR sensor )
(cardboard / Scotch tape/scissors ) for enclosure
Thinker CAD for designing the circuit
Arduino program for coding
I started the design on Thinker CAD using the previous components I have explained(breadboard / on/off switch /Lots of wires/buzzer for making voice /LCD l20 screen / IR sensor/LDR sensor/ Arduino/5 v adaptor for powering the circuit )
then I copied the code from Thinker cad to the Arduino program after that I started stimulation to ensure the circuit worked.
in this code :
1- I searched about LCD library to write ( warning / no obstacles ) on it and defined the library name in the coding also for writing I used ( LCD clear and print ) to make the ( warning / no obstacles ) appear clearly on the LCD
2- I chose an IR sensor to detect any motion close to the box. IR sensor became low if anything close to it and the opposite became high)
3- buzzer I wanted it to make a warning voice when something was so close to the circuit so I made it in the code ( high when the IR sensor fell anything close to it ) so I wrote it down in the code if the IR sensor become low the buzzer would be high and made warning voice.
4- I used ldr to respond to light and to add in the future LED in the circuit which will react to light if the light shutdown in the room and connected it to the IR sensor for more secure to the box if any thing close to it .
in this circuit, I wanted to design an abox that shows waring in the LCD and the buzzer makes a warning voice if anything became so close to it so I used an (IR /LDR) sensor for this.
After ensuring the circuit works on THINKER CAD I made the circuit by dividing it into a breadboard and connected it to a laptop to download the code to Arduino I also modified the code on the Arduino program because thinkerCad didn't have an LDR sensor and the LCD library wasn't the same library we worked with in LCD I2C.
after that, I cut the cardboard, inserted the circuit inside it, and tried it to ensure everything worked together.
yes, I asked my beers and my instructor about which senior would be helpful in my design. their ideas helped me complete my design.
I got stuck when I connected the code to the Arduino. LCD didn't work so I checked the stimulation and found the LCD library in thinker cad wasn't the LCD I2c library so I searched for LCD i2c code and modified the code in the Arduino program. and LCD worked.
I can use these skills in designing the circuit of my final project by using thinker cad and the electric components
The coolest thing is how easily I can make a circuit.
I will never forget how enjoyable working in different team