How To Make Diy Slot Machine Arduino

Introduction: Arduino Slot Machine

One of my earlier Instructables details a small slot machine that I built to entertain my grandkids. I used my favorite PIC microcontroller to run it but lately I’ve been on an Arduino kick so I thought I would make a version for the few people who may not be PIC microcontroller/assembly language fans. Ok, so maybe it’s more than a few.

Jul 14, 2017 - Explore Arboret Arboret's board 'Plot Machine', followed by 292 people on Pinterest. See more ideas about drawing machine, diy cnc, arduino. Put the Arduino MKR1000 on your Washing Machine. The Arduino code connects the board to internet, and loads the Cayenne library. After, every 30 seconds, controls the tilt switch sensor. If the washing machine starts, and moves the sensor, the sensor value begins on. The first step has been enabled. The system controls for ever the sensor.

I won’t rehash the details as to the components and physical build of the slot machine. You can see those pictures and details in my previous Instructable. In essence, everything is the same except that the Arduino takes the place of the PIC.

Step 1: Hardware

The schematic is shown above. Again, it is the same as the original PIC version except for the swap of the Arduino for the PIC. I also deleted the external pull-up resistor on the switch input because the Arduino internal pull-up is used. I use a large character 1601 display but the software works just fine with a standard 1602.

Step 2: Software

How

How To Make Diy Slot Machine Arduino Uno

The software is pretty much a direct translation of the PIC assembly routines into C++/Arduino commands. The main routine just loops continuously until the button on the coin switch is pressed. While the main routine is looping, it is incrementing the variable “Random”. It will simply overflow back to zero the cycle after it hits 255. When the “Spin” routine is called it just goes through a list of checks on the value in “Random” to determine if a winner has occurred. The odds are set at 8:1 but it can be easily changed by modifying the winning values in “Spin”. If a matching value is not found, then the “Loser” routine displays digits loosely based on the value of “Random”. A test is done to ensure that an accidental match of digits doesn’t occur.

As in the original PIC software, the “Clickit” routine simulates the sound of the wheels turning. If a winning value is found, then the LEDs alternately flash and a trigger pulse is sent to the ISD1820 Sound Module. You can record whatever short message you want to play. Mine says “Winner, winner, chicken dinner”. The grandkids are young enough that they actually think that’s funny.

Part way through the LED flashing and message playing the trap door will be opened. It is controlled by a simple 12-volt solenoid latch that is driven by a generic power N-FET transistor. The coin door must be manually pushed back up to latch it again. That’s it for this post. Check out my other Instructables. If you are interested in PIC projects take a look at my website: www.boomerrules.wordpress.com

Be the First to Share

Recommendations

A Bluetooth ESP32 TFT + Touch Macro Keypad) in Microcontrollers

How To Make Arduino Schematic

75 5.6K
1 302 15K
How to make diy slot machine arduino projects
94 10K
  • Battery Powered Contest

  • Plywood Challenge

  • Plastic Contest

For an easy plotter design that you can build with only simple hand tools, be sure to check out this tiny project from Mr Innovative. The machine features a pair of stepper and lead screw assemblies to maneuver a pen in an X/Y plane, along with a clever string and servo setup to handle retraction.

An Arduino Nano and two L293D ICs mounted to a custom PCB are used to control the device, though a breadboard could certainly substitute for the PCB in a pinch. Drawings are translated into the proper format via Inkscape and Processing.

How To Make Diy Slot Machine Arduino Step By Step

More details on the miniature machine, including code, can be found in Mr Innovative’s write-up.

Diy Arduino Board

Categories:ArduinoCNCFeatured