Home

Awesome

Logo

Bitcoin Bar is a physical notfication bar which displays real time Bitcoin data. It can display upto 19 different real time Bitcoin data parameters.

Bitcoin Bar runs on a Raspberry Pi & uses a Dot LED Matrix display.

Prerequisites

Hardware:

  1. Raspberry Pi 3 or Zero W running Python 2.7 or above
  2. Max7219 4in1 Cascaded LED 8x8 Dot Matrix

Webscraping:

  1. Requests is an elegant and simple HTTP library for Python. Requests Installation & Documentation
  2. Beautiful Soup 4 is a Python library for pulling data out of HTML and XML files. Beautiful Soup Installation & Documentation

Python Library for Max7219 LED Matrix:

Python library interfacing LED matrix displays with the MAX7219 driver (using SPI) on the Raspberry Pi. Installation. By Richard Hull.

We also developed a new '7seg' font that is a condensed font used for scrolling displays that can only display numerical digits and is compatible with the MAX7219 driver. The 7Seg font allows one to display more digits on a single display unit.

Setup & Configurations

Once all the Prerequisties have been successfully installed, download/clone this GitHub Repository. Connect the Display to the Raspberry Pi as shown in the Schematics. Run the main program bcbar.py

Bitcoin Bar can display upto 19 different real time data parameters. These can be configured to be displayed in any order or sequence. The main program displays all 19 data parameters sequentially.

Data parameters can be individually displayed & their order can be changed by congifuring the following line in the main program:

show_message(device, disp[i], fill="white", font=proportional(LCD_FONT),scroll_delay = 0.02)

The value of i will determine the data parameter being displayed.

Bitcoin Bar can display the following real time data parameters:

ParameterExamplei
Total Bitcoins in circulation16,840,3630
Total Bitcoins to ever be produced21,000,0001
Percentage of total Bitcoins mined80.19%2
Total Bitcoins left to mine4,159,6383
Total Bitcoins left to mine until next blockhalf1,534,6384
Bitcoin price (USD)$8,811.005
Market capitalization (USD)$148,380,433,987.506
Bitcoins generated per day1,8007
Bitcoin inflation rate per annum3.98%8
Bitcoin inflation rate per annum at next block halving event1.80%9
Bitcoin inflation per day (USD)$15,859,80010
Bitcoin inflation until next blockhalf event based on current price (USD)$13,521,691,01311
Total blocks507,22912
Blocks until mining reward is halved122,77113
Total number of block reward halvings214
Approximate block generation time10.00 minutes15
Approximate blocks generated per day14416
Difficulty2,603,077,300,21917
Hash rate22.00 Exahashes/s18

Scrolling Speed & Static Text

By adjusting the value of scroll_delay, the scrolling speed can be changed. The led_test.pyexample uses the text function to display static text.

Fonts

The Python Library for Max7219 LED Matrix by Richard Hull comes with four inbuilt fonts: Sinclair, CP437, LCD, & Tiny. These fonts have different pixel area usage. More fonts may be added in the future & If you require a custom font for a specific purpose, I recommend checking out the GitHub Library.

Future Updates

Contributing

Are you a programmer, engineer or designer who has a great idea for a new feature in Bitcoin Bar? Maybe you have a good idea for a bug fix? Feel free to grab our code, schematics & CAD files from Github and tinker with it.