Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ESP8266 Basics

ESP8266 Basics

Lab #2 - ESP8266 Basics
ET-3010 Connected Services and Cloud Computing
http://eueung.github.io/ET3010/esp8266

Eueung Mulyana

March 01, 2016
Tweet

More Decks by Eueung Mulyana

Other Decks in Technology

Transcript

  1. Previously ... 13 12 11 10 9 8 7 6

    5 4 3 2 L 5V A0 ANALOG IN AREF 1 GND TX RX RESET 3V3 A1 A2 A3 A4 A5 VIN GND GND DIGITAL (PWM= ) Arduino TM IOREF ICSP ICSP2 ON POWER 0 1 TX0 RX0 RESET 13 12 11 ETH 9 8 7 6 5 SDCS 3 2 0 1 TX RX AREF GND 5V A0 ANALOG IN TX RX RESET 3V3 A1 A2 A3 A4 A5 VIN GND GND DIGITAL (PWM SPI ) SCL SDA < IOREF ICSP CS < < To Get Network Access: UNO + Ethernet Shield 4 / 44
  2. Sometimes... network wires & switch ports are not available ..

    In some conditions, they are not an option at all! 5 / 44
  3. 8 / 44 Arduino and WiFi Official Arduino WiFi Shield

    EUR 69 + VAT Sparkfun CC3000 Shield USD 40 Adafruit CC3000 Module USD 35
  4. ESP8266 Developed by Espressif System Low Cost Part Number is

    ESP8266EX 20+ M Chip Sold 5000 Active Developers 3.3V - 215mA (measurement: peak ~430 mA) CPU: 32-bit, 80MHz (or 160 MHz), Tensilica Xtensa Core Wi-Fi 802.11b/g/n (Station or AP), WEP/WPA/WPA2 Timers, Deep Sleep Mode I/CRAM 32-64KB, DRAM 80-96KB External QPI Flash (200KB SDK, prev. 512 KB / 4Mbit, new min. 1 MB/8Mbit) GPIO (2-16) SPI, I2C, I2S, UART 10-Bit ADC 9 / 44
  5. 15 / 44 Actually More ... Dev Boards Adafruit Huzzah

    Sparkfun MOD-WIFI- ESP8266-DEV NodeMCU v1 Around USD 10 or less
  6. 19 / 44 ESP-01 2x4 DIL Header Integrated Antenna Integrated

    LED (VCC, TXD) 1MB/8Mbit Flash (2015, Black) Operating VCC: 3.3V (av. active 200mA, peak see prev.) IO & UART are not 5V Tolerant CH_PD must be Pulled High
  7. 31 / 44 Blynk is a Platform with iOS and

    Android apps to control Arduino, Raspberry Pi and the likes over the Internet. It's a digital dashboard where you can build a graphic interface for your project by simply dragging and dropping widgets. Blynk is not tied to some specific board or shield. Instead, it's supporting hardware of your choice. Whether your Arduino or Raspberry Pi is linked to the Internet over Wi- Fi, Ethernet or this new ESP8266 chip, Blynk will get you online and ready for the Internet Of Your Things.
  8. 36 / 44 Switch TX - RX Wire Remove RST

    - GND Wire LED on Pin 13 (Better with Current Limiting Resistor)
  9. Write Some Codes Then Upload Don't forget to temporarily release

    the RX pin! # d e f i n e B L Y N K _ P R I N T S e r i a l # i n c l u d e < E S P 8 2 6 6 _ H a r d S e r . h > # i n c l u d e < B l y n k S i m p l e S h i e l d E s p 8 2 6 6 _ H a r d S e r . h > # d e f i n e E s p S e r i a l S e r i a l E S P 8 2 6 6 w i f i ( E s p S e r i a l ) ; c h a r a u t h [ ] = " 7 0 1 f 5 e 2 2 6 3 4 9 4 7 8 3 b b 7 e e 9 a 3 6 f c 1 2 3 4 5 " ; v o i d s e t u p ( ) { S e r i a l . b e g i n ( 1 1 5 2 0 0 ) ; d e l a y ( 1 0 ) ; E s p S e r i a l . b e g i n ( 1 1 5 2 0 0 ) ; d e l a y ( 1 0 ) ; B l y n k . b e g i n ( a u t h , w i f i , " l k 8 f m " , " 0 1 2 3 4 5 6 7 8 9 " ) ; } v o i d l o o p ( ) { B l y n k . r u n ( ) ; } 39 / 44
  10. Refs 1. Zhu Baoshi - Build WiFi Gadgets Using ESP8266,

    GeekCamp.SG 2015 2. Tom Tobback, Cassiopeia - ESP8266+Arduino, ESP8266+Arduino workshop 2015 3. Burak Aydin - Hack The ESP8266 4. Pighixxx - Boards - Pinout 5. Tuanpmt/Espduino - ESP8266 Network Client for Arduino 6. Internet of Home Things - 4 Ways to Eliminate ESP8266 Resets 7. Update the Firmware in Your ESP8266 Wi-Fi Module 8. ESP8266 Support WIKI - Getting-Started-with-the-ESP8266 9. sleemanj/ESP8266_Simple - A simple Arduino library to perform HTTP operations on the ESP8266 Wifi Device 10. DIY ESP8266 ESP-01 Programing / Test board 11. Blynk 43 / 44