| The MIDI Arpeggiator and Ratcheting Module:
|
|
- Speed potentiometer for the ratcheting- and arpeggio speed (CLOCK)
- Control voltage input for speed
- CLOCK display LED
- S-Trigger input for remote control
- External clock input
- Output for internally generated or externally provided / forwarded CLOCK signal
- Programm selection
- ISP DIN input
- RESET trigger
- MIDI IN DIN input
- MIDI IN display LED
- MIDI OUT DIN output
- MIDI OUT Display LED
|
| Circuit:
| Click here: KiCad schema
|
| The circuit is built around an ATmega8535 microcontroller.
|
| Speed potentiometer: An adjustable voltage divider (RV1) is connected to the ADC 0 port of the microcontroller. R2 prevents a direct connection to +5V. The software reads the voltage periodically and derives the clock speed from it.
|
| CV input: The CV input is connected to the ADC 1 port of the microcontroller. It is scanned periodically by the software as well and influences the CLOCK speed.
|
| CLOCK LED: This display LED shows the ratcheting and arpeggio processing ratio (CLOCK). It is controlled by software via controller pin PD4. The pin output is amplified by R18 and Q1. The LED is placed in the collector branch of the transistor, not in the emitter branch to avoid unwanted light dimmed flashes of the LED due to the base-emitter voltage of the transistor.
|
| Start / Stop input: A remote control (S-Trigger) to init ratcheting or arpeggio is connected here. T2 was implemented as jack bush to be able to pull controller pin PC5 to ground by a remote cable trigger or an external S-Trigger signal.
|
| CLK IN: The external CLOCK input is connected to the ADC 2 port of the microcontroller. It is scanned periodically by the software as well and influences the CLOCK speed as the internal clock synchronizes with the external clock signal.
|
| CLK OUT: The clock output is fed by controller pin PD5 via R17. The output signal follows the internal clock.
|
| Program selection: This rotary switch selects the ratcheting or arpeggio program. According to the position one of the controller pins PA3 to PA7 is pulled to ground, which is scanned and interpreted by the software. The controller pins are connected to +5V via R4, R5, R6, R8 and R9.
|
| ISP: Din connector for firmware upload via R11 to R14 to the ISP interface pins /RESET, PB5 (MOSI), PB6 (MISO) and PB7 (SCK)
|
| RESET trigger: Reset mimik of the controller with T1 which discharges the capacitor C2 and therefore pulls /RESET to ground. That triggers the RESET interrupt in the controller. Via R1 the capacitor is charged over a certain time constant to ensure a certain /RESET time. As /RESET is connected externally by the ISP interface as well, D1 is implemented as protection diode.
|
| MIDI IN: Din connector for MIDI input. Current-loop physics. The input current goes via R7 to the opto coupler U3. There it is isolated galvanically, inverted and pulls down to ground controller pin PD0 (RXD) periodically, which is pulled up to +5V via R10.
|
| MIDI IN LED: This display LED shows an incoming MIDI signal. It is controlled by software via controller pin PD2. The pin output is amplified by R21 and Q3. The LED is placed in the collector branch of the transistor, not in the emitter branch to avoid unwanted light dimmed flashes of the LED due to the base-emitter voltage of the transistor.
|
| MIDI OUT: Din connector for MIDI output. Current-loop physics. The output current is created by PD1 (TXD) as current sink via R16. R15 at +5V serves as current source.
|
| MIDI OUT LED: This display LED shows an outgoing MIDI signal. It is controlled by software via controller pin PD3. The pin output is amplified by R20 and Q2. The LED is placed in the collector branch of the transistor, not in the emitter branch to avoid unwanted light dimmed flashes of the LED due to the base-emitter voltage of the transistor.
The module:
|