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.
arduino enclosure Video
arduino enclosure news
Posted on Sunday October 13, 2019Solar-Powered IoT Sensors Could Improve Nation’s Infrastructure ENGINEERING.com … Continue Reading »
Posted on Friday October 04, 2019Wio Lite RISC-V WiFi Board with ESP8266 Module Launches for $6.9 CNX Software … Continue Reading »
Posted on Thursday October 03, 2019Free New Article: TMC2160 Motor Driver Board Elektor … Continue Reading »
arduino enclosure Social
🔬 Now that you’ve gotten your feet wet, dive into the kit and enjoy all nine experiments. Order yours today: http://bit.ly/2MnQ7fr
Originally posted 2016-05-08 16:00:42.