def_arduino
def_arduino
1.1.1. Datasheet:
(chrome-extension://efaidnbmnnnibpcajpcglclefindmkaj/https://cdn.sparkfun.co
m/assets/f/7/d/9/c/DHT22.pdf)
Model DHT22
1
Chapter 02
2
Chapter 02
1.2.2. MPU-6050Pinout :
Voici le bronchement du module de capteur MPU-6050 :
INT Interrupt pin – can be used to indicate that new measurement data is available.
3
Chapter 02
4
Chapter 02
Figure 0 :
5
Chapter 02
The solenoid (also known as the electromagnet) is a copper coil wound around a
ferromagnetic material. This is typically a solid iron core. When a voltage is applied to
the coil, a magnetic field is generated around the coil.The iron core concentrates this
magnetic field to become a magnet until the voltage to the coil is removed.
Solenoids are usually operated using DC current, and are not compatible with AC
sources. However there are AC operated relays also available.AC relays have an
additional component in the electromagnet named ‘shading ring’. This prevents the
electromagnet from demagnetizing whenever the AC supply crosses the zero point.
Therefore, the armature can stay attracted to the electromagnet as long as the coil is
powered on.
The armature-spring assembly is the moving component that is found in a relay. The
armature is positioned such that when the electromagnet is powered on, it can
deflect the armature towards it.
There is a return spring in place to ensure that the armature returns to its initial
position when the coil is not powered on. The armature is conductive as it should
carry the switching current from the common terminal to the output terminals.
The contacts are the next most important and most abused parts in a relay. When
switching a load, the armature moves the contacts between the stationary contacts.
This causes sparks to generate. If the switched load is a highly inductive load such
as a motor, sometimes arcs can also be seen.
Once the coil is energized, the electromagnet activates. This causes the armature to
be attracted towards the electromagnet, which in turn makes the connection between
6
Chapter 02
the common contact and the normally open contact.At the same time, the connection
between normally closed contact and the common contact is severed.
There are several types of electromagnetic relays available. Some of them are used
to control heavy loads while others are used primarily as protection devices.
7
Chapter 02
Optical encoders include reflective, transmissive, and diffraction grating types. Since
ultra-thin stainless-steel plates or glass disks are used as rotating discs, mechanical
vibration and shock may be a problem.
Optical encoders are widely used in office equipment, machine tools and industrial
robots as high-precision position control sensors. In recent years, reflective encoders
have been used in ultra-compact actuators and in cooperative robots that require a
small amount of space.
8
Chapter 02
On the other hand, its disadvantage is that its resolution and accuracy are lower than
those of optical encoders. This is because the resolution of magnetic encoders
depends on the performance of the signal processing circuit, since the resolution is
determined by the processing capacity of the electrical signal.
High resolution ✓
High precision ✓
Environmental resistance ✓
Low price ✓
9
Chapter 02
This type of encoder is often used as a sensor in robotics. It reads a disk with evenly
spaced graduations. A code wheel with a rounded linear scale, which is a component
of a linear encoder, is used, and the technology used to manufacture both is similar.
They are used in a wide variety of applications, from inexpensive ones incorporated
into printers to high-precision control and measurement applications.
10
Chapter 02
the sensor output from the reference position is counted and held in a counter
or memory.
Figure 06: Incremental Encoder Disk
Absolut type :
This type of encoders output the absolute value of the rotation angle, and the
mechanical position is acquired immediately after power-on. While the incremental
type outputs only incremental values and requires origin alignment, the absolute type
outputs a one-to-one correspondence
between the disk angle of the scale pattern
and the output code, so the absolute angle
can always be known regardless of its power
state.
High resolution ✓
No homing required ✓
Noise immunity ✓
11
Chapter 02
Low price ✓
Reflective type :
On the other hand, “Reflective type” refers to a method in which the light source and
the light-receiving element are placed on the same plane, and a component that
switches the reflection/non-reflection of light is placed above the light source and the
light-receiving element.
12
Chapter 02
Contamination resistance ✓
Simple structure ✓
Miniaturization ✓
Assembly time ✓
Light Source.
Photodetectors.
Encoder Scale.
1.4.5. Where are Optical Encoder used :
Joints of Robot Arm.
Doors of Elevator.
Printers.
Machine tools.
1.4.6. How does an Optical Encoder work:
13
Chapter 02
2. Arduino IDE:
14
Chapter 02
15
Chapter 02
https://fr.wikipedia.org/wiki/ESP32
16
Chapter 02
17
Chapter 02
18