SlideShare a Scribd company logo
1 of 16
Download to read offline
Adding Wi-Fi to our
Embedded Systems
By
Devesh Samaiya
devesh.samaiya@pilani.bits-pilani.ac.in
Why Add Wi-Fi?
● Having network connectivity is good for any
computing system. It opens plenty of new
possibilities and adds to a systems utility.
● Can fetch data from anywhere in the WWW.
● Can push data to cloud or any specific server for
storage, computation or monitoring.
How?
● We need a piece of external hardware that can
convert the Wi-Fi data into a data format
understood by common micro-controller, example
UART, SPI, I2C etc.
● The external hardware must have all the network
protocol stack, RF front ends, Encryption-
Decryption algorithm built into it.
Options!
● Plenty are there.
● Almost every SoC manufacturer have their own
Wi-Fi SoC.
● We will talk about the one which is easily
available, lowest cost, easy to use, supported by
community of users.
ESP8266
● $5 Micro-controller with Wi-Fi capability.
● Can be programmed just like any other MCU, it has GPIO,
SPI, I2C, UART, I2S.
● It has 802.11 b/g/n.
● Integrated TCP/IP Protocol stack. MAC/ Baseband Processor.
● Integrated TR Switch, Balun, LNA, Power Amplifier,
matching network.
● Integrated PLL, regulator, DCXO, PMU.
DCXO – digitally controlled Oscillator, PMU – Power management unit
ESP8266 Continued.
● Designed and distributed by a fab-less Chinese
company named Espressif Systems.
● Comes in a QFN-32 package, smaller than a
fingernail.
● Supported by a large user community online.
● Various breakout modules are available in market
at a cost as low as Rs. 300.
ESP8266 Interfacing
● We will be using ESP-01 Module.
RXD Receive Data
Vcc 3V3, DO NOT Connect 5V
GPIO0 Also, used to enter into Flash Mode, Active Low
RST Reset
GPIO 2 General Purpose I/O
CH_PD Chip Enable, Active High
GND Ground
TXD Transmit Data
ESP8266 Interfacing
AT Commands
There are many other commands for every other task ESP8266 can perform.
Remembering so many AT commands with all the correct parameter is hardly possible,
we need a more familiar system like C Language, Arduino Sketch or Any other easy to
write and read script.
NodeMCU and LUA Script
● ESP8266 is made to understand its AT Commands.
● For larger programs AT commands based program
becomes complex to read and write.
● NodeMCU is a very useful ESP8266 firmware.
● Allows writing of easy to understand LUA scripts
for ESP8266 applications.
Which is easy to remember?
wifi.sta.getip() AT+CIFSR
wifi.setmode(wifi.STATION) AT+CWMODE = 1 [1 Indicates STATION]
LUA Script Style AT Commands
Using LUA is easy for application programmer for larger more complex programs.
How to flash Node MCU firmware to
ESP8266?
● Use this sofware utility -“ESP8266 Flasher”
LUA Script for Web Client
1 wifi.setmode(wifi.STATION)
2 wifi.sta.config("AndroidAP","esp8266")
3 wifi.sta.connect()
4 tmr.delay(100000000) -- wait 1,000,000 us = 1 second
5 print(wifi.sta.status())
6 print(wifi.sta.getip())
7 conn=net.createConnection(net.TCP, false)
8 conn:on("receive", function(conn, pl) print(pl) end)
9 conn:connect(80,"121.41.33.127")
10 conn:send("GET / HTTP/1.1rnHost: www.nodemcu.comrn"
.."Connection: keep-alivernAccept:*/*rnrn")
Once written, this script can be permanently stored in ESP8266 flash memory and
can be called to run any time using any external serial interface.
Let's say the file name is client.lua, you can call this script by sending
=dofile('client.lua') over serial interface.
Programming the Flash
● Use ESPlorer sofware. Tie GPIO0 to Ground.
● Write your LUA script and press SEND to ESP to
run the script.
● Use SAVE to ESP to permanently flash the script
onto memory.
● NodeMCU firmware always executes init.lua upon
reset/ power on. In'init.lua' write everything you
need to run upon start-up.
Things to learn yourself
● Blynk (blynk.cc)
● ESP8266 using Arduino IDE
● LUA script in detail.
Keep on Making!

