Professional Documents
Culture Documents
Individual Arduino Grand Challenge Problem
Individual Arduino Grand Challenge Problem
Hook up a FSR voltage divider circuit and measure the analog signal of the negative terminal of the FSR.
Key Facts:
1. Resistance changes as you squeeze the FSR. 2. Analog inputs can be used to read signals (voltages). 3. Voltage divider is two resistors in parallel with a voltage output (voltage measurement) across second resistor. Voltage at this node varies as a function of force on the FSR.
Solution:
Physical: Schematic:
Diagram:
Picture:
Software:
Code: int FSRPin = 0; // FSR is connected to analog 0 int FSRRead; // the analog reading from the FSR resistor divider void setup(void) { Serial.begin(9600); // We'll send information via the Serial monitor pinMode(LEDpin, OUTPUT); } void loop(void) { FSRRead = analogRead(FSRPin); Serial.print("Analog reading = "); Serial.println(FSRRead); delay(1000); }