Ir para conteúdo
3DFinder
Entrar

Você está no 3DFinder

Buscamos em Thingiverse, MakerWorld e Printables ao mesmo tempo para te dar o melhor de cada uma.

Buscar mais como este
Modelo 3D MakerBot Percussion  por bubbly no Thingiverse

Descrição

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:

Instruções

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; }
} }

Thingiverse

MakerBot Percussion

16
Curtidas
0
Downloads
5
Coleções
Tags
music robot solenoid
Licença All Rights Reserved
Ver no Thingiverse (abre em nova aba)