Professional Documents
Culture Documents
IOT
(“INTERNET OF THINGS”)
Bachelors Of Technology
Mechatronics Engineering
Submitted By:-
Ashutosh Mahapatro
GU-2019-3328-L
FACULTY OF ENGINEERING DESIGN & AUTOMATION
---------------------- --------------------
Ashutosh Mahapatro Signature of HOD
Gu-2019-3328-L Mr. Mandeep Heer
B.Tech Mechatronics HOD Mechatronics
CONTENTS
➢Electronics
o Basics of Electronic Components
o Microcontrollers in IOT
o ESP Processors
o Sensors & Actuators
➢Programming
o Text vs block Programming
o About Facilino Software
o USB Serial
CONCLUSION
INTRODUCTION
The Internet of Things (IOT) refers to a system of interrelated,
internet-connected objects that are able to collect and transfer
data over a wireless network without human intervention.
Resistors:
Used in almost every circuit to limit the current flow or
to adapt a voltage.
Ohm’s law R=V/I. Measured in Ohms.
Capacitors:
Used to store electrical charge so that they provide
required current peaks. Also used as filters.
In DC a capacitor behaves as an open-circuit.
Coils:
Used to generate an electromotive force due to a
change of the flow of current. Also used as filters.
In DC a coil behaves as a wire.
Diodes:
Made from the union of N-type and P-type semiconductors.
Current flows on one direction, but not in the opposite
direction (from anode to cathode).
Transistor
Useful for amplification and switching applications.
Amplifier: A tiny current on one lead produces a bigger
current at the other leads.
Switch: A small current through on one lead makes the current
flow on the two other leads.
Types:
BJT have three layers of doped semiconductor material: NPN
or PNP. They have pins: Base (B), Collector (C) and Emitter
(E).
MOSFET: A voltage applied to the gate can generate a
current flow between the other leads, the source and the drain
Thyristors & Triacs
They can be used to control loads such as lamps, motors,
heaters.
A thyristor is like a controlled diode. The current only flows
in one direction but only if a voltage is applied to the gate. To
switch off, the current between the anode and the cathode
must be eliminated.
Triacs is like a thyristor but can conduct current in both
directions, they are used in AC power control.
Microcontrollers In IOT
Digital vs. Analog: A digital signal varies between two possible
states HIGH or LOW, while an signal that can take any value
HIGH or LOW.
Digital Output: The microcontroller can set a HIGH or LOW
voltage.
Analog Input: An internal ADC converts the analog value into
a decimal number (typically discrete values with 10-bit to 16 bit
resolution).
PWM (Pulse modulated width): A periodic signal with
variable HIGH/LOW times. Typically used to control
transistors, generate frequencies, etc... They can be seen as
‘analog’ signals for components with slow dynamics, such as
motors or analog filters.
NodeMCU.
Ivan Grokhotkov, adapt the API so it can be programmed with
Arduino IDE by developing the esp. too
The ESP32 came out at the end of 2015 and overcomes
ESP8266 limitations.
It is much faster. It has two cores and 520Kb RAM shared by
the cores.
Wi-Fi encryption carried out by dedicated hardware. This
extends the possibility to use it for industrial and commercial
uses.
Available API to program ESP32 with Arduino IDE in GitHub.
With up to 4 GPIO available (considering TX and RX).
Wi-Fi 802.11b/g/n
Includes 1Mb Flash (program memory)
AT-command interface: Wi-Fi management, such station mode,
access point, SSID, password, etc…
Can be used as a web-server, remotely control a device, etc.
We can upload our own firmware, but this procedure is complex
and requires a programmer.
Sensors & Actuators
Light Dependent Resistor (LDR): Its resistance varies depending
on the amount of visible light received.
Typical circuit application:
Passive Buzzer
A buzzer has a piezoelectric layer that makes a membrane
vibrate when a current is applied to it.
consumption.
I2C or SPI interfaces
Text Programming
In particular in Arduino IDE (based on C++)
C++ is based on OOP (object oriented paradigm). Well-
structured code.
Libraries: maintained by communities and particular users.
Arduino IDE is simple and easy compared to other development
environments. You need to remember the API or continuously
access to the documentation.
It can be complex to understand for non-experienced users,
particularly when handling pointers, managing memory, etc…
Prone to compilation errors.
Block Programming
Block programming expose users to the fun aspects of
programming (creativity and design).
With a simple block, you can generate many lines of code.
Blocks can be reconfigurable, very intuitive to use and they
require less memory effort to remember how to use it.
Good for simple programs, it’s a kick start for many situations.
Students learn programming without noticing. Block
programming tools are not necessarily childish.
Difficult to maintain for larger programs. They are not
standardized.
They are not as accessible to students with visual disabilities.
About Facilino Software
License
License can be acquired at Robotics Facile store, a very small
company, devoted to create and provide educational resources in
UPV MOOCs:
Facilino license allows code generation for advanced
instructions.
13-digit key that can be used on any platform and several
computers (after 5 min). No shipping costs.
Uncountable hours devoted to improve this software. Collected
money from the license is used for buying new materials to
create new resources.
Programming USB Serial