Skip to content

low cost encoder/other user interface to OSC solution

License

Notifications You must be signed in to change notification settings

blip2/picoencoders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pico Encoders

The concept is to provide a low cost encoder/button user interface solution for control of ETC lighting consoles (and possibly other things?).

Prototype Pico Encoder Prototype Pico Encoder - see hardware section below

The Pico plugs into a computer running the desktop application (see Releases) which converts the Pico serial console output to the relevant OSC commands. The arrow keys on one encoder also control parameter selection and scrolling speed.

Pico Encoder App OSC Service Desktop Application

Hardware

The current prototype uses a standard Raspberry Pi Pico and the following components:

The current iteration has all pins on the left encoder/buttons and the right encoder connected to GPIO pins. The pins assumed/used are listed in code.py and can be easily changed in the code.

Pico Setup

This projects uses CircuitPython. There is an easy guide to install the CircuitPython firmware onto the Pico here.

Once installed the code.py file can be dropped into the CIRCUITPYTHON drive that should appear with the Pico plugged in.

If the app is running, it should then show as connected and any input received shown in the Debug Console. If it doesn't close the app and look at what is happening in the Serial console for the Pico.

App Usage

Download and install the desktop application from the Releases page. This installers are not currently signed so you'll get lots of trust warnings and it may be blocked by anti-virus software. The builds for Mac and Linux have not yet been tested.

Once running the app it should automatically connect to the first Pico device connected, the IP address and port to send OSC to may need to be set to the ETC

If the directional buttons are not being used/setup, the speed and parameter mode can be set from the user interface of the app. The app can also be set to be 'on-top' so that you can see what parameters it's set to.

App Development

The app uses electron, with SerialPort for USB serial connection to the Pico and OSC-js to output OSC messages.

To make changes to the application, clone this repository from an environment with git and npm.

From within the pico-encoders-app folder, install all dependencies with npm install

Run the app in development mode with npm run start - changes are not currently auto-reloaded.

Github releases are automatically built for Windows/Mac/Linux and available on the Releases page.

Authors

Ben Hussey [email protected]