All projects

RASPBERRY PI / DESK BUILD

A desk-sized
S&P 500 heat map.

I wanted a screen on my office desk that would give me a quick look at the market around the opening bell.

It hasn’t turned out to be the best way to check the market at a glance, but it looks good on the desk. I chose a case that seemed close to the natural wood in my office. The print came out rougher than I hoped.

The completed S&P 500 heat map running in a wood-look case on a desk.
The finished S&P 500 display on my desk.

This build uses the touchscreen version of my Heat Map Pi Kiosk project. The photos and steps below show how I fitted the Pi and display into the printed case.

Select a photo to open the full image in a new tab.

Parts and the printed case

I used a Raspberry Pi 3 Model B+, a 7-inch Hosyond IPS DSI touchscreen marked 800 × 480, a USB cable with an inline switch, and a 16GB Kingston microSD card I already had. The enclosure is based on this Raspberry Pi 3B/4 case model on Printables.

The case shape and color looked like a good fit for my office desk. The print has some rough areas, but I liked the overall look enough to use it.

  • Raspberry Pi 3 Model B+
  • Hosyond 7-inch IPS DSI touchscreen, 800 × 480
  • 16GB Kingston microSD card
  • USB power cable with an inline switch
  • Printed two-piece case and four mounting screws

Screws: mine are about 12.5mm long. I measured roughly 2.4mm across the threads, which suggests M2.5 (2.5mm nominal diameter), rather than M2. I haven’t confirmed the size with a thread gauge, so check the fit before ordering replacements.

Build and flash the kiosk card

The Pi runs my Heat Map Pi Kiosk, which starts as a full-screen market display. The project repository includes an image builder that creates a bootable Raspberry Pi OS image with the kiosk installed. Follow the image-builder instructions to create the image file first.

  1. Open Raspberry Pi Imager.

    Insert the microSD card into your computer with a card reader. In Imager, select the Pi model, then choose Use custom in the operating system list and select the image you built in the repository’s image-builder/output folder.

  2. Select the microSD card and write the image.

    Double-check the selected storage device: writing erases the card. Start the write and let Raspberry Pi Imager finish its verification.

  3. Safely eject the card and put it in the Pi.

    Insert the card before mounting the Pi to the display. Once the screen is attached, the card slot is harder to reach.

On first boot, the kiosk should launch automatically. The Pi needs internet access for market data. If Wi-Fi wasn’t set during image setup, the kiosk provides a touchscreen Wi-Fi setup on first boot.

Connect the screen and Pi

  1. Connect the DSI ribbon to the screen first.

    With the Pi unpowered, open the small connector latch, slide the ribbon in straight, and close the latch. Check the cable orientation against the markings by the connector.

  2. Line up the Pi with the screen mounts.

    Set the Pi against the back of the screen with its header pins facing up, as shown in the photos, and align the mounting holes. As it seats, make sure the display’s two power contacts line up with the matching pins on the Pi so they make contact. Keep the boards parallel and avoid trapping the ribbon.

  3. Secure the four mounting screws.

    Once the holes and contacts line up, install the four screws. Tighten them enough to hold the boards securely without forcing the printed mounts.

  4. Connect the ribbon to the Pi.

    Route the free end to the Pi’s DSI connector, check the orientation, insert it fully, and close the connector latch.

Test it, then close the case

  1. Power on and check the screen.

    With the case still open, connect the USB cable and use its inline switch to power the Pi. Confirm that the Pi boots and the display works before closing anything up.

  2. Fit the electronics into the case.

    Place the screen and Pi assembly in the case, keeping the ribbon and power cable clear of the edges. The SD card should already be in place.

  3. Route the power cable and close the case.

    Feed the USB cable through the rear opening, check that nothing is pinched, then fit the back shell and secure the case.

First boot and the finished display

The image starts the kiosk automatically. The display can show the S&P 500, Nasdaq-100, or Dow boards. Tap the map to switch boards; press and hold the top edge to open settings for Wi-Fi and display options.

It gives me a quick visual of the market, although I still find it easier to check the details elsewhere. For this project, the satisfying part is having the heat map running on a screen I built into the desk setup.

The kiosk software, image-builder, setup notes, and controls are in the Heat Map Pi Kiosk repository.