Download free music MP3s on genuine quality, the world’s largest online music catalogue, powered by your scrobbles. Free listening, videos, photos, The world’s largest online music catalogue, powered by your scrobbles. Free listening, videos, photos, stats, charts, biographies and concerts. stats, charts, biographies and concerts.
Friday, January 3, 2025
EuroRack 6HP Arduino Mozzi Module
This project uses my EuroRack 6HP MCU Experimenter Module to implement HAGIWO's Arduino Nano based VCO. This post describes how to put it together and test the basic functionality. Future posts will look at some code that can run on the module.…
Note: it is worth measuring a range of 499K and 3.9K resistors and finding the best ones. In my case I only had 500K resistors, so found the closest to 499K I had. I ended up with two 3.88K and one 498K.
For the Pots and Jacks board:
4x 10kΩ or 100kΩ PCB mount potentiometers.
4x "Thonkiconn" jack sockets.
Header pins.
Jumper wires
The IO Board
Here is how the various sub-circuits of the IO board will be used:
R/C 40x
CV_IN 1
Control Voltage 1
R/C 45x
CV_IN 2
Control Voltage 2
R/C 30x
GATE_IN 1
Potentiometer Input 1
R/C 35x
GATE_IN 2
Potentiometer Input 2
R/C 65x
OUT 4
Potentiometer Input 4
R/C 60x
OUT 3
Potentiometer Input 3
R/C 55x
OUT 2
Not used
R/C 50x
OUT 1
1V/Oct Control Voltage
R/C 10x
PWM 1
Audio output
R/C 20x
PWM 2
Not used
Notice that the GATE and OUT circuits are being used in "alternative" modes (see the Usage Notes for more details). In particular the transistors on the GATE circuits are not used.
The following shows which components of the PCB will be populated (yellow), which will be changed for other components (blue), which wire links are required (red) and which connectors will be used for linking to the Pots and Jacks board (green) and MCU (purple).
The mapping between IO connections and MCU IO pins is as follows (all other IO pins are not used):
PWM 1H
9
PWM 1L
10
CV 2
A7
CV 1
A6
GATE 2
A5
GATE 1
A4
OUT 4
A3
OUT 3
A2
OUT 1
A0
Note: the order of the Gate/CV is (from top to bottom): CV 2, CV 1, G2, G1. The ordering of the OUT connections is the same for both sets of pin headers: 1 on the left, through to 4 on the right.
The pots and jacks PCB should be wired up to the interconnecting headers as follows:
Optionally, it might be useful to connect from the GND header pin to the panel once fitted.
It is suggested the Jacks and Pots PCB is built in the following order:
Small header pins on the underside of the board.
Long header pins (if used) on the underside of the board.
Jacks.
Potentiometers.
Link wires.
The Panel
This is the panel design required.
The measurements are all detailed in the EuroRack 6HP MCU Pots and Jacks PCB Build Guide, but crucially the pot holes are M7 and the jack holes are M6. I found they needed a 7.5mm and 6.5mm drill respectively to allow for a bit of flex when fitting the panel.
I've used M2 mounting posts, screws and nuts between the boards. In particularly, I found that the spacing required a 6mm spacer with an additional nut added as shown below.
I also had to break off the alignment lugs on the potentiometers to allow the panel to fit snugly.
Once all together, you can see it needs around 45 to 50 mm clearance behind the panel for the whole thing.
Testing and Basic Code
I recommend performing the general tests described here: PCBs.
Then it can be connected to an Arduino Nano MCU board an a basic analogRead test can be performed to check the pots and input jacks.
void setup() { Serial.begin(9600); }
void loop() { for (int i=0; i<8; i++) { int aval = analogRead(A0+i); Serial.print(aval); Serial.print("\t"); } Serial.print("\n"); delay(100); }
An external potentiometer can be connected to a mono patch lead (GND and signal) and VCC to test the CV IN jacks (IN1, IN2, OUT2).
The order should be as follows:
A0
IN 1
A1
Not used, floating
A2
POT 3
A3
POT 4
A4
POT 2
A5
POT 1
A6
IN 2
A7
OUT 2
The (dual) PWM output can be tested using the basic Mozzi "Hi-Fi" sinewave test which can be found in the examples here:
Examples -> Mozzi -> 01.Basics -> Sinewave_HIFI
Closing Thoughts
I have to be honest - working out which parts of the circuits to use, then referring back to them to populate the PCBs, then soldering on the intra-board links and finally fiddling with the panel was actually quite a lot of work.
I don't know if I've saved anything compared to just building the circuit from scratch on a piece of protoboard.
It is also going to be quite likely that any issues might be hard to trace too.
I might find that as I use more of these boards, (assuming I build some more of course), then I get to know the layout and circuits and won't be referring back to the designs so much. I'll have to see how it goes.
But for now, if all you want is a single Arduino Nano HAGIWO circuit, then you're probably better off just making it up on protoboard...
But I think the whole board "sandwich" once complete does look pretty good!
I'll have to see if I can get a bit of a "production line" going and make up a few more. And now I have to get on with some code...
No comments:
Post a Comment