Hardware Reference
In-Depth Information
If you're going to replace the resistor connected to 5 volts in Figure 4-11 with
a variable resistor like an FSR, you'll want the value of the other resistor to
be somewhere in between the minimum and maximum resistance so that
you can get the most range out of the sensor. For a typical FSR, try a 10K ohm
resistor. Here's what you'll need to try this out:
• Breadboard (Makershed.com part number MKEL3, Adafruit.com part
number 64, Sparkfun.com part number 12002)
• Jumper wires (Makershed.com part number MKSEEED3, Adafruit.com
part number 758, Sparkfun.com part number 08431)
• Force sensitive resistor (Adafruit.com part number 166, Sparkfun.com
part number 09375)
• 10K ohm resistor (Assorted resistor packs: Makershed.com part num-
ber MKEE4, Sparkfun.com part number 10969)
To connect the FSR to Galileo:
1. Insert the FSR into a breadboard so that each lead is in a different row.
2. Connect one side of the FSR to Galileo's analog input pin 0.
3. Connect that same side to ground using a 10K resistor. It will have the
color bands brown, black, orange, and then gold or silver.
4. Connect the other side of the FSR to 5 volts from Galileo. Your circuit
should look like Figure 4-12 or Figure 4-13 .
5. Upload the code from Example 4-3 to the board.
6. Open the serial monitor.
Watch the serial monitor as you squeeze the sensor's pad.
Search WWH ::




Custom Search