Module 4
Module 4
• Sensors: temperature sensor, humidity and temperature sensor, light dependent sensor,
touch sensor, ultrasonic sensor, soil moisture sensor.
• Control Unit – ATmega328 • Control Unit – Broadcom • Control Unit – Tensilica L106
Microcontroller BCM2837B0 SoC Diamond series 32-bit
• RAM – 2KB • RAM – 1GB microcontroller
• CPU Architecture – 8bit • CPU Architecture – 64bit • RAM – 160 KB (SRAM)
• Operating System – No • Operating System – Yes • CPU Architecture – 32-bit RISC
• Processing Speed – 16MHz • Processing Speed – 1.4GHz • Operating System – RTOS SDK
• Power Consumed – 175MW • Power Consumed – 700MW • Processing Speed – Up to 160
• I/O Current Drive Strength – • I/O Current Drive Strength – MHz
40mA 16mA • Power Consumed – 70 mA
• I/O Current Drive Strength – 12
mA per GPIO pin
Modus Operandi
Modes of Operation
Single-board Microcontroller Single-board Computer Single-board Microcontroller
• Supports audio and GUIs
• Does not support audio and GUIs • Wide-range of Operating Software • Does not support audio and GUIs
• Arduino-specific IDE and Compiler • Uses “Hats” for extending • Arduino-specific IDE and Compiler
• Uses “Shields” for extending functionalities • Uses “GPIO pins” for extending
functionalities • Best at logical processing of data functionalities
• Best at controlling machines and and communicating with other • Best at wireless communication
performing repetitive tasks. systems. tasks.
Arduino vs. Raspberry Pi
Boards Available
Arduino Raspberry Pi
•IoT Focus: With the rise of the Internet of Things, Arduino's low-power boards, such as the MKR series, and its support for
cloud-based services (Arduino Cloud) make it a strong candidate for IoT projects. It is becoming increasingly integrated into
smart home devices, industrial IoT, and automation systems.
•Education & STEM: Arduino has long been a go-to platform for beginners in electronics and coding. Its future in education
looks bright as schools increasingly adopt STEM curricula and emphasize hands-on learning.
•AI Integration: Arduino is likely to incorporate more AI capabilities, with platforms like TensorFlow Lite being used to run
machine learning models on microcontrollers, expanding its use in robotics and smart devices.
Futures of Raspberry Pi
•Increased Computing Power: With boards like the Raspberry Pi 4 offering desktop-level computing, the future of
Raspberry Pi lies in providing powerful, low-cost computing for education, hobbyists, and even businesses. Newer
models will likely feature more powerful CPUs, better GPU capabilities, and support for advanced peripherals.
•IoT and Edge Computing: Raspberry Pi’s flexibility and support for a wide range of operating systems (e.g., Linux,
Windows IoT) position it well for IoT and edge computing applications. It is expected to continue being a popular platform
for creating IoT gateways and smart devices that process data locally at the edge of the network.
•AI and Machine Learning: Like Arduino, Raspberry Pi is expanding its role in AI, thanks to its compatibility with machine
learning frameworks like TensorFlow, PyTorch, and OpenCV. Its ability to handle more intensive computations makes it
suitable for edge AI applications.
•Education & DIY Projects: Raspberry Pi will remain a staple in educational environments and DIY projects, allowing
students and hobbyists to build computers, robots, and media centers at an affordable price.
•Industry Adoption: Raspberry Pi is increasingly being adopted for industrial applications due to its affordability and
ability to run industrial software. Future versions may focus more on industrial-grade features like rugged designs, real-
time operating systems, and more secure hardware.
Futures of ESP8266
•IoT Dominance: The ESP8266 is widely used in IoT applications due to its low cost and integrated Wi-Fi capability.
Future iterations will likely see more powerful successors (e.g., ESP32) that offer better performance, more connectivity
options (Bluetooth, LoRa, etc.), and enhanced security features.
•Smart Devices and Automation: The ESP8266’s role in building smart home devices, sensors, and automation
systems will continue to expand. It is ideal for low-cost, low-power IoT applications, and future versions will focus on even
lower power consumption and wider wireless range.
•Increased Security: As IoT devices become more ubiquitous, security will be a growing concern. Future developments
in ESP8266 and related platforms will likely focus on stronger encryption, secure boot processes, and other security
features to ensure the safety of data and devices.
•Support for Cloud Services: Integration with various cloud services (such as AWS IoT, Microsoft Azure IoT) is growing,
and future iterations of ESP8266 or its successors will likely emphasize seamless cloud connectivity, making it easier to
implement large-scale IoT networks.
Real Time
Application of
Sensors
Autopilot System
in aircrafts
Autopilot System in
aircrafts
What is a Sensor?
• Sensor as an input device which provides
an output (signal) with respect to a
specific physical quantity (input).
• The term “input device” in the definition of a
Sensor means that it is part of a bigger system
which provides input to a main control system
(like a Processor or a Microcontroller).
• Another unique definition of a Sensor is as
follows: It is a device that converts signals from
one energy domain to electrical domain
Example of a sensor is an LDR or a Light Dependent Resistor
• It is a device, whose resistance varies according to intensity of light it is subjected to. When the light falling
on an LDR is more, its resistance becomes very less and when the light is less, well, the resistance of the LDR
becomes very high.
• We can connect this LDR in a voltage divider (along with other resistor) and check the voltage drop across the
LDR. This voltage can be calibrated to the amount of light falling on the LDR. Hence, a Light Sensor.
Classification of Sensors
In the first classification of the sensors, they are divided into Active and Passive. Active Sensors
are those which require an external excitation signal or a power signal.
Passive Sensors, on the other hand, do not require any external power signal and directly
generates output response.
The final classification of the sensors are Analog and Digital Sensors. Analog Sensors produce
an analog output i.e. a continuous output signal with respect to the quantity being measured.
Digital Sensors, in contrast to Analog Sensors, work with discrete or digital data. The data in
digital sensors, which is used for conversion and transmission, is digital in nature.
Different Types of Sensors
• H-bridge
• L293/L293D
• Timer
• Pulse Width Modulation
H-Bridge
• Note: A motor driver doesn’t amplify current, it only acts as switches. An L293 is nothing but
four switches.!
L293
• Drivers are enabled in pairs, with drivers 1 and 2 being enabled by the EN Pin. For EN=1 or +5V,
the outputs are active and in phase with their inputs.
• When EN Pin is low, the output is low(disconnected), irrespective of the input.
• Asserting both logics to either high or low will stop the motor.
Popularity