ESP8266 Dan ESP32
ESP8266 Dan ESP32
Outline
❏ ESP8266 :
❏ Pengenalan ESP8266
❏ Bentuk
❏ Perbandingan chip, modul, dan board
❏ NodeMCU
❏ ESP32 :
❏ Perbandingan ESP8266 & ESP32
❏ ESP32 boards
❏ Pengembangan aplikasi & Projects link
Perbandingan board mikrokontroler
ESP8266
Pengenalan ESP8266
❏ ESP8266 merupakan System-on a Chip (SoC) yang memiliki
mikrokontroler dan adapter WiFi (WiFi MCU)
❏ ESP32 merupakan penerus ESP8266 dengan spesifikasi yang
lebih tinggi
❏ Pembuat : Espressif System (Shanghai, China)
❏ Banyak digunakan untuk aplikasi IoT
Blok diagram SoC ESP8266
Specs chip ESP8266
Specs chip ESP8266
Specs chip ESP8266
Pinout QFN (Quad flat no leads) 32 pin
Penggunaan
Bentuk
❏ Chip
❏ ESP8266EX, ESP8285
❏ Modules
❏ ESP-01, ESP-02, …, ESP-14, ESP-WROOM-02, ...
❏ Boards
❏ NodeMCU, WeMos D1, Wemos D1 mini, ….
Chip
ESP8266 Thing
WeMos D1
NodeMCU
ESP-201
https://lastminuteengineers.com/esp32-pinout-reference/
a. GPIO (Digital Input atau Digital Output) -> 15 pins : 4, 13, 14, 16, 17, 18, 19, 21, 22, 23, 25, 26, 27, 32, 33
w/ internal pull up resistor -> 8 pins : 14, 16, 17, 18, 19, 21, 22, 23
w/o internal pull up resistor -> 6 pins : 13, 25, 26, 27, 32, 33
b. GPIO (Input Only) -> 4 pins : 34, 35, 36, 39
c. ADC 12 bit (Analog Input) -> 15 pins : 2, 4, 12, 13, 14, 15, 25, 26, 27, 32, 33, 34, 35, 36, 39
d. DAC 8 bit (Real Analog Output) -> 2 pins : 25, 26
e. PWM (Pulse Analog Output) : 15 pins : 4, 13, 14, 16, 17, 18, 19, 21, 22, 23, 25, 26, 27, 32, 33 (same as ‘a’)
f. Touch pins -> 9 pins : 2, 4, 12, 13, 14, 15, 27, 32, 33
g. SPI : MOSI (23), MISO (19), SCK (18), CS (5)
h. UART : Rx0 (3), Tx0 (1), Rx1 (16), Tx1 (17)
i. I2C : SDA (21), SCK (22)
Pinout ESP32 DEVKIT V1 (30 pin)
Pinout ESP32 DEVKIT V1 (36 pin)
Pinout ESP32 DEVKIT V1 (38 pin)
Install ESP32 add on di Arduino IDE
Install ESP32 add on di Arduino IDE
Link add on (json) ESP8266 dan ESP32
http://arduino.esp8266.com/stable/package_esp8266com_index.json
https://dl.espressif.com/dl/package_esp32_index.json
atau
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
Tes hasil install
Tes hasil install dengan WiFiScan.ino
Tes hasil install
Blinking LED
Simple web server : bandingkan dan pelajari programnya
https://lastminuteengineers.com/creating-esp8266-web-server-arduino-ide/ https://lastminuteengineers.com/creating-esp32-web-server-arduino-ide/
Project links
https://randomnerdtutorials.com/projects-esp8266/
https://randomnerdtutorials.com/projects-esp32/
https://www.hackster.io/search?i=projects&q=esp8266
https://www.hackster.io/search?q=esp32&i=projects