I have Phillips Hue at home, so using the nice instructions from ITP Light & Interactivity I was able to connect to my home’s hue setup as a developer. Here is a snapshot of my home’s current setup (collected through a GET request after connected):
Cryptomania is a sculpture designed as commentary on the cryptocurrency pandemonium. It lights up based on the 1 hour price change (a percentage value) of a particular crypto-currency – Ethereum.
Creating the physical enclosure for the CRYP0MANIA crystal was a project in and of itself. This post is about the crystals physical details.
Lets call it CRYPT0MANIA – the connected crystal.
This post is about the crystals digital details – because it works – it really works!
As the technical feasibility of the API to LED project comes together, it is time to consider the physical specifications, including design, construction, and materials. Here is the current conceptual design:
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!
Above is a little illustration that depicts the sunrise and sunset times (listed on the y-axis) of two locations in the world for each day in the year (spread across the x-axis).
See the code and web version here (press the play button – not optimized for mobile).
In this current case it is the 2016 sunrises and sunsets from Eastern Standard Time (EST) – aka New York – and Central European Time (namely Switzerland & France).
At many stages in my life, for different reasons, I have found myself doing a mental calculation to imagine this time difference, and specifically when our normal waking hours overlap.
These days, both a friend and my girlfriend’s father are stationed in Switzerland.
This illustration is designed to show that our days share a lot of the same sunlight – especially in the summer. So even if we are far away, we can often look up at the same thing in the sky. ?
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).