
#ARDUINO SENSORS WITH TEENSY SERIAL#
Note that we pause the loop for 30ms at every cycle to not overload the serial output.Int sensorValue = analogRead(A0) // retrieving sensor value on Analog pin 0 Serial.begin(9600) // initializing serial port Let’s now retrieve the photoresistor/FSR signal on your computer and plot it in the debugger! First, upload this program to your Teensy:.Notice the use of a 10k pull down resistor which is used to stabilize power readings on the A0 pin of your Teensy.

FSRs and photoresistors don’t have a polarity so you don’t need to respect a specific orientation to plug them to the breadboard.

Microcontrollers such as the Teensy can be used to digitize the signal delivered by a sensor in a circuit (which is the same as measuring the amount of current in the system at regular time intervals).A wide range of sensors act as resistors (e.g., Force Sensitive Resistors, photoresistors, SoftPots, flex sensors, etc.) and can be used to dynamically change the amount of current circulating in a circuit.Review this brief introduction to electronics on the CCRMA Wiki.Various mapping strategies are also introduced. The goal of this lab is to control Faust synthesizers with sensors connected to the Teensy. Lab 3: Sensors and Physical Interface Design
