ebook img

Arcade Bonnet Controller PDF

39 Pages·2017·1.46 MB·English
by  
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Arcade Bonnet Controller

Arcade Bonnet Controller Created by Ruiz Brothers https://learn.adafruit.com/arcade-bonnet-controller Last updated on 2022-12-01 02:54:07 PM EST ©Adafruit Industries Page 1 of 30 Table of Contents Overview 5 • Retro Game Controller • Adafruit Arcade Bonnet • Prerequisite Guide • Parts & Components • Cool Tools! Circuit Diagram 8 • Circuit Diagram • Mini Joystick Potentiometers • Extra Buttons Software 9 • Buttons and Joysticks • Audio Amplifier • Advanced Usage - Other Inputs 3D Printing 12 • Game Controller Enclosure • Case Design • Dual Extrusion Wiring Mini Joystick 13 • Joystick Wires • Heat Shrink • Prep Wires • Prep Joystick • Connect Wires to Joystick • Connecting Wires to Joystick • Connecting Joystick to Arcade Bonnet • Analog Joystick Wiring • Wire Joystick to Arcade Bonnet • Wired Analog Joystick and Arcade Bonnet Arcade Bonnet Headers 17 • Tack Header to Arcade Bonnet • Solder Headers to Arcade Bonnet • Arcade Bonnet Headers Button Wiring 18 • Wiring More Buttons • Prep Button Wires • Extra Button Pins • Solder Wires to Bonnet • Arcade Bonnet Wired Assembly 21 • Install M3 Standoffs • Standoffs for Raspberry Pi • Installing Pi Standoffs • Secure Raspberry Pi ©Adafruit Industries Page 2 of 30 • Install Side Panels • Install Front Panel Buttons • Quick Connects • Quick Connect Arcade Bonnet • Install Buttons to Cover • Install Joystick • Connect Buttons • Connect Front Panel Buttons • Install Arcade Bonnet to Raspberry Pi • Close It Up • Secure Cover • Assembled Case ©Adafruit Industries Page 3 of 30 ©Adafruit Industries Page 4 of 30 Overview Retro Game Controller In this guide, we'll learn how to wire up a Mini Analog Joystick to the Adafruit Arcade Bonnet for Raspberry Pi. Most of the arcade buttons plug into the Arcade Bonnet with quick connect wires – Making it much easier to put together a retro arcade controller or cabinet. Adafruit Arcade Bonnet This cute little bonnet is designed for quickly adding arcade buttons to your Raspberry Pi. It has six JST connectors that are compatible with our arcade button quick connect wires, so no soldering required. There's also dedicated pins for wiring up an analog joystick and an 8-way switch joystick. Prerequisite Guide I suggest walking through the following guides linked below to get familiar with the components. If your new to soldering and electronics, these guides will help you get started! • Collin's Lab – Soldering () • Adafruit Arcade Bonnet () ©Adafruit Industries Page 5 of 30 Parts & Components A nice handful of parts and components used to build this project. Always a good idea to have more on hand in case something is damaged or burns out! 1 x Raspberry Pi 3 https://www.adafruit.com/product/ Model B ARMv8 with 1G RAM 3055 1 x Adafruit Arcade Bonnet https://www.adafruit.com/product/3422 Raspberry Pi Hat with JST Connectors 1 x Mini Analog Joystick https://www.adafruit.com/product/3102 10K Potentiometers 8 x Mini LED Arcade Buttons https://www.adafruit.com/product/3432 24mm Blue, red, yellow, white or green 1 x Black Nylon Screw and Stand-off Set https://www.adafruit.com/product/ M2.5 Thread 3299 1 x Quick Connect Wire https://www.adafruit.com/product/1152 Arcade/Button – Set of 10 pairs 6 x M3x55 M3 Standoffs https://www.amazon.com/gp/product/ Female Thread Brass Standoff Spacer 55mm High B00NQ9MQYK/ ©Adafruit Industries Page 6 of 30 12 x M3 machine screws https:// Phillips Flat Head Machine Screw A2 SS - M3 x .5 x 6MM www.albanycountyfasteners.com/3- MM-x-5-Phillips-Flat-Head-Machine- Screw-p/1011-1006.htm Cool Tools! These things really do help make building the project smoothly. You don't need them all of them, but I recommend them. 1 x Wire Strippers https://www.adafruit.com/product/527 Hakko Professsional Quality 20-30 AWG Wire Strippers - CSP-30-1 1 x Wire Cutters https://www.adafruit.com/product/152 Flush diagonal cutters - CHP170 1 x Soldering Iron https://www.adafruit.com/product/180 Adjustable 30W 110V soldering iron - XY-258 110V 1 x Panavise https://www.adafruit.com/product/151 Panavise Jr. - PV-201 1 x Helping Third Hands https://www.adafruit.com/product/291 Helping Third Hand Magnifier W/Magnifying Glass Tool - MZ101 1 x 30AWG Wire https://www.adafruit.com/product/2051 Silicone Cover Stranded-Core Wire - 30AWG in Various Colors 1 x Solder Wire https://www.adafruit.com/product/734 Solder Spool - 1/4 lb SAC305 RoHS lead-free / 0.031" rosin-core - 0.25 lb / 100 g 1 x Heat Shrink Tubing https://www.adafruit.com/product/1649 Multi-Colored Heat Shrink Pack - 3/32" + 1/8" + 3/16" Diameters 1 x Mounting Putty Tack https://www.amazon.com/dp/ Loctite Fun-Tak Mounting Putty 2-Ounce B001F57ZPW/ ©Adafruit Industries Page 7 of 30 Circuit Diagram Circuit Diagram Use the diagram above to reference the wired connections. The length of wires are not exact, this is just a visual representation of the circuit. The Adafruit Arcade Bonnet has six JST connectors for quick-connect wires. To add more buttons and a mini analog joystick, we'll need to solder the wire connections. ©Adafruit Industries Page 8 of 30 Mini Joystick Potentiometers This joystick uses 2x 10k potentiometers to emulate X&Y axes. They are wired just like two regular potentiometers! The terminals in the center is wired to signal while the left and right are wired to ground and +3V. The Bonnet will convert the analog signal to digital signal for you Extra Buttons For the Start and Select buttons, I'm wiring two buttons to the Left and Right pins on the 4-way stick section. Each button connects to an available ground pin, located on either side of the Adafruit Arcade Bonnet. Note that within Retropie you can re-assign buttons to whatever you like, so it doesn't matter that the Bonnet silkscreen says "left/right" - in the software just set those buttons to Start/Select Software Software installation for the Arcade Bonnet requires an internet connection. That’s a frequent topic already covered in other Pi getting-started guides, so we’ll assume here that your Pi is already booted and networked, running Raspbian or a gaming- ready OS like RetroPie. You may find this easiest if ssh is enabled on the Pi, and then log in with a terminal app. This lets you copy-and-paste the commands that follow, as they’re very exact about spelling. Support for the buttons and the audio amplifier are installed separately. If you don’t need the bonnet’s speaker support, you can just skip that step and use the regular headphone jack or HDMI audio in that case. Buttons and Joysticks Enter the following two lines to install support for the six button connectors and the 4WAY and ANALOG joystick connectors: ©Adafruit Industries Page 9 of 30 curl https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/ master/arcade-bonnet.sh >arcade-bonnet.sh sudo bash arcade-bonnet.sh When run, this script will offer a couple of options: • Disable overscan? If you answer “Y” this removes the black border around the screen (common on HDMI monitors). Takes effect on next boot. • Install gpio-halt utility? Linux-based systems like the Raspberry Pi don’t like it when you just switch off power…there’s a specific shutdown process, else the SD card may get corrupted. The gpio-halt tool lets you add one more button between ground and any unused GPIO pin (not one of the six button sockets) to initiate an orderly shutdown. Gaming OSes like RetroPie already include a shutdown command among their menu options, so you may not need this. When the script finishes you’ll be asked whether to reboot. Answer “N” if you plan on installing audio support, and follow the next section (“Audio Amplifier,” below). If you need to change the key assignments: edit the file /boot/arcadeBonnet.py say with sudo nano /boot/arcadeBonnet.py Near the top of the code you’ll see this table: '#' lines are human comments and do nothing for the code. The first six actual elements in the table correspond to the six button inputs (labeled “1A” through “1F” on the Bonnet). Then two “0” values (these do nothing, but need to be there, don’t delete them) and another 8 elements corresponding to the 4-way and analog joystick/ d-pad inputs. ©Adafruit Industries Page 10 of 30

Description:
Adafruit Industries https://learn.adafruit.com/arcade-bonnet-controller . Linux-based systems like the Raspberry Pi don't like it when you just switch off
See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.