Wednesday 30 November 2016

DIY Arduino String Synth

DIY Arduino String Synth With Analogue Filter



***Updates at bottom of page - Easy to read Schematics etc****

Just like the Arduino Drum Machine, this is another build based on the amazing work of Jan Ostman, who is generous enough to share the code over on his website;

***Old website***
***New Website***

The suggested $3 dollar donation is quite simply amazing value for money, so if you use this, don't forget to tip!

On top of Jan's work, I've added a 12db filter with resonance (based on this design) to add a bit more sound sculpting to the synth.  Filters are a massive part of synthesis to me (mainly because I can't play but can quite happily turn knob) and an analogue filter really adds to the warmth 'wobble' of the synth.

The filter has a separate on/off switch and bypass switch.  Looking back it would've been better to build that into one switch, and also to move the output further to the right.  Ahhh the power of hindsight.

I wanted the synth to look very Minimoog-ish or Prophet 5-ish, which I think I achieved, but building the case was by far and away the hardest part of the build (due to my own inexperience/stupidity).

Total build time was spread over 3 months and probably took about 20 hours (most of that time was spent staring at nothing trying to think what to do next).  If I were to make it again I think I could get it down to about ten hours, if luck was on my side.

Here's a quick video of it in action;




Parts

The total cost of parts came to about €60, with most of that going on the MIDITECH midi keyboard. I used a cheap Chinese Arduino Nano clone to keep the cost down (around €2), then a few pots and resistors etc again from China. Also high quality plywood from Modulor for €2.90 (I think it was 6.5cmx250x500). The perspex was also from Modulor. Obviously if you don't already own wood stain and glue etc your cost will be significantly higher. For the panels I used my banggood laser engraver, which I think adds massively to the look of the synth.  If you don't have one of these you could use a label printer.

Electronics

Jan's website documents the build process pretty well, so go check there for schematics etc.  I did manage to draw up the wiring diagram which may save somebody a bit of time when hooking up the keys (find it somewhere below).

I started by taking apart the MIDITECH and unplugging the ribbon cables;


You won't need this part any longer so remove it to save some space;


I soldered the Arduino Nano to some perfboard to make it easier to handle (and to screw down to the chassis later on).



Then using some ribbon cables I began to figure out how to connect the keyboards out's with the Arduino's In's.





Eventually I figured out what went where and soldered it all down and covered the connectors with heat-shrink. You'll probably save a bit of time if you use this;



That's the majority of the synth finished!  From the nano's output I added a bypass switch and then the 12db filter.  I forgot to take any pictures of that though until it was already attached - sorry!  But it all fitted onto another small perf-board;


The Case

I started by cutting some cheap board and securing the key-bed onto it.  This gave me an idea of the final size of the synth to which I based my design around.  I kept the bottom plastic of the MIDITECH (always capitals!) keyboard because it would secure down easier (using it's screw holes) and also because it would probably be a pain to try and re-construct it any other way.  I also added some 'feet' at this point.


Feet...



With bottom panel size known,  I sketched out the rest of the case...


The side panels;



All the parts have been cut here (the other bit of perspex with the dials on was temporary just to make sure it was still working);

Notice the pencil with my name written on it.  That's mine it is.

Then using my old friend Ponal Wood glue I started sticking everything together (including fingers, clothes and everything else);







Then it was time to design the front panel and the laser engrave it onto perspex.  The smell was awful (and toxic)...  I stayed in the room long enough to feel faint.  I did sleep well that night though.

Running a test on card;


Burn!



After it was engraved I filled it in with white acrylic paint;





 With the panels and case completed it was time to stain the wood.  I used a mahogany brown stain, using two or three coats.  The trick here is not to use to0 much and to keep it moving when it's been applied, otherwise you'll get an uneven finish.






 Once this had dried it was time to add the varnish.  Like with the stain, I find it's best to use only a tiny amount and spread it out as much as possible to get the best finish (you can always add another layer later).  With this synth I found one layer to be enough;


Once this has dried you can now put it all together.  For extra security I also used some hot glue to do this (and it's not fallen apart yet)




I added screws to secure the perspex panel but can't find a picture of that. But I'm sure you can imagine what it looks like.

Conclusion

Overall I'm pretty happy with how it turned out, with only a few gaps in the wood caused by my rubbish cutting/maths skills.  Should I make it again I'd move the output over to the far-right as I've noticed it's possible to knock the cable when going mad on the filter (you should only touch a synthesisers knobs as if they are really hot, otherwise you're not a real synthesist).

I've been learning C for a while, but it's a massive mountain to climb.  From here though I've bought the following book;

When I eventually get around to reading it, it should give me a better idea of what's going on in the code, then I'd like to attempt a version 2 using maybe an Arduino Due and add some more controls.

Thanks!



****UPDATE****
SIMPLIFIED SCHEMATICS

Below is a simplified schematic for the string synth...  Sorry it's not the best quality I'll try and take a better picture later, but hopefully this should be of help those of you new to schematics that want to try and build this synth.

The connections where it says 'goes to keyboard', you can see elsewhere in this blog for another detailed diagram of where and how these can be wired up to the keys.   As for the potentiometers, I *think* I've drawn them the correct way (if you make this and the pots are working the opposite as you'd expect, swap around the ground and 5v connections on each pot).  If the drawing is incorrect, let me know and I'll re-do it. Even if this version is wrong, nothing will break & it'll still work OK (just the pots will work in reverse).

You can see where the pots 5volt and ground connections need to go in the diagram, I didn't join them in the picture because the wires would start overlapping and become confusing.  It's pretty obvious what to do though.

Also drawn is the audio out headphone socket, with the positive voltage/audio signal coming from the output D11, which then goes through the resister/capacitor (which acts as a filter to reduce some of the noise from the Arduino).  The other side of the audio goes to the ground signal.  If you don't know how to wire up a audio jack, maybe google 'audio jack pin-out' or 'audio socket wiring diagram'.

If you plan on adding the analogue filter, you'd leave off the audio jack and have the previously mention positive wire go into the input of the filter.  You'll have to learn to read the schematic for that I'm afraid, as I couldn't really simplify it without it becoming more complicated than a normal schematic.  Give me a shout if you get stuck though.

Good luck!

P.S

I'll draw a simplified schematic for the Arduino drum machine soon.



****UPDATE PART 2******

Below is a wiring diagram to add a bypass switch to the filter;




...And if you were struggling to figure out how to wire up the Pots for the filter, I've drawn out a simple picture showing how (I've had to do this whilst away traveling, so it's partly drawn from memory but I'm pretty certain it's correct)...

Obviously the drawing only shows how the pots are wired and not the full schematic.  Go look at the proper schematic for the rest of the plans, but this will give you a good idea of how to wire up the pots.




Powering the filter from a 9v Battery will give it it a bit more 'oomph', so if you'd like to do that, the below illustration will give you an idea.  Further, should you want an LED indicator showing if the filter is switched on or not, see the chequered box;


I only had SPDT switches available when I built the synth, so that's why there's separate switches for both the on/off & bypass, but you could easily just use one 2PDT to save space.  You could even add an audio in jack at the start of the filter to process other audio.

Good luck!

***UPDATE Arduino Drum Machine****
Simplified Schematic

Ok, so this 'simplified' schematic might not actually make things any simpler!  But some people have asked for it, so maybe it'll help clear somethings up a little bit - especially how to wire up the audio output and pots/switches.  This was drawn from memory so I hope it's correct - give me a shout if not and I'll update (the pots might work in reverse, but they'll still work).  I'd also urge you to look at the schematic on Jan Ostman's website for more help;

https://janostman.wordpress.com/the-o2-source-code/


Thanks!

Tuesday 15 November 2016

Korg Mini-Pops DIY Drum Machine

Korg Mini-Pops DIY Drum Machine 




This is a really cool build;  It a recreation of the Korg Mini-Pops drum machine, an instrument which has been on a ton of records the most famous of which might be Jean Michelle Jarre’s ‘Oxegen’ album, hence this clone being called the ’O2’.  



The brilliant Jan Ostman built this using only an Arduino nano and a few barebone parts.  Jan is giving away the full details on his website and is only asking for a $3 donation in return.  Bargain!


***Update***
If the linked website is no longer working, use the Internet Archive to visit a cached version of the site (copy and paste the address and choose a date from around when this pages was posted: around Dec 2016).

***MIDI update***
From the forums of Look Mum No Computer, somebody has posted the code but with the MIDI update;
(Read the forum for more info and schematic).

***More Advanced Model Update***
If you'd like to build a more advanced version, head over to the NoiseyMaker website for more info and a nice detailed guide.  This version builds on the original & adds some advanced features like a display and even pitch control of the samples.  Also the drum patterns have been updated to be a bit more 4/4 time 'electronic-style', rather than than some of the 3/4 time waltz in the original code (you could always copy & paste these over to the old code if you wished).

....



I started by building my first version using a cheap Maplin plastic enclosure, but I thought it was worth spending a little more time on it so I got the table saw out. 














Because the table saw has a maximum cutting width of 7cm, I based the case around this limitation.











The switches mute the individual drum hits. The pots select the pattern and its tempo.





































V3.




***UPDATE Arduino Drum Machine****
Simplified Schematic

Ok, so this 'simplified' schematic might not actually make things any simpler!  But some people have asked for it, so maybe it'll help clear somethings up a little bit - especially how to wire up the audio output and pots/switches.  This was drawn from memory so I hope it's correct - give me a shout if not and I'll update (the pots might work in reverse, but they'll still work).  I'd also urge you to look at the schematic on Jan Ostman's website for more help;

https://janostman.wordpress.com/the-o2-source-code/

Thanks!

Tuesday 1 November 2016

DIY Jesus & Mary Chain Fuzz Pedal

DIY Jesus & The Mary Chain Fuzz Pedal


This was my attempt at the Jesus and Mary Chain Shin Ei Fuzz Wah.  The Mary Chain pedal was famously faulty which I wanted to incorporate the same nastiness into my version.  Also the original pedal was a wah-pedal, but I don't have the means to build that.  So I thought about it; a wah-pedal is essentially just a filter, so why don't I just add a filter onto the original schematic, so that you can drive it into self oscillation creating the feedback that it was known for?


After building a few different schematics I'd found on the web, I went with this one as it sounded the best to my ears;


However, note that this isn't the actual fuzz pedal schematic, but just the fuzz part of it.  That's ok, because this is where I add the following filter tat's capable of self-oscillation;


I've put this filter into loads of different build before because it's simple but sounds pretty good (or nasty if that's what you want).

I then added numerous bypasses, and the ability to run the filter and fuzz separately.



For some reason after building this I put it away in the drawer and forgot about it, which is a shame because it sounded pretty much like the mary-chain in a pedal.  I should probably get a batch of PCB's made if I build any more because it was a lot of work making it on perf-board.  

One day I'll do that and post some audio-examples.