More Related Content

What's hot

Nodemcu - introduction
Nodemcu - introductionNodemcu - introduction
Nodemcu - introductionMichal Sedlak
 
Bluetooth based home automation system
Bluetooth based home automation systemBluetooth based home automation system
Bluetooth based home automation systemVeer Singh shakya
 
Electronics seminar topics
Electronics seminar topicsElectronics seminar topics
Electronics seminar topics123seminarsonly
 
Sign language translator using glove
Sign language translator using gloveSign language translator using glove
Sign language translator using glovechetanjain92r
 
ESP8266 and IOT
ESP8266 and IOTESP8266 and IOT
ESP8266 and IOTdega1999
 
Ec2308 mini project
Ec2308 mini projectEc2308 mini project
Ec2308 mini projectunnimaya_k
 
Electronics project presentation
Electronics project presentationElectronics project presentation
Electronics project presentationZahidul Islam Razu
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduinoyeokm1
 
Winter traning arduino report final
Winter traning arduino report finalWinter traning arduino report final
Winter traning arduino report finalGovind Jha
 
Esp32 cam arduino-123
Esp32 cam arduino-123Esp32 cam arduino-123
Esp32 cam arduino-123Victor Sue
 
Iot home automation varsha,ashish,sagar,arvind
Iot home automation  varsha,ashish,sagar,arvindIot home automation  varsha,ashish,sagar,arvind
Iot home automation varsha,ashish,sagar,arvindAshish Chourasiya
 
Deauthentication Attack with Node MCU & Esp8266
Deauthentication Attack with Node MCU & Esp8266Deauthentication Attack with Node MCU & Esp8266
Deauthentication Attack with Node MCU & Esp8266Akash Thakur
 
Project report of Cell phone detector circuit
Project report of Cell phone detector circuitProject report of Cell phone detector circuit
Project report of Cell phone detector circuitMoin Aman
 
Arduino Workshop
Arduino WorkshopArduino Workshop
Arduino Workshopatuline
 
Fingerprint based physical access control vehicle immobilizer
Fingerprint based physical access control vehicle immobilizer Fingerprint based physical access control vehicle immobilizer
Fingerprint based physical access control vehicle immobilizer VIKAS SINGH BHADOURIA
 
Advanced vehicle security system using fingerprint & gsm new
Advanced vehicle security system using fingerprint & gsm newAdvanced vehicle security system using fingerprint & gsm new
Advanced vehicle security system using fingerprint & gsm newVedang Radio Tech. Pvt. Ltd
 
Fingerprint base security system
Fingerprint base security systemFingerprint base security system
Fingerprint base security systempraful borad
 
ESP32 WiFi & Bluetooth Module - Getting Started Guide
ESP32 WiFi & Bluetooth Module - Getting Started GuideESP32 WiFi & Bluetooth Module - Getting Started Guide
ESP32 WiFi & Bluetooth Module - Getting Started Guidehandson28
 
IoT Based Home Automation System Presantation
IoT Based Home Automation System PresantationIoT Based Home Automation System Presantation
IoT Based Home Automation System PresantationFarhan Ahmed Rahee
 

What's hot (20)

Nodemcu - introduction
Nodemcu - introductionNodemcu - introduction
Nodemcu - introduction
 
Bluetooth based home automation system
Bluetooth based home automation systemBluetooth based home automation system
Bluetooth based home automation system
 
Electronics seminar topics
Electronics seminar topicsElectronics seminar topics
Electronics seminar topics
 
Sign language translator using glove
Sign language translator using gloveSign language translator using glove
Sign language translator using glove
 
ESP8266 and IOT
ESP8266 and IOTESP8266 and IOT
ESP8266 and IOT
 
Ec2308 mini project
Ec2308 mini projectEc2308 mini project
Ec2308 mini project
 
