For this project, I used p5js as the interface output. In the most simple terms, Serial is the postal service of our code, and so if we want our messages to get to the right place and in the right way there are certain guidelines that we need to follow. Now that we have our circuit set up, we can start the work of making our two programs communicate with each other through Serial. In terms of power, all of the LEDs, as well as the button, are connected to the 3.3V power sources that are able to better send the controlled amount of power that these components require, and the potentiometers and slider are connected to the 5V power supply. Nothing too exciting is going on in this circuit, the most important things were simply to make sure that the potentiometers and slider were connected to analog pins so that they would be able to send a wide range of values rather than just binary. The most important part of this project is learning about serial communication, so your controller can look like whatever your access and interests allow for. If however you do not have easy access to a laser cutter or you do not wish to follow this fabrication path that is completely fine as well. The box was then cut out of simple cardboard which I then assembled using hot glue. I got this box template from BLANK and was able to modify it in Adobe Illustrator which allowed me to include precise cutouts for my components. When making your box, my first recommendation would be laser cutting. I likely will assign this button a function down the road, but for now, I didn't want to cause any confusion. This meant that even when I realized that I did not want to use the button in the controller, I was still committed to leaving it in. I incorporated the button into my project after laser cutting my box, but before completing my code. You may also notice that there is a fairly sizeable button on the front of the controller that isn't being used at all. Ultimately, what inputs and outputs you pick for your controller is up to you, but for my project, I two potentiometers and a slider as my inputs, and 6 LEDs, as well as a Neopixel, LED strip as my outputs. Having a clean circuit not only allows us to hide away our wires far easier but also because we will be working with two programs simultaneously and trying to get them to work together, it's essential that we can set up our wiring and then trust that it will do its job. More than ever with this project, having a clean circuit is absolutely crucial.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |