So for the coding part of this project what I mainly wanted to put together was a program that could help me get use to make-code as well as something that helped me understand a bit more about how the Circuit Playground Express reads inputs with switches/knobs. I decided to stick with the switch as it was the easiest thing to get working. As I started working I figured out the sides of the stick that registered as up or down inputs, so from there I started putting code in that replicated it turning off/on. For the turn on code I wanted to emulate the effect of turning on a TV screen so I made the lights bright blue, then I put in a music melody that I liked and made sure to have it on a while loop to keep it playing. For the turn off code I realized that I needed to make a variable that read the TV as on (true) or off (false), then I put that in the proper inputs. I also saw after some experimenting that I needed to use a block of code that turned off all sound completely as soon as I switched it off so the music would stop playing right away. Then to finish that code I made it so that one red light would be left on when turned off to emulate the little red turn off light you see on most TV's.
For the actual project construction part I honestly wanted to keep it very simple as I didn't have a lot of materials on hand. I came up with the idea of printing out a little cartoon I made some time back and seeing if I could emulate a TV stand of sorts. I kinda just started looking around and noticed that maybe my plastic Circuit Playground case would work, and luckily it all fit right in. Then I needed something to cover the wires and I didn't even realize it but when I was messing around with the paper that I cut out the cartoon from I realized it fit right in, covering most of the cables. Finally I used some other scraps of paper I had to better cover up the plastic container and that was about it.
Comments
Please log in or sign up to comment.