-
1Step 1
Install requirement
Install Arduino IDE and install esp8266 additional board manager as explained here.
-
2Step 2
Flash code
Following the minimal hardware setup for bootloading explaining here and using a 3.3V USB To Serial adapter, you should be able to flash the following code to your esp8266 : https://github.com/paulgreg/internet-smart-plug
Please note that USB serial adapater ground need to be connected to ESP8266’s power adapter ground.
You’ll need to copy/paste parameters.h.dist to parameters.h and change your configuration information.
Beware, esp8266 don’t support 5V so be sure to use a power supply and an USB serial adapter which operates at 3.3V !
Doing otherwise will simply destroy your module. -
3Step 3
Run the code
To test your code, you’ll need to
- disconnect the RST / reset pin
- connect GPIO0 to pullup (instead of GND) as explained here,
- connect GPIO16 (or XPD) to RST pin to allow deepsleep as explained here.
Opening the serial monitor from arduino, you should be able to view some messages from esp8266.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.