Вы находитесь на странице: 1из 9

Task Number 1

WHAT’S THE DIFFERENCE BETWEEN A MOTOR &


ACTUATOR?
Motor: -

A motor is designed to translate energy source into rotation motion.


Electric motors translate energy of electric into rotation motion.
Pneumatic motors utilize compressed air into rotation motion.
Hydraulic motors utilize fluid pressure into rotation motion.

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: -

The Actuator defined as a motion type for controlling or moving a system or


mechanism. It is activated by an energy source, generally in the type of a fluid
pressure of hydraulic or pressure of pneumatic, electric current, and transforms
that energy into any type of motion, such as rotation motion or linear motion.
An actuator is the motion mechanism by which an agent proceeds ahead an
environment. The means can be an autonomous being such as human, other
animal, etc. or any other artificial intelligent agent.

In manufacturing, actuators are a transducer’s subdivision.


They are machines which convert a signal of input (mostly an electrical signal)
into motion. Electrical motors, relays, hydraulic pistons, piezoelectric actuators,
pneumatic actuators, thermal bimorphs, comb drive, Digital Micro mirror
Devices and polymers of electro active are some instances of such actuators.

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: -

actuators of piezoelectric. Actuators and sensors in virtual instrumentation are


the hardware set offs of virtual instruments. Virtual instruments computer
programs use motion into vice versa, or linear motion.
Task Number 2

Experiment Traffic light


Name code

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: -

1. Add a red, yellow, and green LED to the breadboard.


2. Connect the smallest lead (short end) of the LEDs to the ground rail
using Jumper Wires.
3. Connect the largest lead (long-bended end) of the LEDs to a 220
(Ohm) Resistor crossing the gap in the breadboard.

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:

7. For the second set of LEDs:

 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

9. For the Fourth set of LEDs

 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:

 Power turns all red LEDs on


 VOL+ turns all green LEDs on
 Func/Stop turns all yellow LEDs on
The final code

https://drive.google.com/drive/folders/1hwD
7ItvraPyy25TBm7Rk9xABq3y7lJkW?usp=sharin
g
Task Number 3

Maximum Delay time


having a maximum value of 4,294,967,295. Since these are
milliseconds, the maximum delay() would be 4,294,967.295
seconds, or about 49 days.

Вам также может понравиться