SlideShare une entreprise Scribd logo
1  sur  23
Télécharger pour lire hors ligne
ESP8266
“Designed for the needs of an increasingly connected world”
Pavlos Isaris
Introduction
The ESP8266 WiFi Module is a self contained SOC (system on a chip) with integrated
TCP/IP protocol stack that can give any microcontroller access to a WiFi network.
Features
● Very low cost ( 3-5$ )
● Pre-programmed with an AT command set firmware
● Growing community
● Enough on-board processing power to deal with sensors
through GPIO
● Operating at 3.3V
● Can draw up to 170 mA of current
● Not breadboard-friendly :-(
Βreadboard friendly version (ESP-12)
Why do we need a Voltage regulator?
The ESP8266 may require more than the 35mA supplied by the Arduino 3.3V pin
Baud rate problem
The ESP-8266 comes in various firmware versions, varying also
in the operating baud rate (older operate at 115200 bauds).
My ESP8266 operates in 115200 bauds/second. This means that
we can only use hardware serial to communicate with it
(Arduino Software serial pins handle only 9600 bauds/second)
In such occasion, it is possible to use an Arduino MEGA (4x
Hardware serial couple-pins)
Alternative - Update firmware version
You can also use an FTDI adapter (like the FT232rl) or FTDI
cable, to communicate via USB with ESP8266
There are plenty of tutorials about how to update the firmware
version
After you have updated the firmware version you can change the
baud rate
Multiple variations
Module GPIO Notes
ESP-01 GPIO0/2/16 Most common module.
ESP-02 GPIO0/2/15
ESP-03 GPIO0/2/12/13/14/15/16 Most popular in esp8266.
com poll
ESP-04 GPIO0/2/12/13/14/15/16
ESP-05 None
ESP-06 GPIO0/2/12/13/14/15/16
ESP-07 GPIO0/2/4/5/12/13/14/15/16
ESP-08 GPIO0/2/12/13/14/15/16
ESP-09 GPIO0/2/12/13/14/15 1MB Flash memory
ESP-10 None
ESP-11 GPIO0/1
Using Arduino IDE Serial Monitor
#include <SoftwareSerial.h>
SoftwareSerial ESPserial(2, 3); // RX | TX
void setup()
{
Serial.begin(115200); // communication with the host computer
ESPserial.begin(115200);
Serial.println("");
Serial.println("Remember to to set Both NL & CR in the serial monitor.");
Serial.println("Ready");
Serial.println("");
}
Using Arduino IDE Serial Monitor
void loop()
{
// listen for communication from the ESP8266 and then write it to the serial monitor
if ( ESPserial.available() ) {
Serial.write( ESPserial.read() );
}
// listen for user input and send it to the ESP8266
if ( Serial.available()) {
ESPserial.write( Serial.read() );
}
}
Basic AT commands
Checking for available WiFi networks
Connect to Network
See details
Send a request
Allow multiple connections
Start connection
Specify bytes to be sent
In this case it is “GET /
HTTP/1.0rnrn”
Get the response back
Acting as TCP Server
Acting as a Wifi Access point
ESP8266 core-library
#include <Adafruit_ESP8266.h>
#include <SoftwareSerial.h>
#define ARD_RX_ESP_TX 2
#define ARD_TX_ESP_RX 3
#define ESP_RST 4
SoftwareSerial softser(ARD_RX_ESP_TX, ARD_TX_ESP_RX);
Adafruit_ESP8266 wifi(&softser, &Serial, ESP_RST);
#define ESP_SSID "SSIDNAME" // Your network name here
#define ESP_PASS "PASSWORD" // Your network password here
#define HOST "www.adafruit.com" // Host to contact
#define PAGE "/testwifi/index.html" // Web page to request
#define PORT 80 // 80 = HTTP default port
ESP8266 core-library
softser.begin(9600); // Soft serial connection to ESP8266
Serial.begin(57600); while(!Serial); // UART serial debug
wifi.connectToAP(F(ESP_SSID), F(ESP_PASS))
Serial.print(F("OKnRequesting page..."));
if(wifi.requestURL(F(PAGE))) {
Serial.println("OKnSearching for string...");
if(wifi.find(F("working"), true)) {
Serial.println(F("found!"));
} else {
Serial.println(F("not found."));
}
} else { // URL request failed
Serial.println(F("error"));
}
wifi.closeTCP();
Espert - Development board
http://www.espert.co/ (v2.0 To be released by April 2016.)

Contenu connexe

Tendances

lesson2 - Nodemcu course - NodeMCU dev Board
 lesson2 - Nodemcu course - NodeMCU dev Board lesson2 - Nodemcu course - NodeMCU dev Board
lesson2 - Nodemcu course - NodeMCU dev BoardElaf A.Saeed
 
Esp8266 NodeMCU
Esp8266 NodeMCUEsp8266 NodeMCU
Esp8266 NodeMCUroadster43
 
Home automation-in-the-cloud-with-the-esp8266-and-adafruit-io
Home automation-in-the-cloud-with-the-esp8266-and-adafruit-ioHome automation-in-the-cloud-with-the-esp8266-and-adafruit-io
Home automation-in-the-cloud-with-the-esp8266-and-adafruit-ioTran Minh Nhut
 
Programando o ESP8266 com Python
Programando o ESP8266 com PythonProgramando o ESP8266 com Python
Programando o ESP8266 com PythonRelsi Maron
 
Nodemcu - introduction
Nodemcu - introductionNodemcu - introduction
Nodemcu - introductionMichal Sedlak
 
lesson1 - Getting Started with ESP8266
lesson1 -  Getting Started with ESP8266lesson1 -  Getting Started with ESP8266
lesson1 - Getting Started with ESP8266Elaf A.Saeed
 
Arduino 習作工坊 - Lesson 1 燈光之夜
Arduino 習作工坊 - Lesson 1 燈光之夜Arduino 習作工坊 - Lesson 1 燈光之夜
Arduino 習作工坊 - Lesson 1 燈光之夜CAVEDU Education
 
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
 
Remote temperature monitor (DHT11)
Remote temperature monitor (DHT11)Remote temperature monitor (DHT11)
Remote temperature monitor (DHT11)Parshwadeep Lahane
 
NodeMCU ESP8266 workshop 1
NodeMCU ESP8266 workshop 1NodeMCU ESP8266 workshop 1
NodeMCU ESP8266 workshop 1Andy Gelme
 
Introduction to ESP32 Programming [Road to RIoT 2017]
Introduction to ESP32 Programming [Road to RIoT 2017]Introduction to ESP32 Programming [Road to RIoT 2017]
Introduction to ESP32 Programming [Road to RIoT 2017]Alwin Arrasyid
 
Arduino Meetup with Sonar and 433Mhz Radios
Arduino Meetup with Sonar and 433Mhz RadiosArduino Meetup with Sonar and 433Mhz Radios
Arduino Meetup with Sonar and 433Mhz Radiosroadster43
 
FSEC 2014 - I can haz your board with JTAG
FSEC 2014 - I can haz your board with JTAGFSEC 2014 - I can haz your board with JTAG
FSEC 2014 - I can haz your board with JTAGDobrica Pavlinušić
 
Raspberry Pi - best friend for all your GPIO needs
Raspberry Pi - best friend for all your GPIO needsRaspberry Pi - best friend for all your GPIO needs
Raspberry Pi - best friend for all your GPIO needsDobrica Pavlinušić
 
NodeMCU with Blynk and Firebase
NodeMCU with Blynk and FirebaseNodeMCU with Blynk and Firebase
NodeMCU with Blynk and FirebaseEueung Mulyana
 
Lab 9 instructions
Lab 9 instructionsLab 9 instructions
Lab 9 instructionstrayyoo
 

Tendances (20)

lesson2 - Nodemcu course - NodeMCU dev Board
 lesson2 - Nodemcu course - NodeMCU dev Board lesson2 - Nodemcu course - NodeMCU dev Board
lesson2 - Nodemcu course - NodeMCU dev Board
 
Esp8266 NodeMCU
Esp8266 NodeMCUEsp8266 NodeMCU
Esp8266 NodeMCU
 
Home automation-in-the-cloud-with-the-esp8266-and-adafruit-io
Home automation-in-the-cloud-with-the-esp8266-and-adafruit-ioHome automation-in-the-cloud-with-the-esp8266-and-adafruit-io
Home automation-in-the-cloud-with-the-esp8266-and-adafruit-io
 
Programando o ESP8266 com Python
Programando o ESP8266 com PythonProgramando o ESP8266 com Python
Programando o ESP8266 com Python
 
Nodemcu - introduction
Nodemcu - introductionNodemcu - introduction
Nodemcu - introduction
 
Espressif Introduction
Espressif IntroductionEspressif Introduction
Espressif Introduction
 
lesson1 - Getting Started with ESP8266
lesson1 -  Getting Started with ESP8266lesson1 -  Getting Started with ESP8266
lesson1 - Getting Started with ESP8266
 
Arduino 習作工坊 - Lesson 1 燈光之夜
Arduino 習作工坊 - Lesson 1 燈光之夜Arduino 習作工坊 - Lesson 1 燈光之夜
Arduino 習作工坊 - Lesson 1 燈光之夜
 
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
 
Remote temperature monitor (DHT11)
Remote temperature monitor (DHT11)Remote temperature monitor (DHT11)
Remote temperature monitor (DHT11)
 
Arduino & NodeMcu
Arduino & NodeMcuArduino & NodeMcu
Arduino & NodeMcu
 
NodeMCU ESP8266 workshop 1
NodeMCU ESP8266 workshop 1NodeMCU ESP8266 workshop 1
NodeMCU ESP8266 workshop 1
 
Introduction to ESP32 Programming [Road to RIoT 2017]
Introduction to ESP32 Programming [Road to RIoT 2017]Introduction to ESP32 Programming [Road to RIoT 2017]
Introduction to ESP32 Programming [Road to RIoT 2017]
 
Arduino Meetup with Sonar and 433Mhz Radios
Arduino Meetup with Sonar and 433Mhz RadiosArduino Meetup with Sonar and 433Mhz Radios
Arduino Meetup with Sonar and 433Mhz Radios
 
FSEC 2014 - I can haz your board with JTAG
FSEC 2014 - I can haz your board with JTAGFSEC 2014 - I can haz your board with JTAG
FSEC 2014 - I can haz your board with JTAG
 
Raspberry Pi - best friend for all your GPIO needs
Raspberry Pi - best friend for all your GPIO needsRaspberry Pi - best friend for all your GPIO needs
Raspberry Pi - best friend for all your GPIO needs
 
IPC2 - Block Diagram
IPC2 - Block DiagramIPC2 - Block Diagram
IPC2 - Block Diagram
 
lwM2M OTA for ESP8266
lwM2M OTA for ESP8266lwM2M OTA for ESP8266
lwM2M OTA for ESP8266
 
NodeMCU with Blynk and Firebase
NodeMCU with Blynk and FirebaseNodeMCU with Blynk and Firebase
NodeMCU with Blynk and Firebase
 
Lab 9 instructions
Lab 9 instructionsLab 9 instructions
Lab 9 instructions
 

En vedette

Rain Drop Sensor using Arduino!
Rain Drop Sensor using Arduino!Rain Drop Sensor using Arduino!
Rain Drop Sensor using Arduino!Sanjay Kumar
 
ROBOTIC SHELF STOCK MONITORING SYSTEM
ROBOTIC SHELF STOCK MONITORING SYSTEMROBOTIC SHELF STOCK MONITORING SYSTEM
ROBOTIC SHELF STOCK MONITORING SYSTEMDnyanesh Deo
 
A versatile wireless sensor device for security alerts and home automation
A versatile wireless sensor device for security alerts and home automationA versatile wireless sensor device for security alerts and home automation
A versatile wireless sensor device for security alerts and home automationHarshitha Tiwari
 
IoTlondon - mbed based IoT Gateway talk
IoTlondon - mbed based IoT Gateway talkIoTlondon - mbed based IoT Gateway talk
IoTlondon - mbed based IoT Gateway talkSomeRandomBloke
 
Meetup9 iot sensors and security
Meetup9 iot sensors and securityMeetup9 iot sensors and security
Meetup9 iot sensors and securityFrancesco Rago
 
Trends of IoT Technology for industrial prototyping and educational markets
Trends of IoT Technology for industrial prototyping and educational marketsTrends of IoT Technology for industrial prototyping and educational markets
Trends of IoT Technology for industrial prototyping and educational marketsWithTheBest
 
Rain Light Sensor
Rain Light SensorRain Light Sensor
Rain Light SensorGvAnu90
 
Wi-Fi For Beginners - Module 1- What is WiFi?
Wi-Fi For Beginners - Module 1- What is WiFi?Wi-Fi For Beginners - Module 1- What is WiFi?
Wi-Fi For Beginners - Module 1- What is WiFi?Nigel Bowden
 
Labview based wireless sensor for monitoring the building
Labview based wireless sensor for monitoring the buildingLabview based wireless sensor for monitoring the building
Labview based wireless sensor for monitoring the buildingSathish Kumar
 
SMS(GSM)BASED HOME AUTOMATION SYSTEM PROJECTS-ECE/EEE/E&I/ICE
SMS(GSM)BASED HOME AUTOMATION SYSTEM PROJECTS-ECE/EEE/E&I/ICESMS(GSM)BASED HOME AUTOMATION SYSTEM PROJECTS-ECE/EEE/E&I/ICE
SMS(GSM)BASED HOME AUTOMATION SYSTEM PROJECTS-ECE/EEE/E&I/ICEASHOKKUMAR RAMAR
 
Smart sensors and their Application
Smart sensors and their ApplicationSmart sensors and their Application
Smart sensors and their ApplicationYash Kant
 

En vedette (20)

Resume 9-7
Resume 9-7Resume 9-7
Resume 9-7
 
Rain Drop Sensor using Arduino!
Rain Drop Sensor using Arduino!Rain Drop Sensor using Arduino!
Rain Drop Sensor using Arduino!
 
ROBOTIC SHELF STOCK MONITORING SYSTEM
ROBOTIC SHELF STOCK MONITORING SYSTEMROBOTIC SHELF STOCK MONITORING SYSTEM
ROBOTIC SHELF STOCK MONITORING SYSTEM
 
FEM Optimization Project
FEM Optimization ProjectFEM Optimization Project
FEM Optimization Project
 
A versatile wireless sensor device for security alerts and home automation
A versatile wireless sensor device for security alerts and home automationA versatile wireless sensor device for security alerts and home automation
A versatile wireless sensor device for security alerts and home automation
 
CoolCATS project: eShoe
CoolCATS project: eShoeCoolCATS project: eShoe
CoolCATS project: eShoe
 
Home automation
Home automationHome automation
Home automation
 
IoTlondon - mbed based IoT Gateway talk
IoTlondon - mbed based IoT Gateway talkIoTlondon - mbed based IoT Gateway talk
IoTlondon - mbed based IoT Gateway talk
 
final_report
final_reportfinal_report
final_report
 
S home
S homeS home
S home
 
Meetup9 iot sensors and security
Meetup9 iot sensors and securityMeetup9 iot sensors and security
Meetup9 iot sensors and security
 
Trends of IoT Technology for industrial prototyping and educational markets
Trends of IoT Technology for industrial prototyping and educational marketsTrends of IoT Technology for industrial prototyping and educational markets
Trends of IoT Technology for industrial prototyping and educational markets
 
Rain Light Sensor
Rain Light SensorRain Light Sensor
Rain Light Sensor
 
Wi-Fi For Beginners - Module 1- What is WiFi?
Wi-Fi For Beginners - Module 1- What is WiFi?Wi-Fi For Beginners - Module 1- What is WiFi?
Wi-Fi For Beginners - Module 1- What is WiFi?
 
Home automation
Home    automationHome    automation
Home automation
 
Labview based wireless sensor for monitoring the building
Labview based wireless sensor for monitoring the buildingLabview based wireless sensor for monitoring the building
Labview based wireless sensor for monitoring the building
 
SMS(GSM)BASED HOME AUTOMATION SYSTEM PROJECTS-ECE/EEE/E&I/ICE
SMS(GSM)BASED HOME AUTOMATION SYSTEM PROJECTS-ECE/EEE/E&I/ICESMS(GSM)BASED HOME AUTOMATION SYSTEM PROJECTS-ECE/EEE/E&I/ICE
SMS(GSM)BASED HOME AUTOMATION SYSTEM PROJECTS-ECE/EEE/E&I/ICE
 
Smart sensors and their Application
Smart sensors and their ApplicationSmart sensors and their Application
Smart sensors and their Application
 
IoT sensor devices
IoT sensor devicesIoT sensor devices
IoT sensor devices
 
Types of sensors
Types of sensorsTypes of sensors
Types of sensors
 

Similaire à Athens IoT Meetup #3 - Introduction to ESP8266 (Pavlos Isaris)

01_DIGITAL IO.pptx
01_DIGITAL IO.pptx01_DIGITAL IO.pptx
01_DIGITAL IO.pptxssuser593a2d
 
FPGA Based IP Core Initialization for Ps2-Vga Peripherals Using Microblaze Pr...
FPGA Based IP Core Initialization for Ps2-Vga Peripherals Using Microblaze Pr...FPGA Based IP Core Initialization for Ps2-Vga Peripherals Using Microblaze Pr...
FPGA Based IP Core Initialization for Ps2-Vga Peripherals Using Microblaze Pr...IJERA Editor
 
Introducing the Arduino
Introducing the ArduinoIntroducing the Arduino
Introducing the ArduinoCharles A B Jr
 
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
 
ESP12.OLED_V1 Datasheet EN - Universal ESP8266 controller board with 0.96″ I2...
ESP12.OLED_V1 Datasheet EN - Universal ESP8266 controller board with 0.96″ I2...ESP12.OLED_V1 Datasheet EN - Universal ESP8266 controller board with 0.96″ I2...
ESP12.OLED_V1 Datasheet EN - Universal ESP8266 controller board with 0.96″ I2...IoTdevices
 
Arduino arduino boardnano
Arduino   arduino boardnanoArduino   arduino boardnano
Arduino arduino boardnanoclickengenharia
 
The arduino uno is a microcontroller board based on the
The arduino uno is a microcontroller board based on theThe arduino uno is a microcontroller board based on the
The arduino uno is a microcontroller board based on thePramod Kumar
 
Electronics Microcontrollers for IoT applications
Electronics Microcontrollers for IoT applicationsElectronics Microcontrollers for IoT applications
Electronics Microcontrollers for IoT applicationsLeopoldo Armesto
 
Intel galileo gen 2
Intel galileo gen 2Intel galileo gen 2
Intel galileo gen 2srknec
 
Overview of ST7 8-bit Microcontrollers
Overview of ST7 8-bit MicrocontrollersOverview of ST7 8-bit Microcontrollers
Overview of ST7 8-bit MicrocontrollersPremier Farnell
 
Education Documantary
Education DocumantaryEducation Documantary
Education Documantarytagataho
 
Android Things Linux Day 2017
Android Things Linux Day 2017 Android Things Linux Day 2017
Android Things Linux Day 2017 Stefano Sanna
 
Syed IoT - module 5
Syed  IoT - module 5Syed  IoT - module 5
Syed IoT - module 5Syed Mustafa
 
Any Surface Drum Kit
Any Surface Drum Kit Any Surface Drum Kit
Any Surface Drum Kit ViVek Patel
 
Arduino arduino boarduno
Arduino   arduino boardunoArduino   arduino boarduno
Arduino arduino boardunoFilipe Campos
 

Similaire à Athens IoT Meetup #3 - Introduction to ESP8266 (Pavlos Isaris) (20)

Chapter 2.doc
Chapter 2.docChapter 2.doc
Chapter 2.doc
 
01_DIGITAL IO.pptx
01_DIGITAL IO.pptx01_DIGITAL IO.pptx
01_DIGITAL IO.pptx
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
FPGA Based IP Core Initialization for Ps2-Vga Peripherals Using Microblaze Pr...
FPGA Based IP Core Initialization for Ps2-Vga Peripherals Using Microblaze Pr...FPGA Based IP Core Initialization for Ps2-Vga Peripherals Using Microblaze Pr...
FPGA Based IP Core Initialization for Ps2-Vga Peripherals Using Microblaze Pr...
 
Introducing the Arduino
Introducing the ArduinoIntroducing the Arduino
Introducing the Arduino
 
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)
 
