Академический Документы
Профессиональный Документы
Культура Документы
MODEL FORMULATION
3.1.1.2. Pins
The pins on Arduino are the places that connect wires to construct a circuit with a
breadboard and some wires. They usually have black plastic ‘headers’ that plug a wire
right into the board. The Arduino has several different kinds of pins, each of which is
labeled on the board and used for different functions.
GND (3): Short for ‘Ground’. There are several GND pins on the Arduino,
any of which can be used to ground on circuit.
23
5V (4) & 3.3V (5): The 5V pin supplies 5 volts of power, and the 3.3V pin
supplies 3.3 volts of power. Most of the simple components used with the
Arduino run 5 or 3.3 volts.
Analog (6): The area of ‘Analog’ label is from A0 through A5 on the Arduino.
These pins can read the signal from an analog sensor and convert it into a
digital value.
Digital (7): The digital pins are from pin 0 through 13 on the Arduino UNO.
These pins can be used for both digital input and digital output.
PWM (8): some of the digital pins are noticed from 3, 5, 6, 9, 10, and 11 on
the Arduino UNO. These pins act as normal digital pins, but can also be used
for something called Pulse-Width Modulation (PWM). These pins act to
simulate analog output like fading an LED in and out.
AREF (9): Stands for Analog Reference. Most of the time can leave this pin
alone. It is sometimes used to set an external reference voltage (between 0 and
5 Volts) as the upper limit for the analog input pins.
SRAM 2KB(ATmega328)
EEPROM 1KB(ATmega328)
when Arduino is plugged into a power source. If this light doesn’t turn on, there’s a
good chance something is wrong to re-check circuit.
3.1.1.5. TX RX LEDs
TX is short for transmit, RX is short for receive. These markings appear quite
a bit in electronics to indicate the pins responsible for serial communication. There are
two places on the Arduino UNO where TX and RX appear – once by digital pins 0
and 1, and a second time next to the TX and RX indicator LEDs (12). These LEDs
will give nice visual indications whenever Arduino is receiving or transmitting data.
3.1.1.6. Main IC
The black thing with all the metal legs is an IC, or Integrated Circuit (13). It is
the brains of Arduino. The main IC on the Arduino is slightly different from board
type to board type, but it is usually from the ATmega line of IC’s from the ATMEL
Company. This can be important to know the IC type before loading up a new
program from the Arduino software. This information can usually be found in writing
on the top side of the IC.
Ultrasonic sensors generate high-frequency sound waves and evaluate the echo which
is received back by the sensor, measuring the time interval between sending the signal
and receiving the echo to determine the distance to an object.
There are some special types of application of electrical motor where rotation
of the motor is required for just a certain angle not continuously for long period of
time. For these applications, some special types of motor are required with some
special arrangement which makes the motor to rotate a certain angle for a given
electrical input (signal).
This is normally a simple motor which is controlled for specific angular rotation with
the help of additional servomechanism (a typical closed loop feedback control
system).
Servo motor is a special type of motor which is automatically operated up to certain
limit for a given command with help of error-sensing feedback to correct the
performance.
3.1.3.1 Servomechanism
A servo system mainly consists of three basic components,
(a) A controlled device
(b) an output sensor
(c) a feedback system.
This is an automatic closed loop control system. Here instead of controlling a device
by applying the variable input signal, the device is controlled by a feedback signal
generated by comparing output signal and reference input signal. When reference
input signal or command signal is applied to the system, it is compared with output
reference signal of the system produced by output sensor, and a third signal produced
by a feedback system. This third signal acts as an input signal of controlled device.
This input signal to the device presents if there is a logical difference between
reference input signal and the output signal of the system. After the device achieves
27
its desired output, there will be no longer the logical difference between reference
input signal and reference output signal of the system. Then, the third signal produced
by comparing theses above said signals will not remain enough to operate the device
further and to produce a further output of the system until the next reference input
signal or command signal is applied to the system. Hence, the primary task of a
servomechanism is to maintain the output of a system at the desired value in the
presence of disturbances.
This type of motor is used in a radar dish if you are riding one on a robot or you can
use one as a drive motor on a mobile robot.
3.1.3.9 Merits
1. If a heavy load is placed on the motor, the driver will increase the current to
the motor coil as it attempts to rotate the motor. Basically, there is no out-of-
step condition.
2. High-speed operation is possible.
3.1.3.10 Demerits
1. Since the servomotor tries to rotate according to the command pulses, but
lags behind, it is not suitable for precision control of rotation.
2. Higher cost.
3. When stopped, the motor’s rotor continues to move back and forth one
pulse, so that it is not suitable if you need to prevent vibration\
electronic systems may be prototyped by using breadboards, from small analog and
digital circuits to complete central processing units (CPUs).
Jump wires (also called jumper wires) for solderless bread boarding can be
obtained in ready-to-use jump wire sets or can be manually manufactured. The latter
can become tedious work for larger circuits. Ready to-use jump wires come in
different qualities, some even with tiny plugs attached to the wire ends. Jump wire
material for ready-made or homemade wires should usually be 22 AWG (0.33 mm2)
31
solid copper, tin-plated wire - assuming no tiny plugs are to be attached to the wire
ends. The wire ends should be stripped 3⁄16 to 5⁄16 in (4.8 to 7.9 mm). Shorter
stripped wires might result in bad contact with the board's spring clips (insulation
being caught in the springs). Longer stripped wires increase the likelihood of short-
circuits on the board. Needle-nose pliers and tweezers are helpful when inserting or
removing wires, particularly on crowded boards.
Differently colored wires and color-coding discipline are often adhered to for
consistency. However, the number of available colors is typically far fewer than the
number of signal types or paths. Typically, a few wire colors are reserved for the
supply voltages and ground (e.g., red, blue, black), some are reserved for main
signals, and the rest are simply used where convenient.
3.1.5 9V Battery
The nine-volt battery, or 9-volt battery, is a common size of battery that was
introduced for the early transistor radios. It has a rectangular prism shape with
rounded edges and a polarized snap connector at the top. The nine-volt battery format
is commonly available in primary carbon-zinc and alkaline chemistry, in primary
lithium iron disulfide, and in rechargeable form in nickel-cadmium, nickel-metal
hydride and lithium-ion. Mercury-oxide batteries of this format, once common, have
not been manufactured in many years due to their mercury content. Most nine-volt
alkaline batteries are constructed of six individual 1.5 V LR61 cells enclosed in a
wrapper. These cells are slightly smaller than LR8D425 AAAA cells and can be used
in their place for some devices, even though they are 3.5 mm shorter. Carbon-zinc
32
types are made with six flat cells in a stack, enclosed in a moisture-resistant wrapper
to prevent drying. Primary lithium types are made with three cells.
LEDs have many advantages over incandescent light sources, including lower energy
consumption, longer lifetime, improved physical robustness, smaller size, and faster
switching. Light-emitting diodes are used in applications as diverse as aviation
lighting, automotive headlamps, advertising, general lighting, traffic signals, camera
flashes, lighted wallpaper and medical devices.
Unlike a laser, the color of light emitted from an LED is neither coherent nor
monochromatic, but the spectrum is narrow with respect to human vision, and
functionally monochromatic.
light bulbs at 1,000 to 2,000 hours. Several DOE demonstrations have shown
that reduced maintenance costs from this extended lifetime, rather than energy
savings, is the primary factor in determining the payback period for an LED
product.
Shock resistance: LEDs, being solid-state components, are difficult to damage
with external shock, unlike fluorescent and incandescent bulbs, which are
fragile.
3.1.6.2 Disadvantages
Impact on insects: LEDs are much more attractive to insects than sodium-
vapor lights, so much so that there has been speculative concern about the
possibility of disruption to food webs.
Use in winter conditions: Since they do not give off much heat in comparison
to incandescent lights, LED lights used for traffic control can have snow
obscuring them, leading to accidents.
Thermal runaway: Parallel strings of LEDs will not share current evenly due
to the manufacturing tolerance in their forward voltage. Running two or more
strings from a single current source will likely result in LED failure as the
devices warm up. A circuit is required to ensure even distribution of current
between parallel strands.
Start
Repeat
NO
Sensing the object
by sensor 1
YES
Repeat
Start
Repeat
NO
Check whether
Garbage bin is full
or not by sensor 2
YES
LED is ON
The L298N is a dual H-bridge motor driver which allows speed and direction
control of two DC motors at the same time as shown in figure 3.3. The module can
drive DC motors that have voltages between 5 and 35V, with a peak current up to 2A.
Let’s take a closer look at the pin out of L298N module and explain how it
works as show in figure 3.3. The L298N is a high voltage, high current dual H bridge
driver designed to accept standard TIL logic levels and drive inductive loads such
relays, solenoid, DC and stepping motors. The module has two screw terminal blocks
for the motor A and B and another screw terminal block for the ground pin, the VCC
for motor and a 5V pin which can either be an input or output. This depends on the
voltage used at the motors VCC. The module has an on board 5V regulator which is
either enabled or disabled using a jumper because those voltages will cause damage to
the onboard 5V regulator. In this case, the 5V pin will be used as input as need
connect it to a 5V power supply in order the IC to work properly. The user can note
that this IC makes a voltage drop of about 2V. So for example if that use a 12V power
supply, the voltage at motors terminals will be about 10V which means that won’t be
able to get the maximum speed out of 12V DC motor as shown in figure 3.4.
The output 1 and 2 pins are used for controlling the rotation direction of the
motor A and the output 3 and 4 pins for the motor B. Using these pins that actually
control the switches of the H-bridge inside the L298N IC. If output 1 is LOW and
output 2 is HIGH the motor will move forward, and vice versa, if output 1 is HIGH
and output 2 is LOW the motor will move backward. In case both inputs are same
either LOW or HIGH the motor will stop. The same applies for the outputs 3 and 4
and the motor B.
Output 1 : Motor A
Output 2 : Motor A
Output 3 : Motor B
Output 4 : Motor B
38
GND : Ground
5V : 5V Input
Min power : 5V
Dimensions : 43x43x26 mm
Weight : 26g
Simple to control
system in the optimum state, therefore simple mechanism but high implementation of
electronic software technique is chosen. These facts make to choose differential drive
mechanism design.