Coin / Chip / Money dispenser - Arduino
- Made to order — 3D printed after you buy
- Free shipping on orders over $25
- Quality checked before it ships
- Questions? Contact us · Returns
I am an English Teacher in Thailand. I give out “Teacher Michael Dollars” to my students for participating in class. They can then “purchase” different 3D printed items that I make. I am in the process of making an AI Robot to have English conversations and play games with my students. This is one part of the process of making the robot.
I have an Arduino Mega hooked up to my laptop at the moment but it can work independently with slightly different code and a button, sensor, etc… and with practically any microcontroller. I am using an MG-90 Servo but the SG-90 would work just as well. I tweaked the Fusion 360 file to make sure it was a perfectly snug fit. It is so snug, that I don't think it needs any screws to hold it in place. If you have any issues, just wiggle it around (or use a small file) and it will fit.
This would probably be great for a casino, game night, using chips as well. I have included the sketch of the right size chip. Just add your own text and paint with Bambulab.
I like to use PETG filament for working parts like this. PLA would probably be fine.
Here is a short youtube video showing how it works. I am using the Arduino IDE Serial Monitor:
Here is the simple code. Press the number is the serial monitor and press enter. :
void loop() {
if (Serial.available() > 0) {
String input = Serial.readStringUntil('\n'); // read the input from serial monitor
input.trim(); // remove any leading or trailing whitespace
Serial.print("Received input: ");
Serial.println(input);
int cycles = input.toInt(); // convert input to integer
Serial.print("Number of cycles: ");
Serial.println(cycles);
for (int i = 0; i < cycles; i++) {
myServo.write(75); // move servo to 75 degrees
delay(500); // wait for half a second
myServo.write(180); // move servo back to 180 degrees
delay(500); // wait for half a second
}
}
}
Design by Mbuff1234567771 on MakerWorld (license: BY).