Title of Media
I wanted to try the servo motor to adjust the rotation angle to display something and control it from the Arduino and use the IR Sensor HW-201.
-I watched this video that helped me
-Arduino uno
-jumper wires
-resistance
-led
-servo motor
-breadboard
-IR Sensor HW-201.
-resistor 220 ohm
TinkerCad
Title of Media
-I used tinkercad to check the correctness of the simulation of the electrical circuit.
-First, I prepared all components that I will use inside the circuit, then I started connecting the components to the breadboard and the power source.
-then press start simulation
pin 2 : (input ) sensor
pin 6 ( output ) led
pin 9 ( output ) servo motor
Code Blocks:
-Use the blocks method to write the code . i used IF-condition To make the Arduino communicate with the sensor and all components
simulation
Code Blocks :
OutPut:
-pin6 (LED)
-pin9 (servo Motor)
InPut:
-pin2 (Sensor)
- i used IF-condition To make the Arduino communicate with the sensor and all components
-When the sensor senses the objects moving, it sends the Arduino command to move the motor to 180 degrees and make the LED light up.
After that I connected the components to the breadboard coneccted the motor to breadboard and Arduino pin 9 , then connected led and using the resistor and connected it in Arduino pin 6 , the IR snesor to pin 2
then ,connected the Arduino to the computer to download the code
After that I used the Arduino ID to transfer the code to the Arduino to make sure of the correctness of the circuit and the work of all components
Finally
Title of Media
Title of Media
I have tried a lot to make this circuit and use these components, but it did not work because the LDR sensor was not working, but the first was the error in the code
The problem was that the sensor did not work, the LED lights up and the motor, and I modified a lot in the code. Rawan and Amr helped me, but I changed the sensor.
I have tried a lot to make this circuit and use these components, but it did not work because the LDR sensor was not working, but the first was the error in the code, but I solved it, but then I used the same circuit with another sensor(IR Sensor HW-201), but it worked, so you must make sure that all components are working well before starting project
The problem was that the sensor did not work, the LED lights up and the motor, and I modified a lot in the code. Rawan and Amr helped me, but I changed the sensor.
I learned how to make circuit more than one components and how they work together How do I solve the problems that I encounter in connecting the circuit
Title of Media
the idea was Build a Smart Waving Hand using Arduino. When you wave at the smart hand, it waves back at you in two moodes
Manual Mode: In this mode, a single servo motor (One Hand) at the output is controlled manually by a human using a potentiometer (knob) at the input of an Arduino board
Automatic Mode: In this mode, a single servo motor (One Hand) connected at the output is controlled via signals received from an ultrasonic sensor at the input of the Arduino board
We divided into groups, Farida and I worked together . We divided the tasks for us . in the first mode she wrote the code on Tinkercad,and I did cut the cardboard hand and circle. Then we switched to automatic mode, and I wrote the code she make the enclosure.