Day3-Iot Master Class
Day3-Iot Master Class
of
Things
Master Class
Day 3
M.K.Jeevarajan
www.pantechsolutions.net
What you will learn Today
Vision
To help 10 Million students around
the globe to learn technology in a
easy way
www.pantechsolutions.net
About me
My Primary Expertise
Microcontroller Architecture: 8051,PIC,AVR,ARM,MSP430,PSOC3
DSP Architecture: Blackfin,C2000,C6000,21065L Sharc
FPGA: Spartan,Virtex,Cyclone
Image Processing Algorithms: Image/Scene Recognition, Machine Learning, Computer Vision, Deep Learning,
Pattern Recognition, Object Classification ,Image Retrieval, Image enhancement and denoising.
Neural Networks : SVM,RBF,BPN
Cryptography :RSA,DES,3DES,Ellipti curve,Blowfish,Diffe Hellman
Compilers: Keil,Visual DSP++,CCS, Xilinx Platform studio,ISE, Matlab, Open CV
https://www.linkedin.com/in/jeevarajan/ www.pantechsolutions.net
Announcement
● Attendance Link at 9 pm
● Minimum attendance required for an E-Certificate is 27
Days. Attendance link will be valid for 1 hrs. after the event.
● For Internship Candidates no attendance required ,it will be
accessed from the LMS Portal. (learn.pantechsolutions.net)
● Recorded Video Streaming for LAB classes to improve
Learning Experience
● PPT in facebook group
● Source code and projects available download only for
Internship canditates
Mindset Lesson for the Day
Formal Education will make you Living
Self Education will bring you Fortune.
-Jim Rohn
List down the learning and investment needed to
achieve Your Goal.
www.pantechsolutions.net
For learning hub visit learn.pantechsolutions.net
What is NodeMCU
www.pantechsolutions.net
For learning hub visit learn.pantechsolutions.net
Why is so Popular
Cheap
Powerful
Low Power consumption
www.pantechsolutions.net
For learning hub visit learn.pantechsolutions.net
Node MCU V 1.0
ESP8266
www.pantechsolutions.net
For learning hub visit learn.pantechsolutions.net
What is ESP32
www.pantechsolutions.net
For learning hub visit learn.pantechsolutions.net
What is ESP32
www.pantechsolutions.net
For learning hub visit learn.pantechsolutions.net
ESP32 vs ESP8266 ESP8266
ESP32
MCU Xtensa Single-core 32-bit L106 Xtensa Dual-Core 32-bit LX6 with
600 DMIPS
SRAM X ✓
Flash X ✓
GPIO 17 34
CAN X ✓
Ethernet MAC Interface X ✓
Touch Sensor X ✓
Temperature Sensor X ✓(old versions)
www.pantechsolutions.net
For learning hub visit learn.pantechsolutions.net
Softwares supported for Node
MCU
www.pantechsolutions.net
For learning hub visit learn.pantechsolutions.net
What is ESP32 CAM
The ESP32-CAM is a very small camera module with the ESP32-S chip that costs
approximately $10. Besides the OV2640 camera, and several GPIOs to connect peripherals, it
also features a microSD card slot that can be useful to store images taken with the camera or
to store files to serve to clients.
Block diagram
www.pantechsolutions.net
For learning hub visit learn.pantechsolutions.net
PIN OUT FOR ESP32CAM
www.pantechsolutions.net
For learning hub visit learn.pantechsolutions.net
Programming of ESP32 CAM
www.pantechsolutions.net
For learning hub visit learn.pantechsolutions.net
Features of ESP32CAM
● The smallest 802.11b/g/n Wi-Fi BT SoC module
● Low power 32-bit CPU,can also serve the application processor
● Up to 160MHz clock speed, summary computing power up to 600 DMIPS
● Built-in 520 KB SRAM, external 4MPSRAM
● Supports UART/SPI/I2C/PWM/ADC/DAC
● Support OV2640 and OV7670 cameras, built-in flash lamp
● Support image WiFi upload
● Support TF card
● Supports multiple sleep modes
● Embedded Lwip and FreeRTOS
● Supports STA/AP/STA+AP operation mode
● Support for serial port local and remote firmware upgrades (FOTA)
www.pantechsolutions.net
For learning hub visit learn.pantechsolutions.net
WHAT IS UART
● Universal asynchronous receiver and Transmitter
● Serial port, COM port, RS232, RS485
● VERY COMMON AND SIMPLE
● Useful for communication to
○ Microcontroller
○ Computer
○ Other FPGA
Asynchronous Vs Synchronous
www.pantechsolutions.net
For learning hub visit learn.pantechsolutions.net
Why Use I2C?
Disadvantage of Serial Port(UART)
● serial ports are asynchronous (no clock data is transmitted), devices using them must agree
ahead of time on a data rate. The two devices must also have clocks that are close to the same
rate
● Another core fault in asynchronous serial ports is that they are inherently suited to
communications between two, and only two, devices. While it is possible to connect multiple
devices to a single serial port, bus contention (where two devices attempt to drive the same line
at the same time)
Disadvantage of SPI
The most obvious drawback of SPI is the number of pins required. Connecting a single
controller [1] to a single peripheral [1] with an SPI bus requires four lines; each additional
peripheral device requires one additional chip select I/O pin on the controller.
SPI only allows one controller on the bus,
www.pantechsolutions.net
For learning hub visit learn.pantechsolutions.net
I2C is Open Drain
● UART or SPI connections, the I2C bus drivers are "open drain",
meaning that they can pull the corresponding signal line low, but
cannot drive it high. Thus, there can be no bus contention where one
device is trying to drive the line high while another tries to pull it low,
eliminating the potential for damage to the drivers or excessive
power dissipation in the system. Each signal line has a pull-up
resistor on it, to restore the signal to high when no device is
asserting it low.
Features of I2C
● Half-duplex Communication Protocol
Bi-directional communication is possible but not simultaneously.
● Synchronous Communication – The data is transferred in the form of frames or blocks.
Can be configured in a multi-master configuration.
● Arbitration –
I2C protocol supports multi-master bus system but more than one bus can not be used
simultaneously. The SDA and SCL are monitored by the masters. If the SDA is found high when it
was supposed to be low it will be inferred that another master is active and hence it stops the
transfer of data.
Serial transmission
I2C uses serial transmission for transmission of data.
Used for low-speed communication.
● Clock Stretching
The clock is stretched when the slave device is not ready to accept more data by holding the
SCL line low, hence disabling the master to raise the clock line. Master will not be able to raise the
clock line because the wires are AND wired and wait until the slave releases the SCL line to show it
is ready to transfer next bit.
Start
● Start Condition: The SDA line switches from a high voltage level to a
low voltage level before the SCL line switches from high to low.
www.pantechsolutions.net
For learning hub visit learn.pantechsolutions.net
Stop
After required data blocks are transferred through the SDA line, the master device switches the
SDA line from low voltage level to high voltage level before the SCL line switches from high to low.
www.pantechsolutions.net
For learning hub visit learn.pantechsolutions.net
I2C – How it works
Sending Data to a Slave Device
www.pantechsolutions.net
For learning hub visit learn.pantechsolutions.net
Reading Data from a Slave Device
Circuit Diagram
www.pantechsolutions.net
For learning hub visit learn.pantechsolutions.net
IoT applications with ESP32 CAM
www.pantechsolutions.net
For learning hub visit learn.pantechsolutions.net
Big Announcement for Diwali
offer
Launching Warrior Way Community
Python Boot camp(10 Days)
?
Thank you