How to use an Arduino
How to use an ArduinoHow to use an Arduino
How to use an Arduino
 
ESP12.OLED_V1 Datasheet EN - Universal ESP8266 controller board with 0.96″ I2...
ESP12.OLED_V1 Datasheet EN - Universal ESP8266 controller board with 0.96″ I2...ESP12.OLED_V1 Datasheet EN - Universal ESP8266 controller board with 0.96″ I2...
ESP12.OLED_V1 Datasheet EN - Universal ESP8266 controller board with 0.96″ I2...
 
Arduino arduino boardnano
Arduino   arduino boardnanoArduino   arduino boardnano
Arduino arduino boardnano
 
The arduino uno is a microcontroller board based on the
The arduino uno is a microcontroller board based on theThe arduino uno is a microcontroller board based on the
The arduino uno is a microcontroller board based on the
 
aA000047
aA000047aA000047
aA000047
 
Electronics Microcontrollers for IoT applications
Electronics Microcontrollers for IoT applicationsElectronics Microcontrollers for IoT applications
Electronics Microcontrollers for IoT applications
 
Intel galileo gen 2
Intel galileo gen 2Intel galileo gen 2
Intel galileo gen 2
 
Arduino uno
Arduino unoArduino uno
Arduino uno
 
Overview of ST7 8-bit Microcontrollers
Overview of ST7 8-bit MicrocontrollersOverview of ST7 8-bit Microcontrollers
Overview of ST7 8-bit Microcontrollers
 
