Sensors and Arduino
December 3rd, 2008. Filed under: arduino, hardware.
I hooked up an accelerometer, a light sensor, a piezo pressure sensor, a small speaker ripped out of a phone, a vibrating motor and a potentiometer to an Arduino. The tilt of the accelerometer controls the pitch of the speaker (with some random noise thrown in for effect), the light sensor controls the speed of the motor, the potentiometer controls the volume and the piezo can be squeezed to make a high-pitched tone in the speaker. All variables from the sensors are printed to the serial port.