Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| chipkit_ledboard [2015/03/10 17:59] – [Step 3: Building] Joshua Woldstad | chipkit_ledboard [2022/10/04 11:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 50: | Line 50: | ||
| {{ : | {{ : | ||
| - | ===== Step 3: Building ===== | + | ===== Step 3: Building |
| Line 69: | Line 69: | ||
| {{ : | {{ : | ||
| + | |||
| + | |||
| + | ---- | ||
| + | |||
| + | ======Step 4: Building the Stand and Controller ====== | ||
| + | |||
| + | ==== Latches ==== | ||
| + | |||
| + | When connecting the panels together, use three latches per seam, six in total. After figuring out where to put them and trimming the internal spring to reduce the tension, drill screw holes for the larger piece that contained the spring into the panel, just deep enough to not go all the way through the panel. Then, use a rotary tool with a cutoff wheel to trim the screws so that they would not go through the acrylic panel. | ||
| + | |||
| + | For the other piece of the latch, build small blocks out of acrylic to attach them as they mount perpendicular to the panel. Using some acrylic cement and some scrap pieces of acrylic cut to fit the base of the smaller piece of the latch, these blocks will be cemented in place on the back of the panel. Then drilled holes into these blocks and used screws, slightly trimmed this time, to attach the second piece to the adjacent panel. | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | ==== Stand ==== | ||
| + | |||
| + | Now that the panel was finished and working (code development will be in step 5), it needed a stand, which was a simple collapsible design that is nice and compact for shipping. Each stand has four pieces, two legs and two braces. The spacing between the legs for the two smaller panels places them in between the 3rd and 4th LED strip from each side with 4 strips in between them, or about 6 1/2" (16.5cm). The spacing on the third stand is about 5" wider since that panel is about 5" wider than the other two. Use a simple mated-notch design to build the stands, wherein the legs and braces have corresponding notches, all cut to a depth of 1/2 the width of the brace. These notches line up when assembled, making the stand simple yet strong. Once completed, the stands can be given a coat of flat black enamel paint. | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | |||
| + | ==== Controller ==== | ||
| + | |||
| + | The last thing to build is the game controller. Start by placing the push buttons in a standard up/ | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | ====== Step 5: Software ====== | ||
| + | |||
| + | {{: | ||
| + | |||
| + | In order to run the Snake program correctly, you must first install the [[https:// | ||
| + | PICxel name_of_the_set_of_LEDs( how_many_LEDs_we_have, | ||
| + | |||
| + | Here we can provide how LEDs we are running (900), which pin the data is going to be used to connect to the data line on the LEDs (pin 3 in our case), and the desired color mode. Marshall' | ||
| + | We can get the LEDs lit up and running by first calling in our setup the name_of_the_set_of_LEDs.begin(); | ||
| + | |||
| + | function and then choose the settings of the LEDs and subsequently update the strip of LEDs with our new values. | ||
| + | For HSV color mode, you can set the hue, saturation, and value. For those of you that might not know, these values roughly translate to the color, how " | ||
| + | |||
| + | This function will only set (but not yet update) the values on just one LED, so it's recommend to use a for loop to change multiple LED values. To update the LEDs so that they all show their new settings (or old if that particular LED was not updated), simply issue the following command: name_of_the_set_of_LEDs.refreshLEDs(); | ||
| + | |||
| + | The refresheLEDs() function utilizes port manipulation and assembly code to make for a tight library so very little time is wasted in sending out the new information to the WS2812 LEDs at their designated data rate. You can check out a screen shot of the HSV demo for this library in the picture for this step. | ||
| + | |||
| + | Go [[http:// | ||
| + | |||
| + | Download [[http:// | ||

