{"product_id":"coin-chip-money-dispenser-arduino","title":"Coin \/ Chip \/ Money dispenser - Arduino","description":"\u003cp\u003eI 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.\u003c\/p\u003e\u003cp\u003e \u003c\/p\u003e\u003cp\u003eI 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.\u003c\/p\u003e\u003cp\u003e \u003c\/p\u003e\u003cp\u003eThis 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. \u003c\/p\u003e\u003cp\u003e \u003c\/p\u003e\u003cp\u003eI like to use PETG filament for working parts like this. PLA would probably be fine. \u003c\/p\u003e\u003cp\u003e \u003c\/p\u003e\u003cp\u003eHere is a short youtube video showing how it works. I am using the Arduino IDE Serial Monitor: \u003c\/p\u003e\u003cfigure class=\"media\"\u003e\u003coembed url=\"https:\/\/www.youtube.com\/shorts\/3J5JxphjfBs\"\u003e\u003c\/oembed\u003e\u003c\/figure\u003e\u003cp\u003eHere is the simple code. Press the number is the serial monitor and press enter. :\u003c\/p\u003e\u003cp\u003e\u003cspan style=\"color: #0ca1a6\"\u003evoid\u003c\/span\u003e\u003cspan style=\"color: #dae3e3\"\u003e \u003c\/span\u003e\u003cspan style=\"color: #f39c12\"\u003eloop\u003c\/span\u003e\u003cspan style=\"color: #dae3e3\"\u003e() {\u003c\/span\u003e\u003c\/p\u003e\u003cp\u003e\u003cspan style=\"color: #dae3e3\"\u003e  \u003c\/span\u003e\u003cspan style=\"color: #c586c0\"\u003eif\u003c\/span\u003e\u003cspan style=\"color: #dae3e3\"\u003e (\u003c\/span\u003e\u003cspan style=\"color: #f39c12\"\u003eSerial\u003c\/span\u003e\u003cspan style=\"color: #dae3e3\"\u003e.\u003c\/span\u003e\u003cspan style=\"color: #f39c12\"\u003eavailable\u003c\/span\u003e\u003cspan style=\"color: #dae3e3\"\u003e() \u0026gt; \u003c\/span\u003e\u003cspan style=\"color: #7fcbcd\"\u003e0\u003c\/span\u003e\u003cspan style=\"color: #dae3e3\"\u003e) {\u003c\/span\u003e\u003c\/p\u003e\u003cp\u003e\u003cspan style=\"color: #dae3e3\"\u003e    String input = \u003c\/span\u003e\u003cspan style=\"color: #f39c12\"\u003eSerial\u003c\/span\u003e\u003cspan style=\"color: #dae3e3\"\u003e.\u003c\/span\u003e\u003cspan style=\"color: #f39c12\"\u003ereadStringUntil\u003c\/span\u003e\u003cspan style=\"color: #dae3e3\"\u003e('\u003c\/span\u003e\u003cspan style=\"color: #7fcbcd\"\u003e\\n\u003c\/span\u003e\u003cspan style=\"color: #dae3e3\"\u003e');\u003c\/span\u003e\u003cspan style=\"color: #7f8c8d\"\u003e  \/\/ read the input from serial monitor\u003c\/span\u003e\u003c\/p\u003e\u003cp\u003e\u003cspan style=\"color: #dae3e3\"\u003e    \u003c\/span\u003e\u003cspan style=\"color: #f39c12\"\u003einput\u003c\/span\u003e\u003cspan style=\"color: #dae3e3\"\u003e.\u003c\/span\u003e\u003cspan style=\"color: #f39c12\"\u003etrim\u003c\/span\u003e\u003cspan style=\"color: #dae3e3\"\u003e();\u003c\/span\u003e\u003cspan style=\"color: #7f8c8d\"\u003e  \/\/ remove any leading or trailing whitespace\u003c\/span\u003e\u003cbr\u003e \u003c\/p\u003e\u003cp\u003e\u003cspan style=\"color: #dae3e3\"\u003e    \u003c\/span\u003e\u003cspan style=\"color: #f39c12\"\u003eSerial\u003c\/span\u003e\u003cspan style=\"color: #dae3e3\"\u003e.\u003c\/span\u003e\u003cspan style=\"color: #f39c12\"\u003eprint\u003c\/span\u003e\u003cspan style=\"color: #dae3e3\"\u003e(\u003c\/span\u003e\u003cspan style=\"color: #7fcbcd\"\u003e\"Received input: \"\u003c\/span\u003e\u003cspan style=\"color: #dae3e3\"\u003e);\u003c\/span\u003e\u003c\/p\u003e\u003cp\u003e\u003cspan style=\"color: #dae3e3\"\u003e    \u003c\/span\u003e\u003cspan style=\"color: #f39c12\"\u003eSerial\u003c\/span\u003e\u003cspan style=\"color: #dae3e3\"\u003e.\u003c\/span\u003e\u003cspan style=\"color: #f39c12\"\u003eprintln\u003c\/span\u003e\u003cspan style=\"color: #dae3e3\"\u003e(input);\u003c\/span\u003e\u003cbr\u003e \u003c\/p\u003e\u003cp\u003e\u003cspan style=\"color: #dae3e3\"\u003e    \u003c\/span\u003e\u003cspan style=\"color: #0ca1a6\"\u003eint\u003c\/span\u003e\u003cspan style=\"color: #dae3e3\"\u003e cycles = \u003c\/span\u003e\u003cspan style=\"color: #f39c12\"\u003einput\u003c\/span\u003e\u003cspan style=\"color: #dae3e3\"\u003e.\u003c\/span\u003e\u003cspan style=\"color: #f39c12\"\u003etoInt\u003c\/span\u003e\u003cspan style=\"color: #dae3e3\"\u003e();\u003c\/span\u003e\u003cspan style=\"color: #7f8c8d\"\u003e  \/\/ convert input to integer\u003c\/span\u003e\u003c\/p\u003e\u003cp\u003e \u003c\/p\u003e\u003cp\u003e\u003cspan style=\"color: #dae3e3\"\u003e    \u003c\/span\u003e\u003cspan style=\"color: #f39c12\"\u003eSerial\u003c\/span\u003e\u003cspan style=\"color: #dae3e3\"\u003e.\u003c\/span\u003e\u003cspan style=\"color: #f39c12\"\u003eprint\u003c\/span\u003e\u003cspan style=\"color: #dae3e3\"\u003e(\u003c\/span\u003e\u003cspan style=\"color: #7fcbcd\"\u003e\"Number of cycles: \"\u003c\/span\u003e\u003cspan style=\"color: #dae3e3\"\u003e);\u003c\/span\u003e\u003c\/p\u003e\u003cp\u003e\u003cspan style=\"color: #dae3e3\"\u003e    \u003c\/span\u003e\u003cspan style=\"color: #f39c12\"\u003eSerial\u003c\/span\u003e\u003cspan style=\"color: #dae3e3\"\u003e.\u003c\/span\u003e\u003cspan style=\"color: #f39c12\"\u003eprintln\u003c\/span\u003e\u003cspan style=\"color: #dae3e3\"\u003e(cycles);\u003c\/span\u003e\u003c\/p\u003e\u003cp\u003e \u003c\/p\u003e\u003cp\u003e\u003cspan style=\"color: #dae3e3\"\u003e    \u003c\/span\u003e\u003cspan style=\"color: #c586c0\"\u003efor\u003c\/span\u003e\u003cspan style=\"color: #dae3e3\"\u003e (\u003c\/span\u003e\u003cspan style=\"color: #0ca1a6\"\u003eint\u003c\/span\u003e\u003cspan style=\"color: #dae3e3\"\u003e i = \u003c\/span\u003e\u003cspan style=\"color: #7fcbcd\"\u003e0\u003c\/span\u003e\u003cspan style=\"color: #dae3e3\"\u003e; i \u0026lt; cycles; i++) {\u003c\/span\u003e\u003c\/p\u003e\u003cp\u003e\u003cspan style=\"color: #dae3e3\"\u003e      \u003c\/span\u003e\u003cspan style=\"color: #f39c12\"\u003emyServo\u003c\/span\u003e\u003cspan style=\"color: #dae3e3\"\u003e.\u003c\/span\u003e\u003cspan style=\"color: #f39c12\"\u003ewrite\u003c\/span\u003e\u003cspan style=\"color: #dae3e3\"\u003e(\u003c\/span\u003e\u003cspan style=\"color: #7fcbcd\"\u003e75\u003c\/span\u003e\u003cspan style=\"color: #dae3e3\"\u003e);\u003c\/span\u003e\u003cspan style=\"color: #7f8c8d\"\u003e  \/\/ move servo to 75 degrees\u003c\/span\u003e\u003c\/p\u003e\u003cp\u003e\u003cspan style=\"color: #dae3e3\"\u003e      \u003c\/span\u003e\u003cspan style=\"color: #f39c12\"\u003edelay\u003c\/span\u003e\u003cspan style=\"color: #dae3e3\"\u003e(\u003c\/span\u003e\u003cspan style=\"color: #7fcbcd\"\u003e500\u003c\/span\u003e\u003cspan style=\"color: #dae3e3\"\u003e);\u003c\/span\u003e\u003cspan style=\"color: #7f8c8d\"\u003e         \/\/ wait for half a second\u003c\/span\u003e\u003c\/p\u003e\u003cp\u003e\u003cspan style=\"color: #dae3e3\"\u003e      \u003c\/span\u003e\u003cspan style=\"color: #f39c12\"\u003emyServo\u003c\/span\u003e\u003cspan style=\"color: #dae3e3\"\u003e.\u003c\/span\u003e\u003cspan style=\"color: #f39c12\"\u003ewrite\u003c\/span\u003e\u003cspan style=\"color: #dae3e3\"\u003e(\u003c\/span\u003e\u003cspan style=\"color: #7fcbcd\"\u003e180\u003c\/span\u003e\u003cspan style=\"color: #dae3e3\"\u003e);\u003c\/span\u003e\u003cspan style=\"color: #7f8c8d\"\u003e \/\/ move servo back to 180 degrees\u003c\/span\u003e\u003c\/p\u003e\u003cp\u003e\u003cspan style=\"color: #dae3e3\"\u003e      \u003c\/span\u003e\u003cspan style=\"color: #f39c12\"\u003edelay\u003c\/span\u003e\u003cspan style=\"color: #dae3e3\"\u003e(\u003c\/span\u003e\u003cspan style=\"color: #7fcbcd\"\u003e500\u003c\/span\u003e\u003cspan style=\"color: #dae3e3\"\u003e);\u003c\/span\u003e\u003cspan style=\"color: #7f8c8d\"\u003e         \/\/ wait for half a second\u003c\/span\u003e\u003c\/p\u003e\u003cp\u003e\u003cspan style=\"color: #dae3e3\"\u003e    }\u003c\/span\u003e\u003c\/p\u003e\u003cp\u003e\u003cspan style=\"color: #dae3e3\"\u003e  }\u003c\/span\u003e\u003c\/p\u003e\u003cp\u003e\u003cspan style=\"color: #dae3e3\"\u003e}\u003c\/span\u003e\u003c\/p\u003e\u003cboostme\u003e\u003cboosttitle\u003eBoost Me\u003c\/boosttitle\u003e\u003cboostcontent\u003eI use my printer for my students. Your boost will be appreciated. Thanks!\u003c\/boostcontent\u003e\u003c\/boostme\u003e\u003cp\u003e \u003c\/p\u003e\u003cp\u003eDesign by Mbuff1234567771 on MakerWorld (license: BY).\u003c\/p\u003e","brand":"Mymadmanlab","offers":[{"title":"Default Title","offer_id":67443475677488,"sku":null,"price":24.99,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0987\/0809\/5280\/files\/0_9a1f1d33-ec57-40b6-afdf-a36348427c77.png?v=1785787542","url":"https:\/\/mymadmanlab.com\/products\/coin-chip-money-dispenser-arduino","provider":"Mymadmanlab.com","version":"1.0","type":"link"}