Education Documantary
Education DocumantaryEducation Documantary
Education Documantary
 
Android Things Linux Day 2017
Android Things Linux Day 2017 Android Things Linux Day 2017
Android Things Linux Day 2017
 
Syed IoT - module 5
Syed  IoT - module 5Syed  IoT - module 5
Syed IoT - module 5
 
Any Surface Drum Kit
Any Surface Drum Kit Any Surface Drum Kit
Any Surface Drum Kit
 
Arduino arduino boarduno
Arduino   arduino boardunoArduino   arduino boarduno
Arduino arduino boarduno
 

Dernier

Low Cost Patna Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Gi...
Low Cost Patna Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Gi...Low Cost Patna Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Gi...
Low Cost Patna Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Gi...vershagrag
 
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammam
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in DammamAbortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammam
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammamahmedjiabur940
 
Hilti's Latest Battery - Hire Depot.pptx
Hilti's Latest Battery - Hire Depot.pptxHilti's Latest Battery - Hire Depot.pptx
Hilti's Latest Battery - Hire Depot.pptxhiredepot6
 
怎样办理伍伦贡大学毕业证(UOW毕业证书)成绩单留信认证
怎样办理伍伦贡大学毕业证(UOW毕业证书)成绩单留信认证怎样办理伍伦贡大学毕业证(UOW毕业证书)成绩单留信认证
怎样办理伍伦贡大学毕业证(UOW毕业证书)成绩单留信认证ehyxf
 
