EtherNode

Aus LaborWiki
Version vom 28. Mai 2017, 14:26 Uhr von Bilex (Diskussion | Beiträge) (→‎Helpful Links)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu: Navigation, Suche
     
EtherNode

Release status: stable [box doku]

Ethernode.jpg
Description WiFi connected device that shows the price of 1 Ethereum in USD
Author(s)  A.B. (Bilex)
Platform  $$$



Information[Bearbeiten | Quelltext bearbeiten]

This tiny device shows the actual Ethereum price in USD. A ESP8266 (nodeMCU 1.0) is programmed in Arduino and displays the price on a HDLR-2416 display. A Python script is used to get the current Ethereum price by using the coinmarketcap library. Via UDP the price-data is sent to the nodeMCU. After receiving new data, the ESP8266 goes into sleep mode to save power.

Electronics[Bearbeiten | Quelltext bearbeiten]

The connection between the display and the ESP8266 is straight forward and uses GPIO pins only. Check the Arduino file for more information.

FAQ[Bearbeiten | Quelltext bearbeiten]

Why do I need the Python script?

For sure it is somehow possible to make the nodeMCU get coin prices from the internet itself. But the coinMarketCap library was the easiest why for me to do it. And a tiny python script won't hurt.

Do I need a Raspberry Pi?

No. If you have a openWRT Router with USB you can install Python on an external USB drive and make the script run directly on your router.

I prefer Bitoin..

No problem, check CoinMarketCap library how to get informations about other coins.

What is the power consumption?

~60mA with three digits light up and nodeMCU in sleepmode. About 140mA when not sleeping.

Nice Display. But where to get it?

I don't know. Found it in a mixed bag of parts. Have a look on eBay.

CODE[Bearbeiten | Quelltext bearbeiten]

Python & Arduino Code:

Download

Helpful Links[Bearbeiten | Quelltext bearbeiten]

CoinMarketCap libary for Python. Don't forget to install.