With the demise of the parallel port, a simple way for a Python script to control external hardware has disappeared. The goal of this project is to use relatively simple hardware like an Arduino Nano and the Microchip MCP23S17 port expander as an extensible bit banger.
Ideally, all hardware should be leaded and breadboard friendly for easy project prototyping.
The ELEGOO Nano is used as an USB RS232 to SPI controller to control the port expander. This fits nicely on a breadboard and has sufficient resources to control a very large number of bits.
The Nybble protocol, https://sourceforge.net/projects/nybbler, is used to communicate between Python and and port expander chips.
Tkinter is used for both the GUI and as a thread manager for the serial port interface. This makes it possible to have a simple plug and play application.
Nattya, https://sourceforge.net/projects/nattya/, a hex friendly TTY interface is used for debug because the Arduino IDE doesn't support hex RS232 data.

Features

  • Python controlled hardware using an Arduino Nano as an SPI interface.
  • 100% open source.
  • Event driven programming model using both Python and Arduino callback functions with parameter passing.

Project Samples

Project Activity

See All Activity >

Follow PyBitBanger

PyBitBanger Web Site

Other Useful Business Software
Full-stack observability with actually useful AI | Grafana Cloud Icon
Full-stack observability with actually useful AI | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of PyBitBanger!

Additional Project Details

Registered

2021-05-08