CRISIS COMMUNICATION presentation=-Rishabh(11195)-group ppt (4).pptx
CRISIS COMMUNICATION presentation=-Rishabh(11195)-group ppt (4).pptxCRISIS COMMUNICATION presentation=-Rishabh(11195)-group ppt (4).pptx
CRISIS COMMUNICATION presentation=-Rishabh(11195)-group ppt (4).pptxRishabh332761
 
怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证tufbav
 
一比一定(购)国立南方理工学院毕业证(Southern毕业证)成绩单学位证
一比一定(购)国立南方理工学院毕业证(Southern毕业证)成绩单学位证一比一定(购)国立南方理工学院毕业证(Southern毕业证)成绩单学位证
一比一定(购)国立南方理工学院毕业证(Southern毕业证)成绩单学位证wpkuukw
 
怎样办理昆士兰大学毕业证(UQ毕业证书)成绩单留信认证
怎样办理昆士兰大学毕业证(UQ毕业证书)成绩单留信认证怎样办理昆士兰大学毕业证(UQ毕业证书)成绩单留信认证
怎样办理昆士兰大学毕业证(UQ毕业证书)成绩单留信认证ehyxf
 
在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一
在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一
在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一uodye
 
怎样办理阿德莱德大学毕业证(Adelaide毕业证书)成绩单留信认证
怎样办理阿德莱德大学毕业证(Adelaide毕业证书)成绩单留信认证怎样办理阿德莱德大学毕业证(Adelaide毕业证书)成绩单留信认证
怎样办理阿德莱德大学毕业证(Adelaide毕业证书)成绩单留信认证ehyxf
 
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...drmarathore
 