Electronics project presentation
Electronics project presentationElectronics project presentation
Electronics project presentation
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
Winter traning arduino report final
Winter traning arduino report finalWinter traning arduino report final
Winter traning arduino report final
 
Esp32 cam arduino-123
Esp32 cam arduino-123Esp32 cam arduino-123
Esp32 cam arduino-123
 
Iot home automation varsha,ashish,sagar,arvind
Iot home automation  varsha,ashish,sagar,arvindIot home automation  varsha,ashish,sagar,arvind
Iot home automation varsha,ashish,sagar,arvind
 
GSM-BASED-HOME-AUTOMATION-PPT
GSM-BASED-HOME-AUTOMATION-PPTGSM-BASED-HOME-AUTOMATION-PPT
GSM-BASED-HOME-AUTOMATION-PPT
 
Deauthentication Attack with Node MCU & Esp8266
Deauthentication Attack with Node MCU & Esp8266Deauthentication Attack with Node MCU & Esp8266
Deauthentication Attack with Node MCU & Esp8266
 
Project report of Cell phone detector circuit
Project report of Cell phone detector circuitProject report of Cell phone detector circuit
Project report of Cell phone detector circuit
 
Arduino Workshop
Arduino WorkshopArduino Workshop
Arduino Workshop
 
Fingerprint based physical access control vehicle immobilizer
Fingerprint based physical access control vehicle immobilizer Fingerprint based physical access control vehicle immobilizer
Fingerprint based physical access control vehicle immobilizer
 
Advanced vehicle security system using fingerprint & gsm new
Advanced vehicle security system using fingerprint & gsm newAdvanced vehicle security system using fingerprint & gsm new
Advanced vehicle security system using fingerprint & gsm new
 
Fingerprint base security system
Fingerprint base security systemFingerprint base security system
Fingerprint base security system
 
ESP32 WiFi & Bluetooth Module - Getting Started Guide
ESP32 WiFi & Bluetooth Module - Getting Started GuideESP32 WiFi & Bluetooth Module - Getting Started Guide
ESP32 WiFi & Bluetooth Module - Getting Started Guide
 
IoT Based Home Automation System Presantation
IoT Based Home Automation System PresantationIoT Based Home Automation System Presantation
IoT Based Home Automation System Presantation
 

Viewers also liked

Build WiFi gadgets using esp8266
Build WiFi gadgets using esp8266Build WiFi gadgets using esp8266
Build WiFi gadgets using esp8266Baoshi Zhu
 
Home Automation by ESP8266
Home Automation by ESP8266Home Automation by ESP8266
Home Automation by ESP8266Gleb Vinnikov
 
Cassiopeia Ltd - ESP8266+Arduino workshop
Cassiopeia Ltd - ESP8266+Arduino workshopCassiopeia Ltd - ESP8266+Arduino workshop
Cassiopeia Ltd - ESP8266+Arduino workshoptomtobback
 
Esp8266 - Intro for dummies
Esp8266 - Intro for dummiesEsp8266 - Intro for dummies
Esp8266 - Intro for dummiesPavlos Isaris
 
Adafruit Huzzah Esp8266 WiFi Board
Adafruit Huzzah Esp8266 WiFi BoardAdafruit Huzzah Esp8266 WiFi Board
Adafruit Huzzah Esp8266 WiFi BoardBiagio Botticelli
 
Home automation using IoT
Home automation using IoTHome automation using IoT
Home automation using IoTAthira_1993
 
Internet of Things and its applications
Internet of Things and its applicationsInternet of Things and its applications
Internet of Things and its applicationsPasquale Puzio
 
IoT simple with the ESP8266 - presented at the July 2015 Austin IoT Hardware ...
IoT simple with the ESP8266 - presented at the July 2015 Austin IoT Hardware ...IoT simple with the ESP8266 - presented at the July 2015 Austin IoT Hardware ...
IoT simple with the ESP8266 - presented at the July 2015 Austin IoT Hardware ...David Fowler
 
HOME AUTOMATION USING ARDUINO
HOME AUTOMATION USING ARDUINOHOME AUTOMATION USING ARDUINO
HOME AUTOMATION USING ARDUINOEklavya Sharma
 
