loading
Picture of Randomized Arduino Drum Machine
SAM_5091.JPG
SAM_5092.JPG
I like drum machines. However they are not always the easiest to build. I wanted one that is:

A. Simple, Yet Powerful-If it uses lots of components then it is too complicated
B. Sound-It's not a a drum machine if it "beeps"
C. Easily Modifiable-If I can't change stuff for improvement it is kind of annoying.

A meticulous internet search wasn't so successful.

Finally, I found this but, even that was a bit un-editable although it was cool. I thought that the samples were a bit small and I for one was not going to rewrite a bunch of samples.

Therefore, I decided to play around with the code and rewrote my own version of it and tweaked it around until I got a sound I liked.

Remember: Make sure you have the Potentiometer on Analog Pin 1 and not Analog Pin Zero. The True Random library uses this wobbly voltage to pick random numbers! MAKE SURE TO FREE UP ANALOG PIN 0!

I drew up a schematic from the code and then made it real.

I know this uses the TX (Digital Pin 1) and RX (Digital Pin Zero) but I had already built a Digital to Analog Converter shield for those pins and was too lazy too build it again.
 
Remove these adsRemove these ads by Signing Up

Step 1: Parts and Stuff.

You Will Need:
8 1K Resistors
8 2K Resistors
1 Potentiometer
1 3-Pin Terminal Block
Male Headers
Arduino Uno
Perf Board/Breadboard

Step 2: Program.

Picture of Program.
Here is the source code so far:


Here is some more code you can try:


Step 3: Okay...So What Exactly is a DAC?

Picture of Okay...So What Exactly is a DAC?
A DAC or, Digital to Analog Converter is essentially, a device that takes a series of on-off pulses from a computer, which speaks in binary (or microcontroller) and then converts it into specific voltage levels.

So How does it do it exactly?

Collin Cunningham will explain in more depth:




Step 4: Let's Get Started!

Picture of Let's Get Started!
DrumMachineImage.jpg
SAM_5087.JPG
SAM_5092.JPG
Build according to the schematic. I can supply pictures of my build in the end but my camera was broken at the time I made this and so, I don't have the pictures for during the build. Sorry.

Step 5: Let's Finish!

Picture of Let's Finish!
SAM_5094.JPG
Solder the headers terminal and the output wires and commence testing. (make sure you screw in the potentiometer.)

Step 6: Done!

Picture of Done!
SAM_5080.JPG
SAM_5082.JPG
That's it!

If you need any help or you have any suggestions PM me or leave a comment below.
benekeneb2 years ago
Why is hat and crash the same?
benekeneb2 years ago
I don`t understand what the Pot is for. What does it do?
blinkyblinky (author)  benekeneb2 years ago
It is used for speed control. The drum sounds slow down/speed up as you turn the pot.
TobaTobias3 years ago
Nice! What resistance is the pot?
blinkyblinky (author)  TobaTobias3 years ago
It can be any value you want...I used 1Megaohm but 10K, 5K 100K and most other values will work.
Let's hear what it sounds like!
blinkyblinky (author)  georgelstuart3 years ago
I guess I was too lazy to shoot a video...Better get started...will get back soon.