-
1Step 1
Install the ESP8266 add-on into your Arduino IDE.
-
2Step 2
How to upload a sketch to the ESP:
Connect:
pin1 - to ground
pin 2 UartTXD - to RX of USB/Serialadapter
pin 3 GPIO2 - SCL of I2C
pin 4 Chip-Enable - to Vcc = 3.3Volt
pin 5 GPIO0 - SDA of I2C (connect to groung for programming)
pin 6 Ext. Reset - with resistor of 10kohm to 3.3V. (ground pin-6 for a short moment to reset ESP)
pin 7 - UartRXD - to TX of USB/Serial adapter.
pin 8 - to Vcc = 3.3Volt
Connect TX & RX of ESP to RX & TX of the USB-Serial adapter. (cross-connected)
Connect pin 5 (GPIO0) to ground and power-up or reset the ESP so it comes in upload-mode.
In IDE tools select 'Generic ESP8266 Module' as board.
set uploadspeed to 115200.
choose the active USB port.
leave the other settings as they are.
Now it is possible to upload the sketch with the Arduino-IDE into the ESP8266.The sketch is on github: https://github.com/costonisp/ESP8266-I2C-OLED
-
3Step 3
Ofcourse you have to specify your own WiFi SSID and Password in the sketch before you upload it.
On startup you will see the SSID and the local-IP of the ESP which can be used to send messages. Open a browser and type this local-IP, a simple webpage opens where you can submit a message of up to 128 characters.
Connect the Oled SCL to GPIO2, Oled SDA to GPIO0.Be sure you have a original I2C Oled with a SSD1306 controller. Other controllers may not work.
Up from version 1.0 it works also for OLED's with SH1106 controllers.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.
Thanks for the code and instructions. works great!
Are you sure? yes | no
It was somewhere hidden in the text that the code is on github , I made it more obvious where to find the code..
look here for the code:
https://github.com/costonisp/ESP8266-I2C-OLED
Are you sure? yes | no
No code?
Are you sure? yes | no