Wi-Fi technology presentation
Wi-Fi technology presentationWi-Fi technology presentation
Wi-Fi technology presentationEyad Manna
 
4. reading energy from piece fair energy meter by using esp8266
4. reading energy from piece fair energy meter by using esp82664. reading energy from piece fair energy meter by using esp8266
4. reading energy from piece fair energy meter by using esp8266k srikanth
 
getting started with esp8266 @HackIoT#2
getting started with esp8266 @HackIoT#2getting started with esp8266 @HackIoT#2
getting started with esp8266 @HackIoT#2Sergei Silnov
 
Esp8266 wi fi_module_quick_start_guide_v_1.0.4
Esp8266 wi fi_module_quick_start_guide_v_1.0.4Esp8266 wi fi_module_quick_start_guide_v_1.0.4
Esp8266 wi fi_module_quick_start_guide_v_1.0.4Melvin Gutiérrez Rivero
 
Espresso Lite v2 - ESP8266 Overview
Espresso Lite v2 - ESP8266 OverviewEspresso Lite v2 - ESP8266 Overview
Espresso Lite v2 - ESP8266 OverviewThe World Bank
 
Blynk.IoT #iotconfua
Blynk.IoT #iotconfuaBlynk.IoT #iotconfua
Blynk.IoT #iotconfuaAndy Shutka
 
Web x Arduino 智能監控潮潮 Der
Web x Arduino 智能監控潮潮 DerWeb x Arduino 智能監控潮潮 Der
Web x Arduino 智能監控潮潮 DerWeb Arduino
 

Viewers also liked (20)

Build WiFi gadgets using esp8266
Build WiFi gadgets using esp8266Build WiFi gadgets using esp8266
Build WiFi gadgets using esp8266
 
Esp8266 Workshop
Esp8266 WorkshopEsp8266 Workshop
Esp8266 Workshop
 
Home Automation by ESP8266
Home Automation by ESP8266Home Automation by ESP8266
Home Automation by ESP8266
 
Cassiopeia Ltd - ESP8266+Arduino workshop
Cassiopeia Ltd - ESP8266+Arduino workshopCassiopeia Ltd - ESP8266+Arduino workshop
Cassiopeia Ltd - ESP8266+Arduino workshop
 
Esp8266 - Intro for dummies
Esp8266 - Intro for dummiesEsp8266 - Intro for dummies
Esp8266 - Intro for dummies
 
Adafruit Huzzah Esp8266 WiFi Board
Adafruit Huzzah Esp8266 WiFi BoardAdafruit Huzzah Esp8266 WiFi Board
Adafruit Huzzah Esp8266 WiFi Board
 
Home automation using IoT
Home automation using IoTHome automation using IoT
Home automation using IoT
 
Wi-Fi Technology
Wi-Fi TechnologyWi-Fi Technology
Wi-Fi Technology
 
Internet of Things and its applications
Internet of Things and its applicationsInternet of Things and its applications
Internet of Things and its applications
 
IoT simple with the ESP8266 - presented at the July 2015 Austin IoT Hardware ...
IoT simple with the ESP8266 - presented at the July 2015 Austin IoT Hardware ...IoT simple with the ESP8266 - presented at the July 2015 Austin IoT Hardware ...
IoT simple with the ESP8266 - presented at the July 2015 Austin IoT Hardware ...
 
HOME AUTOMATION USING ARDUINO
HOME AUTOMATION USING ARDUINOHOME AUTOMATION USING ARDUINO
HOME AUTOMATION USING ARDUINO
 
Wi-Fi technology presentation
Wi-Fi technology presentationWi-Fi technology presentation
Wi-Fi technology presentation
 
4. reading energy from piece fair energy meter by using esp8266
4. reading energy from piece fair energy meter by using esp82664. reading energy from piece fair energy meter by using esp8266
4. reading energy from piece fair energy meter by using esp8266
 
getting started with esp8266 @HackIoT#2
getting started with esp8266 @HackIoT#2getting started with esp8266 @HackIoT#2
getting started with esp8266 @HackIoT#2
 
