Object Round 2: Entry 3

Lab 3

This lab dealt with analog inputs and variable resistors. Variable resistors are used in many sensors such as light sensors, flex sensors, and pressure sensors.

Schematics for both parts of the lab

For the first part of this lab, I used a potentiometer and a light sensor to control a Neopixel LED strip. The amount of light input controlled the color of the strip and the potentiometer controlled the number of lit LEDs. The input was mapped to the outputs using the map() function

Circuit with two analog inputs
Picture of the first circuit
Video of the first circuit in action

For the second part of this lab, I used the same inputs and instead used a speaker as output. This time the light sensor controlled the pitch mapped to between 31 and 1000. As sound changes logarithmically, this should be done using a different mapping function. The potentiometer controlled the duration of the sound blips.

Video of the speaker with two analog inputs

The last part of this lab was to create a box that had two outputs and multiple inputs. This is not that box.

A Box