Top profile Call Girls In Ratlam [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Ratlam [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Ratlam [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Ratlam [ 7014168258 ] Call Me For Genuine Models We...nirzagarg
 
一比一原版(USYD毕业证书)澳洲悉尼大学毕业证如何办理
一比一原版(USYD毕业证书)澳洲悉尼大学毕业证如何办理一比一原版(USYD毕业证书)澳洲悉尼大学毕业证如何办理
一比一原版(USYD毕业证书)澳洲悉尼大学毕业证如何办理uodye
 
Top profile Call Girls In Udgir [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Udgir [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Udgir [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Udgir [ 7014168258 ] Call Me For Genuine Models We ...gajnagarg
 
Point of Care Testing in clinical laboratory
Point of Care Testing in clinical laboratoryPoint of Care Testing in clinical laboratory
Point of Care Testing in clinical laboratoryoyebolasonuga14
 
🌹Patia⬅️ Vip Call Girls Bhubaneswar 📱9777949614 Book Well Trand Call Girls In...
🌹Patia⬅️ Vip Call Girls Bhubaneswar 📱9777949614 Book Well Trand Call Girls In...🌹Patia⬅️ Vip Call Girls Bhubaneswar 📱9777949614 Book Well Trand Call Girls In...
🌹Patia⬅️ Vip Call Girls Bhubaneswar 📱9777949614 Book Well Trand Call Girls In...Call Girls Mumbai
 
一比一定(购)新西兰林肯大学毕业证(Lincoln毕业证)成绩单学位证
一比一定(购)新西兰林肯大学毕业证(Lincoln毕业证)成绩单学位证一比一定(购)新西兰林肯大学毕业证(Lincoln毕业证)成绩单学位证
一比一定(购)新西兰林肯大学毕业证(Lincoln毕业证)成绩单学位证wpkuukw
 
Mass storage systems presentation operating systems
Mass storage systems presentation operating systemsMass storage systems presentation operating systems
Mass storage systems presentation operating systemsnight1ng4ale
 

Dernier (20)

Low Cost Patna Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Gi...
Low Cost Patna Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Gi...Low Cost Patna Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Gi...
Low Cost Patna Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top Class Call Gi...
 
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammam
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in DammamAbortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammam
Abortion Pill for sale in Riyadh ((+918761049707) Get Cytotec in Dammam
 
Hilti's Latest Battery - Hire Depot.pptx
Hilti's Latest Battery - Hire Depot.pptxHilti's Latest Battery - Hire Depot.pptx
Hilti's Latest Battery - Hire Depot.pptx
 
怎样办理伍伦贡大学毕业证(UOW毕业证书)成绩单留信认证
怎样办理伍伦贡大学毕业证(UOW毕业证书)成绩单留信认证怎样办理伍伦贡大学毕业证(UOW毕业证书)成绩单留信认证
怎样办理伍伦贡大学毕业证(UOW毕业证书)成绩单留信认证
 
CRISIS COMMUNICATION presentation=-Rishabh(11195)-group ppt (4).pptx
CRISIS COMMUNICATION presentation=-Rishabh(11195)-group ppt (4).pptxCRISIS COMMUNICATION presentation=-Rishabh(11195)-group ppt (4).pptx
CRISIS COMMUNICATION presentation=-Rishabh(11195)-group ppt (4).pptx
 
Abortion pills in Dammam +966572737505 Buy Cytotec
Abortion pills in Dammam +966572737505 Buy CytotecAbortion pills in Dammam +966572737505 Buy Cytotec
Abortion pills in Dammam +966572737505 Buy Cytotec
 
怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
怎样办理斯威本科技大学毕业证(SUT毕业证书)成绩单留信认证
 
一比一定(购)国立南方理工学院毕业证(Southern毕业证)成绩单学位证
一比一定(购)国立南方理工学院毕业证(Southern毕业证)成绩单学位证一比一定(购)国立南方理工学院毕业证(Southern毕业证)成绩单学位证
一比一定(购)国立南方理工学院毕业证(Southern毕业证)成绩单学位证
 
怎样办理昆士兰大学毕业证(UQ毕业证书)成绩单留信认证
怎样办理昆士兰大学毕业证(UQ毕业证书)成绩单留信认证怎样办理昆士兰大学毕业证(UQ毕业证书)成绩单留信认证
怎样办理昆士兰大学毕业证(UQ毕业证书)成绩单留信认证
 
在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一
在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一
在线制作(UQ毕业证书)昆士兰大学毕业证成绩单原版一比一
 
怎样办理阿德莱德大学毕业证(Adelaide毕业证书)成绩单留信认证
怎样办理阿德莱德大学毕业证(Adelaide毕业证书)成绩单留信认证怎样办理阿德莱德大学毕业证(Adelaide毕业证书)成绩单留信认证
怎样办理阿德莱德大学毕业证(Adelaide毕业证书)成绩单留信认证
 
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
Abort pregnancy in research centre+966_505195917 abortion pills in Kuwait cyt...
 
Top profile Call Girls In Ratlam [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Ratlam [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Ratlam [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Ratlam [ 7014168258 ] Call Me For Genuine Models We...
 
一比一原版(USYD毕业证书)澳洲悉尼大学毕业证如何办理
一比一原版(USYD毕业证书)澳洲悉尼大学毕业证如何办理一比一原版(USYD毕业证书)澳洲悉尼大学毕业证如何办理
一比一原版(USYD毕业证书)澳洲悉尼大学毕业证如何办理
 
Top profile Call Girls In Udgir [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Udgir [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Udgir [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Udgir [ 7014168258 ] Call Me For Genuine Models We ...
 
Point of Care Testing in clinical laboratory
Point of Care Testing in clinical laboratoryPoint of Care Testing in clinical laboratory
Point of Care Testing in clinical laboratory
 
Buy Abortion pills in Riyadh |+966572737505 | Get Cytotec
Buy Abortion pills in Riyadh |+966572737505 | Get CytotecBuy Abortion pills in Riyadh |+966572737505 | Get Cytotec
Buy Abortion pills in Riyadh |+966572737505 | Get Cytotec
 
🌹Patia⬅️ Vip Call Girls Bhubaneswar 📱9777949614 Book Well Trand Call Girls In...
🌹Patia⬅️ Vip Call Girls Bhubaneswar 📱9777949614 Book Well Trand Call Girls In...🌹Patia⬅️ Vip Call Girls Bhubaneswar 📱9777949614 Book Well Trand Call Girls In...
🌹Patia⬅️ Vip Call Girls Bhubaneswar 📱9777949614 Book Well Trand Call Girls In...
 
一比一定(购)新西兰林肯大学毕业证(Lincoln毕业证)成绩单学位证
一比一定(购)新西兰林肯大学毕业证(Lincoln毕业证)成绩单学位证一比一定(购)新西兰林肯大学毕业证(Lincoln毕业证)成绩单学位证
一比一定(购)新西兰林肯大学毕业证(Lincoln毕业证)成绩单学位证
 
Mass storage systems presentation operating systems
Mass storage systems presentation operating systemsMass storage systems presentation operating systems
Mass storage systems presentation operating systems
 

Athens IoT Meetup #3 - Introduction to ESP8266 (Pavlos Isaris)

  • 1. ESP8266 “Designed for the needs of an increasingly connected world” Pavlos Isaris
  • 2. Introduction The ESP8266 WiFi Module is a self contained SOC (system on a chip) with integrated TCP/IP protocol stack that can give any microcontroller access to a WiFi network.
  • 3. Features ● Very low cost ( 3-5$ ) ● Pre-programmed with an AT command set firmware ● Growing community ● Enough on-board processing power to deal with sensors through GPIO ● Operating at 3.3V ● Can draw up to 170 mA of current ● Not breadboard-friendly :-(
  • 5.
  • 6. Why do we need a Voltage regulator? The ESP8266 may require more than the 35mA supplied by the Arduino 3.3V pin
  • 7. Baud rate problem The ESP-8266 comes in various firmware versions, varying also in the operating baud rate (older operate at 115200 bauds). My ESP8266 operates in 115200 bauds/second. This means that we can only use hardware serial to communicate with it (Arduino Software serial pins handle only 9600 bauds/second) In such occasion, it is possible to use an Arduino MEGA (4x Hardware serial couple-pins)
  • 8. Alternative - Update firmware version You can also use an FTDI adapter (like the FT232rl) or FTDI cable, to communicate via USB with ESP8266 There are plenty of tutorials about how to update the firmware version After you have updated the firmware version you can change the baud rate
  • 10. Module GPIO Notes ESP-01 GPIO0/2/16 Most common module. ESP-02 GPIO0/2/15 ESP-03 GPIO0/2/12/13/14/15/16 Most popular in esp8266. com poll ESP-04 GPIO0/2/12/13/14/15/16 ESP-05 None ESP-06 GPIO0/2/12/13/14/15/16 ESP-07 GPIO0/2/4/5/12/13/14/15/16 ESP-08 GPIO0/2/12/13/14/15/16 ESP-09 GPIO0/2/12/13/14/15 1MB Flash memory ESP-10 None ESP-11 GPIO0/1
  • 11. Using Arduino IDE Serial Monitor #include <SoftwareSerial.h> SoftwareSerial ESPserial(2, 3); // RX | TX void setup() { Serial.begin(115200); // communication with the host computer ESPserial.begin(115200); Serial.println(""); Serial.println("Remember to to set Both NL & CR in the serial monitor."); Serial.println("Ready"); Serial.println(""); }
  • 12. Using Arduino IDE Serial Monitor void loop() { // listen for communication from the ESP8266 and then write it to the serial monitor if ( ESPserial.available() ) { Serial.write( ESPserial.read() ); } // listen for user input and send it to the ESP8266 if ( Serial.available()) { ESPserial.write( Serial.read() ); } }
  • 14. Checking for available WiFi networks
  • 17. Send a request Allow multiple connections Start connection Specify bytes to be sent In this case it is “GET / HTTP/1.0rnrn”
  • 19. Acting as TCP Server
  • 20. Acting as a Wifi Access point
  • 21. ESP8266 core-library #include <Adafruit_ESP8266.h> #include <SoftwareSerial.h> #define ARD_RX_ESP_TX 2 #define ARD_TX_ESP_RX 3 #define ESP_RST 4 SoftwareSerial softser(ARD_RX_ESP_TX, ARD_TX_ESP_RX); Adafruit_ESP8266 wifi(&softser, &Serial, ESP_RST); #define ESP_SSID "SSIDNAME" // Your network name here #define ESP_PASS "PASSWORD" // Your network password here #define HOST "www.adafruit.com" // Host to contact #define PAGE "/testwifi/index.html" // Web page to request #define PORT 80 // 80 = HTTP default port
  • 22. ESP8266 core-library softser.begin(9600); // Soft serial connection to ESP8266 Serial.begin(57600); while(!Serial); // UART serial debug wifi.connectToAP(F(ESP_SSID), F(ESP_PASS)) Serial.print(F("OKnRequesting page...")); if(wifi.requestURL(F(PAGE))) { Serial.println("OKnSearching for string..."); if(wifi.find(F("working"), true)) { Serial.println(F("found!")); } else { Serial.println(F("not found.")); } } else { // URL request failed Serial.println(F("error")); } wifi.closeTCP();
  • 23. Espert - Development board http://www.espert.co/ (v2.0 To be released by April 2016.)