Esp8266 wi fi_module_quick_start_guide_v_1.0.4
Esp8266 wi fi_module_quick_start_guide_v_1.0.4Esp8266 wi fi_module_quick_start_guide_v_1.0.4
Esp8266 wi fi_module_quick_start_guide_v_1.0.4
 
Raspberry Pi
 Raspberry Pi  Raspberry Pi
Raspberry Pi
 
Espresso Lite v2 - ESP8266 Overview
Espresso Lite v2 - ESP8266 OverviewEspresso Lite v2 - ESP8266 Overview
Espresso Lite v2 - ESP8266 Overview
 
Blynk.IoT #iotconfua
Blynk.IoT #iotconfuaBlynk.IoT #iotconfua
Blynk.IoT #iotconfua
 
Web x Arduino 智能監控潮潮 Der
Web x Arduino 智能監控潮潮 DerWeb x Arduino 智能監控潮潮 Der
Web x Arduino 智能監控潮潮 Der
 
Wi-Fi Module
Wi-Fi ModuleWi-Fi Module
Wi-Fi Module
 

Similar to WiFi SoC ESP8266

IRJET- Navigation Camp – Bot
IRJET-  	  Navigation Camp – BotIRJET-  	  Navigation Camp – Bot
IRJET- Navigation Camp – BotIRJET Journal
 
Practical Introduction to Internet of Things (IoT)
Practical Introduction to Internet of Things (IoT)Practical Introduction to Internet of Things (IoT)
Practical Introduction to Internet of Things (IoT)Suraj Kumar Jana
 
IRJET- BSIOTR IT SMART LAB using IOT
IRJET- BSIOTR IT SMART LAB using IOTIRJET- BSIOTR IT SMART LAB using IOT
IRJET- BSIOTR IT SMART LAB using IOTIRJET Journal
 
Embedded Web Server based Home Automation using Raspberry PI
Embedded Web Server based Home Automation using Raspberry PIEmbedded Web Server based Home Automation using Raspberry PI
Embedded Web Server based Home Automation using Raspberry PIEditor IJMTER
 
Integrated development environment
Integrated development environmentIntegrated development environment
Integrated development environmentMakers of India
 
Keri Training ADI Presentation
Keri Training ADI PresentationKeri Training ADI Presentation
Keri Training ADI Presentationkeriwebmaster
 
137.gsm, fprs ,keypad_based_atm_security_(doc)
137.gsm, fprs ,keypad_based_atm_security_(doc)137.gsm, fprs ,keypad_based_atm_security_(doc)
137.gsm, fprs ,keypad_based_atm_security_(doc)Karteek Irukulla
 
Wireless stepper motor control using zigbee
Wireless stepper motor control  using zigbeeWireless stepper motor control  using zigbee
Wireless stepper motor control using zigbeesavan Darji
 
Adding Wi-Fi capability to the Microcontroller.pptx
Adding Wi-Fi capability to the Microcontroller.pptxAdding Wi-Fi capability to the Microcontroller.pptx
Adding Wi-Fi capability to the Microcontroller.pptxPenchalReddy7
 
Adding Wi-Fi capability to the Microcontroller.pptx
Adding Wi-Fi capability to the Microcontroller.pptxAdding Wi-Fi capability to the Microcontroller.pptx
Adding Wi-Fi capability to the Microcontroller.pptxPenchalReddy7
 
Codesign-Oriented Platform for Agile Internet of Things Prototype Development
Codesign-Oriented Platform for Agile Internet of Things Prototype DevelopmentCodesign-Oriented Platform for Agile Internet of Things Prototype Development
Codesign-Oriented Platform for Agile Internet of Things Prototype DevelopmentJonathan Ruiz de Garibay
 
Eclipse Edje: A Java API for Microcontrollers
Eclipse Edje: A Java API for MicrocontrollersEclipse Edje: A Java API for Microcontrollers
Eclipse Edje: A Java API for MicrocontrollersMicroEJ
 
