Arduino Fruit Machine - LED Displays
I bought an old fruit machine (slot machine) from eBay and stripped it down into separate components.
In this video, I'll show you how to use the 1.8" 7-segment common cathode LED displays (http://www.farnell.com/datasheets/99300.pdf), which were used to display the cash payout value at the top of the machine. Using a handful of cheap components, it takes just three GPIO pins on the Arduino to control these LEDs to display any value you want.
These are nice big, bright displays but, since they have a forward voltage of 5.55V, they can't be powered by simply writing a digitalWrite(HIGH) from an Arduino pin. Instead, I'll be using two transistor array chips:
- A UDN2981 will act as a current *source* to the anodes of the appropriate segments
- A ULN2803 will provide a current *sink* from the common cathodes of each display
The outputs on these two chips will be set by two, daisy-chained 74HC595 shift registers. Using just three pins on the Arduino (latch, clock, and data), a single byte value will be sent to each register, where the '1' bits in the first byte determine the display cathodes to connect to ground, and the '1' bits in the second byte determine the segment anodes to connect to the 12V current source. By iterating over the displays quickly and setting the appropriate segments on/off in sequence ("multiplexing"), persistence of vision will make it possible to display any value across the displays.
Download the wiring diagram and the Arduino code from: https://github.com/playfultechnology/arduino-fruitmachine
For more projects, please check out https://www.patreon.com/playfultech
Видео Arduino Fruit Machine - LED Displays канала Playful Technology
In this video, I'll show you how to use the 1.8" 7-segment common cathode LED displays (http://www.farnell.com/datasheets/99300.pdf), which were used to display the cash payout value at the top of the machine. Using a handful of cheap components, it takes just three GPIO pins on the Arduino to control these LEDs to display any value you want.
These are nice big, bright displays but, since they have a forward voltage of 5.55V, they can't be powered by simply writing a digitalWrite(HIGH) from an Arduino pin. Instead, I'll be using two transistor array chips:
- A UDN2981 will act as a current *source* to the anodes of the appropriate segments
- A ULN2803 will provide a current *sink* from the common cathodes of each display
The outputs on these two chips will be set by two, daisy-chained 74HC595 shift registers. Using just three pins on the Arduino (latch, clock, and data), a single byte value will be sent to each register, where the '1' bits in the first byte determine the display cathodes to connect to ground, and the '1' bits in the second byte determine the segment anodes to connect to the 12V current source. By iterating over the displays quickly and setting the appropriate segments on/off in sequence ("multiplexing"), persistence of vision will make it possible to display any value across the displays.
Download the wiring diagram and the Arduino code from: https://github.com/playfultechnology/arduino-fruitmachine
For more projects, please check out https://www.patreon.com/playfultech
Видео Arduino Fruit Machine - LED Displays канала Playful Technology
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Durable Cotton Canvas PaperCreating Dynamic Character Interactions for Escape RoomsBuilding an Escape Room-In-A-Box - Part TwoDIY Arduino Quiz Buzzer SystemGlobal Game Jam 2018 - Day 1The Tea-Master 3000Building an Escape Room-In-A-Box - Part FourBuild Your Own Knife Throwing Escape Room Carnival GameEscape Room Puzzle Tutorial - The "Fortune Teller's Crystal Ball"Creating a 3D printed electronic sensor mount using OpenSCADGlobal Game Jam 2018 - Day 2Escape Room fun with Infrared and Arduino"Smooth Operator" - Creating a Playful Telephony Network with Asterisk - Part 2Make a remote-control haunted flashlight!Colour-changing RGB Arcade ButtonsIntroducing "Puzzle Pieces"! A channel for Escape Room puzzle ideas and tutorialsEscape Room Design Tutorial - "Blow the Bloody Doors Off!"Global Game Jam 2018 - Day 0Cover Up! / Shine On! Escape Room PuzzleBuilding an Escape Room-In-A-Box - Part SixEscape Room Tech Puzzle Tutorial - "Valves And Gauges"