ESP8266 pong clock
Posted:
Tue Apr 28, 2015 2:18 pm
by kubi
Hi,
this is a tiny little pong clock based on nodeMCU. It consists of a small 128x64 I2C OLED and an ESP8266-01. It gets the time from an ntp server at startup.
Look here how it works:
http://youtu.be/Su3f5w3nEbgThe source code and some more infos can be found here:
https://github.com/kubi57/ESP8266/tree/ ... pong-clockHave fun
kubi
image.jpg
Re: ESP8266 pong clock
Posted:
Wed Apr 29, 2015 7:35 pm
by miker
Awesome project! I have my oled display working fine on the ESP-01 with the Arduino IDE but i'm not familiar with the ESPlorer tool. I've had success with a single file blinking an led but I have no idea how to get your Pong-Clock project with multiple files into the ESP. Attached is a screenshot of what I have now. Do I open up each file so there are multiple tabs, then click the Save&Compile All button and then the Save to ESP button? Right now my screen is blank.
My oled is definitely wired to an address of 0x3C.
Mike
Re: ESP8266 pong clock
Posted:
Thu Apr 30, 2015 6:44 am
by kubi
Hi miker,
apparently I still have an older version of ESPlorer without a save&compile button. So I open all files in seperate tabs, save them to ESP and then I compiled them manually by entering the command node.compile("filename.lua") for all files except ntp.lua. You then should have many .lc files.
I'll install the newer version, that you have. Then I can confirm again how that works.
Re: ESP8266 pong clock
Posted:
Thu Apr 30, 2015 9:35 am
by kubi
So, I now installed ESPlorer v0.2.0. The [Save&Compile All] button doesn't work at all.
I did the following step by step:
- [Format] button
- open every .lua file, which creates a separate tab for each file
- edit ntp.lua and set your SSID, password and timezone
- select every file (tab) and press button [Save to ESP] (ignore error messages like 'not enough memory')
- select every file except ntp.lua and press button [Save&Compile]
- check your saved files, in the Command tab press [List files], you should have a .lc file for each .lua file except for ntp.lua
- select the ntp.lua tab and press [Run], the pong clock should start after 2-3 seconds
- if everything works properly, rename ntp.lua to init.lua by entering file.rename("ntp.lua","init.lua") in the command field, press [Send]
I hope I didn't miss anything. Please let me know if it works for you.