Sensor Box

For this lab, I started at Part 1.  I followed along with the circuit diagram provided in the Canvas assignment, and then when I had the circuit created, I wrote some code for it that ran it according to the lab.

Analog Input/Output – Sensors

After I finished Part 1, I moved on to Part 2.  In Part 2, I followed along with the circuit diagram provided in the lab documentation. After I finished constructing the circuit, I followed along with the pseudocode provided in the documentation.



Once I had finished part 2, I began work on the Sensor Box part of the project.  I started by pulling up MakerCase.com and making a box slightly larger than the Arduino Uno.  My plan was to make a small toy radio, that would play a song when tuned to the correct “Station”.  This was achieved with a slide potentiometer, rotary potentiometer (for volume), and a small piezo for the speaker.  As you can see by the circuit diagram below, the slide potentiometer gives it’s value back to the board, which determines if it is in the correct “tuning” to play (and turns the power light on if the value is >0.  Once it is in the correct position, the board begins playing a tune stored as notes in array (see code).  However, the signal for the speaker is first ran through the rotary potentiometer, in order to give the speaker a volume control.



Sensor Box Demonstration

Note: For this video I left the back off due to laziness; last I checked everything works closed up just as open. You can see the closed photo at the top.