A thermostat appliance only needs to send a few bits/bytes of information to get its point across. It can also be used to send sensor information. In this case, a temperature sensor!
Lets call it CRYPT0MANIA – the connected crystal.
This post is about the crystals digital details – because it works – it really works!
Meet our new friend, WeMos D1, aka WeMo, aka WeBro
WeMos is going to use its wifi chip to gather information from the web, and eventually – hopefully – interpret that information and do something about it; namely lighting up some LEDs!
Friday night! The perfect time for expanding on the API-to-LED work from last week. The improvement now offers a more diverse set of information and utilizes duplex serial communication.
The result is that now we can now use a toggle-switch to see the 1-hour price change of either Bitcoin or Ethereum in the form of LED lights. The position of the attached toggle switch determines which currency is being shown.
The programming also features a p5 sketch that reflects the information being sent through the serial.
For example, in the video below Ethereum has had a modest positive 1 hour price change (0.06%), so it lights up the green LEDs a teeny bit. At the same time, Bitcoin has had a larger, negative price change (-1.16%), so it lights up the red LEDs quite a bit.
The simple joy of making one single LED light turn on returns this week with the first step towards linking the IRL, moving, ever-changing internet to an Arduino.
Using serial communication and an API call, the green and red lights indicate if the price of Ethereum – a popular cryptocurrency – has gone up or down in the past hour, as per Coin Markets Cap.
What is more, this light shines with different intensity depending on the degree to which the price has changed (i.e. bigger increase = brighter green light).
Do you ever get tired of throwing your own dice during a particularly long game of Monopoly?
Me neither because no one plays monopoly anymore, but for your dice throwing pleasure, here is the Dice Catapult 5000!