Things used in this project

Hardware components:
Adafruit solenoid 24V
×4
SparkFun Resistor 1k ohm
×4
Diode 1N4004
×4
Adafruit Transistor TIP120
×4
12002 04
Breadboard (generic)
×1
Power Supply 24V
×1
A000066 iso both
Arduino UNO & Genuino UNO
×1
Software apps and online services:
Ide web
Arduino IDE
MIDI-to_arduin

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

0d17eeb33fb21a3fad7cab28e40041d6
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.

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Sign up / LoginProjectsPlatformsTopicsContestsLiveAppsBetaBlog