Skip to content

donovanmagryta/ESP8266-LED-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IoT Whiteboard

ESP8266 based LED strip display of Yes/No API data.

Example API queries: Will it rain today? Have I reached my Kickstarter goals? Snow day? Good windspeed to fly drone?

Change settings easily & remotely - by using web app.

Manage multiple devices

Optimized circuit efficiency by using 60 pure red, green, or blue WS2812B LEDs.

Cheap - core parts cost < $10 US Dollars

Tutorial:

1. Get Parts:

2. Install the Web App

Sign up for a free PHP web hosting service such as https://www.000webhost.com/

Create a new site there.

and load the led.php file onto there in the file manager area.

Modify the url in the led.php to match the url of your website.

3. Install the Drivers & Software

Unzip the files.

Install the CH340 drivers.

4. Install Firmware

Open up UPyCraft and select board-->esp8266, select active USB port, and click burn firmware. Set flash erase-->on, custom firmware-->select your micropython.bin file you downloaded earlier and hit "flash".

5. Install the Scripts

In a text editor or in UPyCraft, open up connectWiFi.py and input your WiFi hotspot credentials and in main.py enter your web hosting URL for led.php and hit save. Download these files to the board's filesystem.

6. Solder up your device

Strip wire tips

Then tin with solder then fuse together.

D1 Mini ESP8266 5V---5V 2A Power---LED VCC

D1 Mini ESP8266 GND---Ground 2A Power---LED Ground

D1 Mini ESP8266 GPIO4(D2)---LED Strip Data In

Green wire = data, Red wire = +5V, White wire = Ground

Wrap individual connections in electrical tape to insulate and prevent a short circuit.

Most Addressable LED strips have two additional power wires for convenience

7. Train the Device

Edit the settings at your web hosting URL where led.php is located to program the device. JSON is a nested data structure. To access the information you want, you need to enter the correct indices. As a way to understand better, here is a representation of the weather api data "consolidated_weather"-->1-->"weather_state_abbr". The TV API: 0-->"show"-->"status". Notice how curly brackets start and terminate each section.

Further Resources

Here is a list of public APIs that you may be able to pull data from using this system:

https://github.com/toddmotto/public-apis

About

Programmable LED Display of API Data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published