WISE-523x & WISE-224x-EN.pdf
WISE-523x & WISE-224x-EN.pdfWISE-523x & WISE-224x-EN.pdf
WISE-523x & WISE-224x-EN.pdfilangoboopalan2
 

Similar to WiFi SoC ESP8266 (20)

IRJET- Navigation Camp – Bot
IRJET-  	  Navigation Camp – BotIRJET-  	  Navigation Camp – Bot
IRJET- Navigation Camp – Bot
 
Practical Introduction to Internet of Things (IoT)
Practical Introduction to Internet of Things (IoT)Practical Introduction to Internet of Things (IoT)
Practical Introduction to Internet of Things (IoT)
 
IRJET- BSIOTR IT SMART LAB using IOT
IRJET- BSIOTR IT SMART LAB using IOTIRJET- BSIOTR IT SMART LAB using IOT
IRJET- BSIOTR IT SMART LAB using IOT
 
Report
ReportReport
Report
 
Embedded Web Server based Home Automation using Raspberry PI
Embedded Web Server based Home Automation using Raspberry PIEmbedded Web Server based Home Automation using Raspberry PI
Embedded Web Server based Home Automation using Raspberry PI
 
Integrated development environment
Integrated development environmentIntegrated development environment
Integrated development environment
 
Sa*ple
Sa*pleSa*ple
Sa*ple
 
Keri Training ADI Presentation
Keri Training ADI PresentationKeri Training ADI Presentation
Keri Training ADI Presentation
 
137.gsm, fprs ,keypad_based_atm_security_(doc)
137.gsm, fprs ,keypad_based_atm_security_(doc)137.gsm, fprs ,keypad_based_atm_security_(doc)
137.gsm, fprs ,keypad_based_atm_security_(doc)
 
IoT Intro and Demo
IoT Intro and DemoIoT Intro and Demo
IoT Intro and Demo
 
Wireless stepper motor control using zigbee
Wireless stepper motor control  using zigbeeWireless stepper motor control  using zigbee
Wireless stepper motor control using zigbee
 
Adding Wi-Fi capability to the Microcontroller.pptx
Adding Wi-Fi capability to the Microcontroller.pptxAdding Wi-Fi capability to the Microcontroller.pptx
Adding Wi-Fi capability to the Microcontroller.pptx
 
Adding Wi-Fi capability to the Microcontroller.pptx
Adding Wi-Fi capability to the Microcontroller.pptxAdding Wi-Fi capability to the Microcontroller.pptx
Adding Wi-Fi capability to the Microcontroller.pptx
 
Codesign-Oriented Platform for Agile Internet of Things Prototype Development
Codesign-Oriented Platform for Agile Internet of Things Prototype DevelopmentCodesign-Oriented Platform for Agile Internet of Things Prototype Development
Codesign-Oriented Platform for Agile Internet of Things Prototype Development
 
Nsk products
Nsk productsNsk products
Nsk products
 
Chapter 2.doc
Chapter 2.docChapter 2.doc
Chapter 2.doc
 
ESP8266 Wifi Nodemcu
ESP8266 Wifi Nodemcu ESP8266 Wifi Nodemcu
ESP8266 Wifi Nodemcu
 
NodeMCU || Controlling and observing a robotic car with a smartphone through...
NodeMCU || Controlling and observing a robotic car with a  smartphone through...NodeMCU || Controlling and observing a robotic car with a  smartphone through...
NodeMCU || Controlling and observing a robotic car with a smartphone through...
 
Eclipse Edje: A Java API for Microcontrollers
Eclipse Edje: A Java API for MicrocontrollersEclipse Edje: A Java API for Microcontrollers
Eclipse Edje: A Java API for Microcontrollers
 
WISE-523x & WISE-224x-EN.pdf
WISE-523x & WISE-224x-EN.pdfWISE-523x & WISE-224x-EN.pdf
WISE-523x & WISE-224x-EN.pdf
 

Recently uploaded

Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 

Recently uploaded (20)

Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 

