# MIDI Solenoid Drum Kit

## Overview

https://youtu.be/dhKYxDzyXqI

## CircuitPython MIDI

Build a MIDI drum kit using solenoids and CircuitPython! 3D print parts to create a solenoid driven mallet to trigger snare drums, cymbals and much more! Use the Adafruit Feather M4 and ULN2803A darlington driver to create your own custom USB MIDI percussion ensemble.

![3d_printing_hero-3.jpg](https://cdn-learn.adafruit.com/assets/assets/000/093/777/medium640/3d_printing_hero-3.jpg?1596483457)

## Plug and Play

The Feather M4 and ULN2803A darlington driver are fitted onto a Perma-Proto board housed inside a snap fit case. DC jacks on the side of the case allow for plug and play of the solenoids.

![3d_printing_feather-case.jpg](https://cdn-learn.adafruit.com/assets/assets/000/093/798/medium640/3d_printing_feather-case.jpg?1596508944)

## DIY Drum Kit

DIY your own cymbals, tom toms, snare and kick drum. Use the mallets to hit any surface to make&nbsp; programmable percussion instruments.

![3d_printing_mallet-cymbals.jpg](https://cdn-learn.adafruit.com/assets/assets/000/093/799/medium640/3d_printing_mallet-cymbals.jpg?1596509056)

## Modular Design

To make the kick drum, a solenoid is mounted to a piece of 2020 extrusion that hovers over a practice drum pad. This creates a direct hit and makes a nice 'thud'.

![3d_printing_kickdrum-extrusion.jpg](https://cdn-learn.adafruit.com/assets/assets/000/093/800/medium640/3d_printing_kickdrum-extrusion.jpg?1596509224)

## Parts
### Adafruit Feather M4 Express - Featuring ATSAMD51

[Adafruit Feather M4 Express - Featuring ATSAMD51](https://www.adafruit.com/product/3857)
It's what you've been waiting for, the Feather M4 Express featuring ATSAMD51. This Feather is fast like a swift, smart like an owl, strong like a ox-bird (it's half ox, half bird, OK?) This feather is powered by our new favorite chip, the **ATSAMD51J19** -&nbsp; with...

In Stock
[Buy Now](https://www.adafruit.com/product/3857)
[Related Guides to the Product](https://learn.adafruit.com/products/3857/guides)
![Angled shot of a Adafruit Feather M4 Express. ](https://cdn-shop.adafruit.com/640x480/3857-10.jpg)

### Large  push-pull solenoid

[Large  push-pull solenoid](https://www.adafruit.com/product/413)
Solenoids are basically electromagnets: they are made of a big coil of copper wire with an armature (a slug of metal) in the middle. When the coil is energized, the slug is pulled into the center of the coil. This makes the solenoid able to pull (from one end) or push (from the other)  
<br...></br...>

In Stock
[Buy Now](https://www.adafruit.com/product/413)
[Related Guides to the Product](https://learn.adafruit.com/products/413/guides)
![Push-pull solenoid with red and black wires.](https://cdn-shop.adafruit.com/640x480/413-04.jpg)

### Adafruit Perma-Proto Half-sized Breadboard PCB - Single

[Adafruit Perma-Proto Half-sized Breadboard PCB - Single](https://www.adafruit.com/product/1609)
Customers have asked us to carry basic perf-board, but we never liked the look of most basic perf: it's always crummy quality, with pads that flake off and no labeling. Then we thought about how people **actually** prototype - usually starting with a solderless breadboard and...

Out of Stock
[Buy Now](https://www.adafruit.com/product/1609)
[Related Guides to the Product](https://learn.adafruit.com/products/1609/guides)
![Top view of Adafruit Perma-Proto Half-sized Breadboard PCB.](https://cdn-shop.adafruit.com/640x480/1609-00.jpg)

### ULN2803: 8 Channel Darlington Driver (Solenoid/Unipolar Stepper)

[ULN2803: 8 Channel Darlington Driver (Solenoid/Unipolar Stepper)](https://www.adafruit.com/product/970)
Bring in some muscle to your output pins with 8 mighty Darlingtons! This DIP chip contains 8 drivers that can sink 500mA from a 50V supply and has kickback diodes included inside for driving coils. This will let your little microcontroller or microcomputer power solenoids, DC motors (in one...

In Stock
[Buy Now](https://www.adafruit.com/product/970)
[Related Guides to the Product](https://learn.adafruit.com/products/970/guides)
![ULN2803 8 Channel Darlington Driver. Solenoid/Unipolar Stepper chip.](https://cdn-shop.adafruit.com/640x480/970-01.jpg)

### Part: 10-Wire Cable
quantity: 1
Silicone stranded-core 28AWG
[10-Wire Cable](https://www.adafruit.com/product/3890)

### Part: DC barrel jack
quantity: 5
Panel Mount 2.1mm DC barrel jack
[DC barrel jack](https://www.adafruit.com/product/610)

### Part: 2.1mm DC Plug
quantity: 4
DC Jack Adapter Cable
[2.1mm DC Plug](https://www.adafruit.com/product/2788)

### Part: 12V 5A Power supply
quantity: 1
12V 5A switching power supply
[12V 5A Power supply](https://www.adafruit.com/product/352)

### Part: Feather Header Kit
quantity: 1
Header Kit for Feather - 12-pin and 16-pin Female Header Set
[Feather Header Kit](https://www.adafruit.com/product/2886)

### Part: USB Cable
quantity: 1
Fully Reversible Pink/Purple USB A to micro B Cable - 1m long
[USB Cable](https://www.adafruit.com/product/4111)

### Part: 10-wire silicone ribbon cable
quantity: 1
10-wire silicone ribbon cable
[10-wire silicone ribbon cable](https://www.adafruit.com/product/3890)

### Part: JST PH 2-Pin Cable
quantity: 6
Female Connector 100mm
[JST PH 2-Pin Cable](https://www.adafruit.com/product/261)

### Part: JST PH 2-Pin Cable
quantity: 6
Male Header 200mm
[JST PH 2-Pin Cable](https://www.adafruit.com/product/3814)

### Part: Toggle Switch
quantity: 1
Mini Panel Mount SPDT Toggle Switch
[Toggle Switch](https://www.adafruit.com/product/3221)

### Part: 18 Pin DIP Socket
quantity: 1
18 (2 x 9) Pos DIP, 0.3" (7.62mm) Row Spacing Socket Tin Through Hole
[18 Pin DIP Socket](https://www.digikey.com/product-detail/en/on-shore-technology-inc/ED18DT/ED3047-5-ND/4147597)

### Part: 2020 Extrusion
quantity: 1
Slotted Aluminum Extrusion - 20mm x 20mm - 610mm long
[2020 Extrusion](https://www.adafruit.com/product/1221)

### Part: Slim T-Nuts
quantity: 1
Aluminum Extrusion Slim T-Nut for 20x20 - M4 Thread - pack of 50
[Slim T-Nuts](https://www.adafruit.com/product/1157)

### Part: M4 Machine Screw
quantity: 1
Button Hex - 8mm long - pack of 50
[M4 Machine Screw](https://www.adafruit.com/product/1160)

### Part: Remo Drum Pad
quantity: 1
Gray Tunable Practice Pad with Ambassador Coated Drumhead
[Remo Drum Pad](https://amzn.to/2XptKed)

### Part: Small Cymbals
quantity: 1
2pc First Note FN240 Firstnote Cymbals
[Small Cymbals](https://amzn.to/2Pmjjna)

## Hardware List

Screws, standoffs hex nuts and locknuts used to assemble and fasten parts.

**&nbsp;Mallet Assembly (Single Set)**

- 12x M3x6mm screws
- 4x M3x10mm standoffs
- 2x M3x16mm screws
- 3x M3 locknuts
- 1x M3x14mm screw

**Kick Drum Assembly**

- 1x 2020 Aluminum Extrusion – 305mm long
- 4x M4x8mm screws
- 4x M4 slim t-nuts
- 2x M3x10mm screws
- 2x M3 hex nuts
- 4x M3x6mm screws
- 4x M5x30mm screws
- 6x M5 hex nuts

**Cymbal Assembly**

- [1/4-20 D-ring tripod screw](https://www.adafruit.com/product/2629)
- [3/8 to 1/4 screw adapter](https://www.adafruit.com/product/2392)
- 2x M5x10mm screw
- 2x M5 hex nuts

- [Next Page](https://learn.adafruit.com/midi-solenoid-drum-kit/circuit-diagram.md)

## Featured Products

### Adafruit Feather M4 Express - Featuring ATSAMD51

[Adafruit Feather M4 Express - Featuring ATSAMD51](https://www.adafruit.com/product/3857)
It's what you've been waiting for, the Feather M4 Express featuring ATSAMD51. This Feather is fast like a swift, smart like an owl, strong like a ox-bird (it's half ox, half bird, OK?) This feather is powered by our new favorite chip, the **ATSAMD51J19** -&nbsp; with...

In Stock
[Buy Now](https://www.adafruit.com/product/3857)
[Related Guides to the Product](https://learn.adafruit.com/products/3857/guides)
### Large  push-pull solenoid

[Large  push-pull solenoid](https://www.adafruit.com/product/413)
Solenoids are basically electromagnets: they are made of a big coil of copper wire with an armature (a slug of metal) in the middle. When the coil is energized, the slug is pulled into the center of the coil. This makes the solenoid able to pull (from one end) or push (from the other)  
<br...></br...>

In Stock
[Buy Now](https://www.adafruit.com/product/413)
[Related Guides to the Product](https://learn.adafruit.com/products/413/guides)
### Adafruit Perma-Proto Half-sized Breadboard PCB - Single

[Adafruit Perma-Proto Half-sized Breadboard PCB - Single](https://www.adafruit.com/product/1609)
Customers have asked us to carry basic perf-board, but we never liked the look of most basic perf: it's always crummy quality, with pads that flake off and no labeling. Then we thought about how people **actually** prototype - usually starting with a solderless breadboard and...

Out of Stock
[Buy Now](https://www.adafruit.com/product/1609)
[Related Guides to the Product](https://learn.adafruit.com/products/1609/guides)
### ULN2803: 8 Channel Darlington Driver (Solenoid/Unipolar Stepper)

[ULN2803: 8 Channel Darlington Driver (Solenoid/Unipolar Stepper)](https://www.adafruit.com/product/970)
Bring in some muscle to your output pins with 8 mighty Darlingtons! This DIP chip contains 8 drivers that can sink 500mA from a 50V supply and has kickback diodes included inside for driving coils. This will let your little microcontroller or microcomputer power solenoids, DC motors (in one...

In Stock
[Buy Now](https://www.adafruit.com/product/970)
[Related Guides to the Product](https://learn.adafruit.com/products/970/guides)
### Panel Mount 2.1mm DC barrel jack

[Panel Mount 2.1mm DC barrel jack](https://www.adafruit.com/product/610)
This power jack is designed to easily attach to a panel up to 8mm thick (0.315" or 5/16") and fit 2.1mm power plugs snugly and securely. Perfect for adding a power connector to your project enclosure. We like this jack in particular for its long body (so you can use it on thicker...

In Stock
[Buy Now](https://www.adafruit.com/product/610)
[Related Guides to the Product](https://learn.adafruit.com/products/610/guides)
### Mini Panel Mount SPDT Toggle Switch

[Mini Panel Mount SPDT Toggle Switch](https://www.adafruit.com/product/3221)
This or that, one or the other, perhaps or perhaps not! So hard to make decisions these days without feeling like you're just going back and forth constantly. Deciding whether or not to use this mini toggle switch? That's the easiest decision you'll make all day!

This...

In Stock
[Buy Now](https://www.adafruit.com/product/3221)
[Related Guides to the Product](https://learn.adafruit.com/products/3221/guides)
### 12V 5A switching power supply

[12V 5A switching power supply](https://www.adafruit.com/product/352)
This is a beefy switching supply, for when you need a lot of power! It can supply 12V DC up to 5 Amps, running from 110V or 220V power (the plug it comes with is for US/Canada/Japan but you can use any plug adapter for your country, or just replace the cable with a standard 'figure-8'...

In Stock
[Buy Now](https://www.adafruit.com/product/352)
[Related Guides to the Product](https://learn.adafruit.com/products/352/guides)
### 3.8 / 1.3mm or 3.5 / 1.1mm to 5.5 / 2.1mm DC Jack Adapter Cable

[3.8 / 1.3mm or 3.5 / 1.1mm to 5.5 / 2.1mm DC Jack Adapter Cable](https://www.adafruit.com/product/2788)
This convenient **3.8mm/1.3mm or 3.5mm/1.1mm or 1.3mm DC to 2.1mm DC adapter cable&nbsp;** lets you plug one of our [solar panels](https://www.adafruit.com/categories/67) into&nbsp;[our optimized Solar Lithium Ion/Polymer...](http://www.adafruit.com/products/390)

In Stock
[Buy Now](https://www.adafruit.com/product/2788)
[Related Guides to the Product](https://learn.adafruit.com/products/2788/guides)

## Related Guides

- [Adafruit Feather M4 Express](https://learn.adafruit.com/adafruit-feather-m4-express-atsamd51.md)
- [NeoPixel Bike Light](https://learn.adafruit.com/neopixel-headlight.md)
- [Using LoraWAN and The Things Network with CircuitPython](https://learn.adafruit.com/using-lorawan-and-the-things-network-with-circuitpython.md)
- [CircuitPython 101: Working with Lists, Iterators and Generators](https://learn.adafruit.com/circuitpython-101-list-and-things-iterators-generators.md)
- [Simple Vertical Wordclock](https://learn.adafruit.com/vertical-wordclock.md)
- [Mu Keyboard Shortcut Cheat Sheets](https://learn.adafruit.com/mu-keyboard-shortcut-cheat-sheets.md)
- [Spinning Disc Step Sequencer](https://learn.adafruit.com/spinning-disc-step-sequencer.md)
- [NeoPixel Run LED Arcade Game](https://learn.adafruit.com/pixel-chase-game.md)
- [Computer Space Mini Arcade](https://learn.adafruit.com/computer-space-mini-arcade.md)
- [MIDI Laser Harp with Time of Flight Distance Sensors](https://learn.adafruit.com/midi-laser-harp-time-of-flight-sensors.md)
- [Currying in CircuitPython](https://learn.adafruit.com/partials-in-circuitpython.md)
- [Touch Deck: DIY Customizable TFT Control Pad](https://learn.adafruit.com/touch-deck-diy-tft-customized-control-pad.md)
- [Audio Prank Gift Box](https://learn.adafruit.com/shake-up-a-gift-box.md)
- [Prop-Maker Keyblade](https://learn.adafruit.com/propmaker-keyblade.md)
- [Multi-tasking with CircuitPython](https://learn.adafruit.com/multi-tasking-with-circuitpython.md)
- [CircuitPython OLED Watch Clock](https://learn.adafruit.com/circuitpython-oled-watch.md)
