This lab we worked with analog inputs and outputs.
Part One: Variable Input
For this part of the lab, I had to use a potentiometer and another variable resistor to turn on two LEDs.
The other variable resistor I used was one that turn like a potentiometer but to my bread board. I used the LED breakout board I made in a previous lab and hooked up another LED to test the variable resistor.
I first did all my soldering. This part really only required the potentiometer to be soldered.
It was then time for assembly:
Here is my schematic:
I used sol wire for some of them so I'd be able to shorten them. This allowed me to make the board look a little cleaner. I then set up only the potentiometers and tested to see if they were working by reading the the serial monitor. I then mapped them. I w
Here is my code:
Here is the final product:
Video:
Part Two: Tone Output
This part was actually fairly simple. We used two photocells to manipulate the sound from a speaker. I soldered the speaker and then set up my board.
Here is my schematic:
Here is my code
Here is final product:
Part Three: Sensor Box
For my sensor box I worked with someone else in my lab, Fernanda. We decided to make our sensor box look like a vintage TV. We manipulated lights and sound for ours.
Here is the skinny on what our box does:
Analog Inputs:
-two potentiometers (one for sound and one for lights)
-two photoresistors
Analog Outputs:
-Sound
Digital Outputs:
-Neopixels
We first set up each part individually. I set up the neopixels, and Fernanda set up the sound. We then tested while they were separate. We then wrote code to make it to something a little fancy. We wanted the neopixels to change color based on potentiometer value. For the sound it was pretty basic but we did add a stepper to make the sound less terrible and it only kind of worked. We then put everything on one board.
We used a piece of white fabric to dilute the intensity of the light. It actually worked really well. We probably should have added it before we glued in everything else. But I'm happy with how that part looked.
Here is our schematic and Code.
Code:
To make the enclosure bit, we modeled something in Rhino instead of Makerspace. Because We wanted our tv to look a certain way. In retrospect, Makerspace still would have probably worked. However, I'm really happy with the look of our Tv. We also added little knobs we got for our potentiometers. While our box looks super cute, we really didn't think to much about how things are going to fit in the box itself. Because it's so much space and the way it has to be set up inside for to look the way on the outside, it is very loose and a lot of our wires disconnect. We set up a wall inside for to lean against, and then used fabric to kind of pad it. It's still fragile though.
Here is the schematic
Photos:
Testing Videos:
Video/Final photos:
Comments