WiFi SoC ESP8266

  • 1. Adding Wi-Fi to our Embedded Systems By Devesh Samaiya devesh.samaiya@pilani.bits-pilani.ac.in
  • 2. Why Add Wi-Fi? ● Having network connectivity is good for any computing system. It opens plenty of new possibilities and adds to a systems utility. ● Can fetch data from anywhere in the WWW. ● Can push data to cloud or any specific server for storage, computation or monitoring.
  • 3. How? ● We need a piece of external hardware that can convert the Wi-Fi data into a data format understood by common micro-controller, example UART, SPI, I2C etc. ● The external hardware must have all the network protocol stack, RF front ends, Encryption- Decryption algorithm built into it.
  • 4. Options! ● Plenty are there. ● Almost every SoC manufacturer have their own Wi-Fi SoC. ● We will talk about the one which is easily available, lowest cost, easy to use, supported by community of users.
  • 5. ESP8266 ● $5 Micro-controller with Wi-Fi capability. ● Can be programmed just like any other MCU, it has GPIO, SPI, I2C, UART, I2S. ● It has 802.11 b/g/n. ● Integrated TCP/IP Protocol stack. MAC/ Baseband Processor. ● Integrated TR Switch, Balun, LNA, Power Amplifier, matching network. ● Integrated PLL, regulator, DCXO, PMU. DCXO – digitally controlled Oscillator, PMU – Power management unit
  • 6. ESP8266 Continued. ● Designed and distributed by a fab-less Chinese company named Espressif Systems. ● Comes in a QFN-32 package, smaller than a fingernail. ● Supported by a large user community online. ● Various breakout modules are available in market at a cost as low as Rs. 300.
  • 7. ESP8266 Interfacing ● We will be using ESP-01 Module. RXD Receive Data Vcc 3V3, DO NOT Connect 5V GPIO0 Also, used to enter into Flash Mode, Active Low RST Reset GPIO 2 General Purpose I/O CH_PD Chip Enable, Active High GND Ground TXD Transmit Data
  • 9. AT Commands There are many other commands for every other task ESP8266 can perform. Remembering so many AT commands with all the correct parameter is hardly possible, we need a more familiar system like C Language, Arduino Sketch or Any other easy to write and read script.
  • 10. NodeMCU and LUA Script ● ESP8266 is made to understand its AT Commands. ● For larger programs AT commands based program becomes complex to read and write. ● NodeMCU is a very useful ESP8266 firmware. ● Allows writing of easy to understand LUA scripts for ESP8266 applications.
  • 11. Which is easy to remember? wifi.sta.getip() AT+CIFSR wifi.setmode(wifi.STATION) AT+CWMODE = 1 [1 Indicates STATION] LUA Script Style AT Commands Using LUA is easy for application programmer for larger more complex programs.
  • 12. How to flash Node MCU firmware to ESP8266? ● Use this sofware utility -“ESP8266 Flasher”
  • 13. LUA Script for Web Client 1 wifi.setmode(wifi.STATION) 2 wifi.sta.config("AndroidAP","esp8266") 3 wifi.sta.connect() 4 tmr.delay(100000000) -- wait 1,000,000 us = 1 second 5 print(wifi.sta.status()) 6 print(wifi.sta.getip()) 7 conn=net.createConnection(net.TCP, false) 8 conn:on("receive", function(conn, pl) print(pl) end) 9 conn:connect(80,"121.41.33.127") 10 conn:send("GET / HTTP/1.1rnHost: www.nodemcu.comrn" .."Connection: keep-alivernAccept:*/*rnrn") Once written, this script can be permanently stored in ESP8266 flash memory and can be called to run any time using any external serial interface. Let's say the file name is client.lua, you can call this script by sending =dofile('client.lua') over serial interface.
  • 14. Programming the Flash ● Use ESPlorer sofware. Tie GPIO0 to Ground. ● Write your LUA script and press SEND to ESP to run the script. ● Use SAVE to ESP to permanently flash the script onto memory. ● NodeMCU firmware always executes init.lua upon reset/ power on. In'init.lua' write everything you need to run upon start-up.
  • 15. Things to learn yourself ● Blynk (blynk.cc) ● ESP8266 using Arduino IDE ● LUA script in detail.