I inspired this idea from the videos I watched this week and some online search Control the Servo Motor using LDR next I wanted to test some parts of my final project in this assignment like controlling servo motor based on LDR and use push button as Manuel control in servo
The most software I used this week is Arduino and I used it to write the assignment code and making sure that he work be compiling sketch after that upload the code to Arduino Uno
I also used tinkercad to design the circuit and making sure working of it by uploading the Arduino code to the site then installing the physical components together to be like circuit design
After that used fritzing program to draw the schematic diagram of the electrical circuit that I made
The materials I used this week is :
1- 2 Push Button
2- LDR
3- Breadboard
4- Jumpers
5- Arduino Uno
6- Servo
7- RGB LED
first I design the circuit on sheet after that I drew the circuit on tinkercad and I use (if – else – while ) conditions to launch the servo motor and make RGB colour Like the following order (yellow, pink, aqua) when LDR sensor sense light and the area and back the servo to its original position and make RGB colour Like the following order (red, green, blue) when LDR sensor doesn't sense any light around and also you can manually launch the servo motor by pushing on first push button to move right or pushing on second push button to move left I tested the circuit to make sure that work next I started to making physical hardware circuit as I drew
I used fritzing program to draw the schematic diagram of the circuit
After I finished testing the circuit on tinkercad I start to installing the physical components together by putting LDR Sensor and wire it to (Gnd,5V,A0) pins on Arduino and wire the servo motor to (Gnd,5V,3) pins i also wire first push button to (GND,2) pins and second push button to (GND,12) pins then wire RGB LED to (9,10,11,GND) pins with 3 resistor 330 ohm on Arduino by using breadboard and upload the code to Arduino uno by using the Arduino software
And it worked well after some work
My peer ask me for some thoughts for the assessment , and I think it was good idea because mixture of elements I've learned over the last few weeks in one assignment project
First, I ask my peers if they didn't have the answer I go to the instructor
I make part of the code and when I face some problems I search online to find the Missing part of my code
You should watch some videos to clarify the vision further.
The benefits from this week videos are how to use a lot of conditions & loop to programming Arduino and how to use LCD display and keyboard numbers and this sure will help me in the final project
I think the most interesting thing this week was how to using LCD Display and Arduino programming by yourself without code blocks from tinkercad
the pre activity of this week pre activity