(The images have to be dark so you can see the LED screen)
The little I2C LED modules for the raspberry pi have had my attention for a while now. Combine one with a raspberry PI and you can practically display anything. A 16x2 module doesn't cost that much and neither does a raspberry pi and with the help of my script it could be the perfect tool. It Turns your raspberry pi into a clock for Cryptocurrency . The project is open sourced on github. It is a pretty simple script but that means it is easily customizable. If you were to have a Raspberry Pi zero you could run it headless, mount it on your desk / wall somewhere. If people want this enough I will make a remote controlled version and maybe consider using a bigger display! The script has to be ran with Python 3 and the only library you need is cryptocompare. It seems to very stable, and the code is very customizable. Let me know if you want me to add features. Adding a new coin is as easy as changing less than a line of code.
List of things required:
- raspberry pi , any I used a 2 , a 1 B,A will work but will require wiring changes, a zero would be perfect!
- A 4 or 2 leg momentary tactile switch
- 6 female to male wires
- A 16x2 I2C display! Make sure you get one with a i2c module , I heard working on a plain LCD is a pain
- A copy of the I2C_LCD_DRIVER.py library, honestly this library is a life saver, everyone and I mean everyone steals it but i think this is the original source: ~~~ embed:8b0577acfdb27a78101ed16dd78ecba1 (this is not my work nor do I claim it is) gist metadata:dmF5M3QvOGIwNTc3YWNmZGIyN2E3ODEwMWVkMTZkZDc4ZWNiYTEgKHRoaXMgaXMgbm90IG15IHdvcmsgbm9yIGRvIEkgY2xhaW0gaXQgaXMp ~~~
- Wiring Diagram my github YAY open source
The only set-up that is needed is to find your I2C address and put it into I2C_LCD_driver.py. The command (after enabling I2C in rasp-config. sudo raspi-config
run
sudo i2cdetect -y 1
take note of the number and then replace the one in I2C_LCD_driver.py with it. From there on you are two commands away
pip3 install cryptocompare
with I2C_LCD_driver.py in the same folder as hodlbot.py run.
python3 hodlbot.py
So far there is three different modes. The bottom line is always your ethereum balance. If anyone wants to in the comments I'll let people know how to change it to other crypto (super easy to do the hardest part was the button). If there is enough demand I will make it completely customizable maybe even gasp a GUI tkinter app.
- Mode one pounds sterling Bitcoin
- Mode two Ethereum pounds sterling
- Mode three Steem USD (I didn't forget what website I was on)
- Balance in ethereum in GBP
(config file would be easy to implement but that's all I had time for today)
Anyway let's get to the photos.
ethereum please go up
This will show you the price and balance yes
Yep! Any crypto you can think of. If it has a blockchain ; it will show it.
This looks super cool! I'm looking at your code right now. You said you had some ideas for a GUI, are you thinking about a web interface or the raspberry pi touch display?
To be honest it wouldn't be very hard to implement either. I'll actually look into raspberry touch display. As I said the hardest thing was to implement the button/hardware logic!