MAKE THIS BUTTON BOX | 32 FUNCTION w ENCODERS

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
to make this 32 function button box we will require various toggle switches encoders buttons a pro micro a USB cable and enclosure to housing electrical components toggle switches come in a variety of types always on or always off a momentary push on with a spring return to off a 3-way momentary tool has three positions and used to control two functions Center is off then either side is on these basic momentary push buttons are always off normally open and momentary push on this encoder has five pins on the bottom the two pins are normally open and used to either momentary push on the three group pins are used for sending a signal to determine the location and direction of the encoder as it turns left or right take some measurements of the box and design a layout for the buttons and switches this can be designed on paper by placing the buttons on the box or designed in Photoshop once happy with a design and layout place the nuts of the switches and mark the positions with a pair of calipers measure the switches and determine the hole size to be drilled once the holes are drilled to the correct size wrap the front panel with a carbon vinyl fit the buttons and switches to the front panel and tighten down the nuts next fit the knobs to the encoders and tighten the small screw to hold these in position to wire the buttons to the Arduino board we will create a 5 by 5 matrix grid the matrix will be split up into two main groups the first group will contain pin a3 a2 a1 a0 and 15 the second group will contain pins 14 16 10 9 and 8 each button on the matrix will use one pin on the pro micro board from each of the groups for example the first button will use pin a3 and 14 the second button is connected to pin a3 and pin 16 the third button would then be connected to pins a3 and 10 this method will continue along the line all the buttons will use one pin on the pro marker board from each group creating the 5 by 5 matrix grid as the encoders also have a push button function we will use the last row on the matrix grid and allocate these to the encoders the encoders momentary push function will be wired to pins 15 and 14 for the first encoder 15 and 16 for the second encoder 15 and 10 for the third encoder and 15 and 9 for the fourth encoder cut lengths of wire and solder to one of the terminals for the first five switches then solder this wire to pin a3 on the board continue this process and complete the first group that will include the a3 a2 a1 a0 and fifteen pins following the path from pin a3 wired to the five buttons in a two wire to the two toggles and one button in a one to the next two toggles and button 3-way tools will use two buttons each from the matrix this with one more button will make the total of five for pin a1 and the same for pin a2 this is the path of pin a zero to each of the five buttons and finally pin 15 wire to one side of the push-button function of the four encoders to complete the group following the same method used for the first group begin work on soldering the buttons for the second group which includes pins 14 16 10 nine and eight to complete the matrix grid - why the rotational function of the encoders each encoder will firstly need the center pin wired to the ground on the pro micro board solder one wire to the center pin on each encoder then back into the ground pin on the board the pins either side of the center pin are used for sending the signal these need to be wired to TX and rx for the first encoder the second encoder two pins 2 and pins 3 bird encoder 2 pins 4 and 5 and the fourth encoder - pin 6 and 7 solder these wires onto the encoders and then on to the border to minimize the damage on the USB cable place the cable through a rubber grommet and then feed the cable through the hole on the back of the box then push the rubber grommet into place tie a small knot in the USB cable to prevent it accidentally being pulled out from the box plug the USB cable into the pro micro board and locate a position to mount it use some hot glue or double-sided tape to hold it in place next close the box and screw down the front plate plug in the USB cable to a PC and upload and install the button box sketch to the board once the sketch is loaded it will stay stored even when the box is disconnected from the USB next check the function of the box and then map the buttons ingame to your preference [Music] [Music]
Info
Channel: amstudio
Views: 2,144,992
Rating: undefined out of 5
Keywords: button, box, sim, racing, diy, truck simulator, ats, assetto corsa, dirt rally, encoders, arduino project, project cars, PC, simulator, button box, sim racing button box, diy simulator, JoyToKey
Id: Z7Sc4MJ8RPM
Channel Id: undefined
Length: 7min 38sec (458 seconds)
Published: Sun Aug 27 2017
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.