touchmysound
Published © CC BY-NC-SA

Automatizing Percussion with Solenoids: "The Sound Compass"

A very simple circuit to activate four timed solenoids for automated percussion: in this case hitting resonant plastic pipes.

EasyFull instructions provided2,800

Things used in this project

Hardware components

Adafruit solenoid 24V
×4
SparkFun Resistor 1k ohm
×4
Diode 1N4004
×4
Adafruit Transistor TIP120
×4
Breadboard (generic)
Breadboard (generic)
×1
Power Supply 24V
×1
Arduino UNO & Genuino UNO
Arduino UNO & Genuino UNO
×1

Software apps and online services

Arduino IDE
Arduino IDE
MIDI-to_arduin

Story

Read more

Schematics

Four solenoids 24V, schematics

Automatize four solenoids with Arduino
Soundcompass schem t0ewhdqpjj

Code

"The Sound Compass"

Arduino
Example of a short pattern.
void setup(){
pinMode(2, OUTPUT);
pinMode(4, OUTPUT);
pinMode(7, OUTPUT);
pinMode(8, OUTPUT);
 
doPerformance();
}
 
void loop(){
}
 
void doPerformance(){
 
delay(10);
digitalWrite(2,HIGH);
digitalWrite(4,HIGH);
digitalWrite(7,HIGH);
digitalWrite(8,HIGH);
delay(984);
digitalWrite(2,LOW);
digitalWrite(4,LOW);
digitalWrite(7,LOW);
digitalWrite(8,LOW);
delay(299);
digitalWrite(2,HIGH);
delay(740);
digitalWrite(2,LOW);
delay(485);
digitalWrite(8,HIGH);
delay(551);
digitalWrite(8,LOW);
delay(165);
digitalWrite(8,HIGH);
delay(354);
digitalWrite(8,LOW);
delay(1);
digitalWrite(8,HIGH);
delay(344);
digitalWrite(4,HIGH);
delay(103);
digitalWrite(8,LOW);
delay(24);
digitalWrite(4,LOW);
delay(283);
digitalWrite(8,HIGH);
delay(747);
digitalWrite(8,LOW);
delay(318);
digitalWrite(8,HIGH);
delay(683);
digitalWrite(8,LOW);
delay(1);
digitalWrite(8,HIGH);
delay(58);
digitalWrite(8,LOW);
delay(493);
digitalWrite(4,HIGH);
delay(32);
digitalWrite(8,HIGH);
}

Credits

touchmysound

touchmysound

1 project • 13 followers
Alessandro Perini's artistic production ranges from audiovisual and light-based works to net-art, land-art and vibration-based works.
Contact
Thanks to jts3k.

Comments