Bitcoin Tracker Using a Raspberry Pi

·

Introduction

Bitcoin—the decentralized digital currency once valued at $19K—was poised to revolutionize global payments. With fewer than 3,585,825 Bitcoins left to mine, tracking its metrics has never been more relevant. Inspired by the idea of a "Bitcoin Clock" counting down remaining coins, I created Bitcoin Bar: a physical LED dashboard displaying real-time Bitcoin data like price, remaining supply, block halving countdown, and hash rate.

👉 Explore Bitcoin trends with Raspberry Pi

Step 1: Components & Tools

Electronic Components

Tools

Materials

Step 2: Electronic Design

Connect the LED display to the Raspberry Pi via SPI pins:

| Raspberry Pi 3 | LED Display |
|---------------------|-----------------|
| 5V | VCC |
| GND | GND |
| GPIO 10 (MOSI) | DIN |
| GPIO 8 (SPI CE0) | CS |
| GPIO 11 (SPI CLK) | CLK |

Step 3: Software Setup

Dependencies

  1. Python Requests (HTTP library)
  2. Beautiful Soup 4 (HTML/XML parsing)
  3. Luma.LED_Matrix (MAX7219 driver for Raspberry Pi)

Configuration

Clone the Bitcoin Bar GitHub repo, then run bcbar.py. Customize displayed parameters (e.g., price, remaining supply) by editing:

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

Key Features:

👉 Optimize your Bitcoin tracker setup

Step 4: Mechanical Assembly

  1. Laser-cut MDF enclosure (download files here).
  2. Front Panel: Slots for LED display + acrylic diffuser.
  3. Back Panel: USB power cable hole.
  4. Bottom Panel: Mount Raspberry Pi with bolts.

Step 5: Painting & Decoration

Step 6: Final Assembly

  1. Solder the 10mm LED with a resistor.
  2. Mount components and connect per the schematic.
  3. Power up—Bitcoin Bar auto-displays metrics on boot!

FAQ

Q: Can I use a Raspberry Pi Zero?

A: Yes! Future laser-cut files for Pi Zero will be added to the repo.

Q: How often does the data update?

A: Default is hourly to avoid API overuse. Adjust in bcbar.py.

Q: Can I add custom parameters?

A: Absolutely—modify the disp[] array in the code.

Support more projects by subscribing to Jonty’s YouTube. Questions? Drop them in the comments!

👉 Start building your Bitcoin tracker today