Difference between revisions of "SpaceState ESP"
From
Line 8: | Line 8: | ||
I wanted to see if the TkkrLab hackerspace is open on my clock. For this I used an nodeMCU with a RGB led to request the spaceapi every 10 mins and display open (green) or losed (red) status. | I wanted to see if the TkkrLab hackerspace is open on my clock. For this I used an nodeMCU with a RGB led to request the spaceapi every 10 mins and display open (green) or losed (red) status. | ||
+ | |||
+ | <gallery> | ||
+ | File:Nodemcu spacestate led in clock.JPG | ||
+ | File:Nodemcu spacestate connections.JPG | ||
+ | File:Nodemcu spacestate LED connections.JPG | ||
+ | File:Nodemcu spacestate breadboard.JPG | ||
+ | </gallery> | ||
+ | |||
=Resources= | =Resources= |
Revision as of 00:18, 9 April 2017
I wanted to see if the TkkrLab hackerspace is open on my clock. For this I used an nodeMCU with a RGB led to request the spaceapi every 10 mins and display open (green) or losed (red) status.
Contents
Resources
Parts List
- Clock
- nodeMCU v2
- 10 mm RGB LED
- 1x 1K resistor
Software
- source code for nodeMCU : https://github.com/zeno4ever/spacestatus_ESP
- Library for json processing https://bblanchon.github.io/ArduinoJson/
Steps
I used male breadboard connectors to connect everything to the nodeMCU, you can solder the RGB led directly on the wire (with one resistor on the anode (+))
The clock I have has a 6v that is connected to the Vin and GND of the nodeMCU
There are a few different types of nodemcu, check out this article for more information about these