Wheel of Fortune
thingiverse
https://youtu.be/K1Ia0j596d0 This device is definitely not for the faint of heart. Just push the button and watch as the wheel spins to a completely random position. If you're really lucky, M&M's will come pouring out. The circuit is designed specifically for a 5V stepper motor that draws no more than 1 Amp. A basic Arduino sketch looks like this: //Wheel of Fortune include Servo myservo; int pos = 0; int L1 = 0; //left control wires int L2 = 1; int L3 = 2; //right control wires int L4 = 3; int trigger = 0; int d=5; //delay time int tr = 0; int r = 0; int x = 0; void setup() { myservo.attach(11); pinMode(L1, OUTPUT); pinMode(L2, OUTPUT); pinMode(L3, OUTPUT); pinMode(L4, OUTPUT); pinMode(trigger, INPUT); } void loop(){ tr = analogRead(trigger); if(tr > 500){ for (pos = 0; pos < 180; pos++) { myservo.write(pos); delay(d); } for (pos = 180; pos >= 0; pos--) { myservo.write(pos); delay(d); } myservo.detach(); r++; x=r; if(r>=10) { digitalWrite(L1, HIGH); // set the digital pin 13 high digitalWrite(L2, LOW); digitalWrite(L3, HIGH); digitalWrite(L4, LOW); delay(1000); digitalWrite(L1, LOW); digitalWrite(L2, HIGH); digitalWrite(L3, LOW); digitalWrite(L4, HIGH); r=0; myservo.attach(11); //attach the servos to the motor } if (digitalRead(trigger) == HIGH){ L1 = L3; L2=L4; x=x+5; L1 = x; } else { L1 = 0; L2 = 1; } delay(d); } }
With this file you will be able to print Wheel of Fortune with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on Wheel of Fortune.