Simulate Raspberry Pi add-on hardware

Soft Pi

© Lead Image © Author, 123RF.com

© Lead Image © Author, 123RF.com

Article from Issue 230/2020
Author(s):

Python and tk_tools let you create software versions of Raspberry Pi mini-displays, LED keypads, and NeoPixel hardware.

Raspberry Pis have some great hardware options for displaying information or accepting input. You can use either specialty plates that mount directly on top of the Rasp Pi or a variety of wired components.

Although nothing beats using real hardware for projects, if you're missing the hardware or you'd like to duplicate a value remotely, then a soft version of the hardware can be very useful. In this article, I look at three examples of hardware simulated with the help of Python and the tk_tools Python library [1]: a seven-segment wired display, an LCD keypad, and a NeoPixel string.

Seven-Segment Display

A seven-segment display uses seven horizontal and vertical bars, familiar in clocks, meters, and other electronic devices, to represent numbers and letters. The displays are often based on the HT16K33 [2] or TM1637 [3] chipset (Figure 1).

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Christmas Tinkering

    Make your own Christmas music box with a microcontroller, servomotor, NeoPixel LED ring, and mini-MP3 player.

  • Arduino CLI

    When programming an Arduino microcontroller board for the first time, most people use the Arduino IDE, a graphical development environment. However, if you prefer the command line, you have a powerful alternative: Arduino CLI.

  • OPC Unified Architecture

    Use Python and Node-RED to create an industrial client-server test system.

  • Snek

    Reuse your old Arduino hardware while learning Python.

  • Adafruit PyPortal

    Unlike other displays for the Raspberry Pi, Adafruit's PyPortal touchscreen provides an autonomous environment, including a microprocessor, sound output, and a WiFi connection.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News