You're on 3DFinder
We search Thingiverse, MakerWorld, and Printables at once so you get the best of each.
Description
Calling all cars, I need some help! I've uploaded the housing for a solonoid, (link). If it works, we'll have a really awesome solenoid drumbeat to control through gcode to compliment your Makerbot music. The goal is to make it so that as your playing music on your machine with the steppers, a solenoid can hammer out the beats. I've been having fun working on it, but I've hit a wall.
Here's where I'm at:
Instructions
Here is the arduino code that I'm using.
//This code was write by Haeyoung Kim and Zeeshan Mughal.
int pushpin1 = 4; int pushpin2 = 5; int outputPin=13; int val1 = 0; int val2 = 0; int led = 12; boolean run1 = false; boolean run2 = false;
int extruderIn = 8;
void setup()
{
pinMode (pushpin1,INPUT);
pinMode (pushpin2,INPUT);
pinMode (extruderIn,INPUT);
pinMode (led, OUTPUT);
pinMode (outputPin, OUTPUT);
Serial.begin(9600);
Serial.println("start");
}
void loop () {
val1 = digitalRead (pushpin1);
val2 = digitalRead (pushpin2);
if (extruderIn == LOW) {
if (val2 == LOW)
run1 =false;
if (val1 == LOW || run1 == true) {
digitalWrite (led, LOW);
digitalWrite (outputPin,HIGH);
delay(100);
Serial.println("push pin1");
digitalWrite (outputPin,LOW);
delay(100);
run1 = true;
} else {
digitalWrite (led, HIGH);
digitalWrite (outputPin,HIGH);
delay(500);
digitalWrite (outputPin,LOW);
Serial.println("push pin2");
delay(2000);
run1 = false;
}
}
}
Like this model? Create a free account to save your favorites and come back to them later.
Create account