Referred to as "wrapper".
This wrapper brings together multiple libraries to smoothly develop firmware for an ESP8266 WiFi module with Arduino.
You will need access to the following to use this wrapper.
- Arduino IDE
- Arduino
- ESP8266 WiFi Module
Tested on Arduino Uno and SparkFun ESP8266 Breakout using Arduino IDE 1.8.12.
The following table describe the necessary pin layout to flash and run firmware on the WiFi module.
WiFi Module | Arduino | Reset Pushbutton | Flash Pushbutton |
---|---|---|---|
3v3, EN | 3.3 V | ||
RST | Pin 1 | ||
TX | TX | ||
RX | RX | ||
IO1 | Pin 1 | ||
IO2 | Digital Output | ||
GND | GND | Pin 2 | Pin 2 |
Before compiling and uploading, you must change your board to Generic ESP8266 Module
to properly flash the WiFi module.
To do this,
- Download this repository to your preferred directory (e.g.
Desktop
) - In
Arduino IDE
>Preferences
, changeSketchbook Location
topath-to-repository/Arduino
(e.g.~/Desktop/Arduino-ESP8266-Firebase-Wrapper/Arduino
) and clickOK
to apply changes - In
Tools
>Board:
, you should findGeneric ESP8266 Module
- Setup hardware and software as detailed above
- Compile code
- Attempt to upload code
- When you see
Connecting...
printing, press the reset and flash pushbuttons at the same time - Release the reset pushbutton
- When you see upload percentages printing, release the flash pushbutton