Академический Документы
Профессиональный Документы
Культура Документы
The term of motor was initially applied to differentiate the new internal
burning engine powered vehicles from prior vehicles powered by
engines of steam, for example the motor roller and steam roller, but
might be exploited to refer to some engine
Actuator: -
Motors are generally utilized when circular motions are required but can also
be applied for linear applications by converting circular motion to linear
motion with a screw and bolt transducer. Alternatively, some actuators are
fundamentally linear.
for example: -
Tools: -
1. 4Red LEDs.
2. 4Yellow LEDs.
3. 4Green LEDs.
4. connecting wires.
5. 220Ω Resistors (x12)
6. Breadboard.
7. IR Receiver with Remote
8. Arduino.
Steps: -
4. Connect the 220 (Ohm) Resistor to the Arduino using a Jumper Wire.
Connect the Red LED to Pin 13 on the Arduino.
Connect the Yellow LED to Pin 12 on the Arduino.
Connect the Green LED to Pin 11 on the Arduino.
5. Finally, connect a Jumper Wire from the GND rail on the breadboard
to the GND pin on the Arduino.
6. connect the LEDs to the Arduino:
Red = Pin 10
Yellow = Pin 9
Green = Pin 8
8. For the Third set of LEDs
Red = Pin 7
Yellow = Pin 6
Green = Pin 5
Red = Pin 4
Yellow = Pin 3
Green = Pin 2
10. On the IR Receiver, there will be 3 pins labeled "G", "R", and
"Y".
11. Connect the G pin on the IR Receiver to the GND pin on the
Arduino.
12. Connect the R pin on the IR Receiver to the 5V pin on the
Arduino.
13. Finally, connect the Y pin on the IR Receiver to pin 1 on the
Arduino.
The final form of connection
Coding the Program
Now for the coding portion. I created the above diagram to assist me
with how to build the program along with the help that I mentioned in
the intro. In the program, I used an array to set the values for each
road or set of LEDs. Logically, I started with the first row of LEDs
being Road 1 and so on. I programmed it using the idea that Road 1
and Road 3 should start and stop at the same time and vice-versa for
Road 2 and Road 4.
The IR Receiver is used for basic input. In the code the buttons on the
remote perform the following task:
https://drive.google.com/drive/folders/1hwD
7ItvraPyy25TBm7Rk9xABq3y7lJkW?usp=sharin
g
Task Number 3