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
Auth0 B2B Essentials: SSO, MFA, and RBAC Built In Icon
Auth0 B2B Essentials: SSO, MFA, and RBAC Built In

Unlimited organizations, 3 enterprise SSO connections, role-based access control, and pro MFA included. Dev and prod tenants out of the box.

Auth0's B2B Essentials plan gives you everything you need to ship secure multi-tenant apps. Unlimited orgs, enterprise SSO, RBAC, audit log streaming, and higher auth and API limits included. Add on M2M tokens, enterprise MFA, or additional SSO connections as you scale.
Sign Up Free
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