This commit is contained in:
2021-01-31 17:38:48 +10:00
parent 9f49ebcd83
commit 338b8572a5

View File

@@ -8,12 +8,53 @@ Midi channel, CC number, and maximum and minimum values are customisable.
The expression pedal is automatically calibrated. At startup, simply move your pedal from minimum to maximum. The values are determined accordingly, and CC messages will start being sent. The expression pedal is automatically calibrated. At startup, simply move your pedal from minimum to maximum. The values are determined accordingly, and CC messages will start being sent.
Schematic coming soon
![](/docs/Pi-Pico-ExpressionPedal2Midi1.jpeg) ## Recipe:
![](/docs/Pi-Pico-ExpressionPedal2Midi2.jpeg) Raspberry Pi Pico (loaded with MicroPython)
![](/docs/Pi-Pico-ExpressionPedal2Midi3.jpeg) ¼” jack TRS socket
![](/docs/Pi-Pico-ExpressionPedal2Midi4.jpeg) 5 pin DIN midi socket
10Ω resistor
33Ω resistor
Optional: breadboard, 40 pin male headers, pin cables, scotch
Power source:
Either USB or 3xAA battery holder
Load your Pico board with the main.py
Customise the midi settings in the main.py file accordingly, and season to taste:
Here, were sending CC68 messages between 20 (min) and 97 (max) on Midi channel 1.
Upload to your board using Thonny, or your favorite IDE.
Now for the stuffing:
### Midi port:
Midi messages are sent via UART1. Heres where we need the resistors to protect the board and your midi device.
Connect a 10Ω resistor to pin 6 on the Pico (UART1 TX). Tother end of the resistor to pin 4 of your midi socket
Connect a 33Ω resistor to pin 36 on the Pico (3V3 OUT). Tother end of the resistor to pin 5 of your midi socket
Connect a Pico ground pin (any of 3, 8, 13, 18, 23, 28, or 33) to pin 2 of your midi socket
Youre done here, next…
### Expression pedal jack:
The expression pedal is connected to ADC0 on the Pico.
Connect the jack sleeve to Pico ground pin (any or 3, 8, 13, 18, 23, 28, or 33)
Connect the jack ring to Pico pin 36 (ADC0)
Connect the jack tip to Pico pin 31 (3V3 OUT)
Jubilations, youre done.
Ashley Strahle Ashley Strahle