Overview: 1, show a picture of the device that shows what pins it has.

+

Overview: 2

−

Wiring: 0, Give a specific example of how to wire it. What pins go where? Which bone header are you using? P8, P9?

+

Wiring: 2

−

You are using a voltage divider, show a diagram of it.

+

Code: 2

−

Code: 2

+

git: 2

−

git: 0 put in git

+

Demo: 2

−

Demo: 0

+

Total: 10/10

−

Total: 3/10

+

Comments: Thanks for the quick fix. Both on this and your other page.

−

Comments: More details are needed. I think someone else in the class would have trouble

+

−

reproducing what you have done.

+

−

+

</pre>

</pre>

Line 28:

Line 25:

[[File:FlexSensorWiring.jpg|thumb|Wiring example for the Flex Sensor on a Bone]]

[[File:FlexSensorWiring.jpg|thumb|Wiring example for the Flex Sensor on a Bone]]

−

To interface this with the BeagleBone you just need to connect the flex resistor from the analog VCC to an analog input and another resistor (I used 1.1k&Omega; ) from analog input to analog ground. From there you can read the voltage input and manipulate it using code however desired. In my case I basically took the number that the analog input gave me and manipulated it to average about 1000 samples per second, and display the averaged value. When you bend the resistor the value increases, and when you relax the resistor the value decreases. You can see this in the sample code provided.

+

To interface this with the BeagleBone you just need to connect the flex resistor from the analog VCC to an analog input and another resistor (I used 1.1k&Omega; ) from analog input to analog ground(on P9). From there you can read the voltage input and manipulate it using code however desired. In my case I basically took the number that the analog input gave me and manipulated it to average about 1000 samples per second, and display the averaged value. When you bend the resistor the value increases, and when you relax the resistor the value decreases. You can see this in the sample code provided. There is also a picture included that will aid in wiring the sensor to the bone.

== Reading and Interpreting Analog Input Data ==

== Reading and Interpreting Analog Input Data ==

Line 34:

Line 31:

== Sample C Code ==

== Sample C Code ==

+

The following code can be found through github.

+

+

https://github.com/popenhjc/popenhjc_ECE497

+

+

You can do a git clone of this repository which includes MiniProject02 folder. Using the make command will make the two c files.

Contents

Overview

This is a simple flex sensor that measures 4.5" in length. As the sensor is flexed, the resistance across the sensor increases. What you do with this resistance is totally up to whatever you can come up with.

Inputs and Outputs

As for inputs and outputs, the sensor is basically a resistor and thus should be read from the analog input pins. To work with the analog input, you must put 1kΩ resistor from analog ground to the analog input you choose then connect the sensor from the analog VDD to the analog input you choose. The input voltage can then be read by the processor to determine how far the flex sensor is being bent (flexed).

Bone Usage

Wiring example for the Flex Sensor on a Bone

To interface this with the BeagleBone you just need to connect the flex resistor from the analog VCC to an analog input and another resistor (I used 1.1kΩ ) from analog input to analog ground(on P9). From there you can read the voltage input and manipulate it using code however desired. In my case I basically took the number that the analog input gave me and manipulated it to average about 1000 samples per second, and display the averaged value. When you bend the resistor the value increases, and when you relax the resistor the value decreases. You can see this in the sample code provided. There is also a picture included that will aid in wiring the sensor to the bone.

Reading and Interpreting Analog Input Data

Reading the analog input data is pretty simple. Basically, with the way I described hooking the component up, as you bend the flex senor the value of its resistance increases. So, you receive a lower value for the voltage read from the ain pin. The resistance of the flex sensor is approximately 10kΩ when flat, and increases to approximately 110kΩ whe bent as far as possible.