This week was speakers and theremin! Unfortunately, a lot of the sound isn't great on the video, but you get the idea. This is the tone output lab. I managed to set up the circuit okay, and managed to get the photo-sensors to play a tune. I was confused about why one photo-sensor was printing lower numbers when I pressed down on it, and one increased the value, but now I mostly understand why...
I shot a video of the sound coming out of the circuit...
I managed to play the tune set by the program (and one day I'll play a TV theme song off it...and I tried to play notes with this setup, but I am not sure what I did wrong or if the photo sensors is not the best variable resistor to use, but it mostly sounded like noise.
Next up, servo motor.
I used a photo-sensor as the variable resistor, but I was hoping to use a FSR. Will try and do the next lab with another kind of flex sensor.
I did manage to get it to turn, though question I have is why we map the values (which I assume is the angle of the servo motor turn) to 179, rather than a higher value? I saw some great projects that are done with servo motors (i love the drum one) and would love to investigate further. I could be wrong but it seems that servo motor is not really about power (like a DC motor is) but more about control?
Here's the video of the servo motor success:
David and I worked on the final lab together with the transistor, DC power and the DC motor. I can't say I fully understand the function of a transistor, but I feel like I get it a little more than I did than when we used it a couple of weeks ago.
We built this circuit:
and got it to work. This is a video of us printing the values the potentiometer is controlling, and instead of a gradual change in power, it functioned as an on/off switch. The motor turns on about the halfway mark of the range we had calculated (which was around 340).
That's all for this week!