Go Down

Topic: FSR + Servo Motor = IDK!!!!! (Read 804 times) previous topic - next topic

skumar309

Hi there, I am a beginner and am trying to control a servo using an FSR, however i don't know the code  nor how to build it.

P.S is there any way to code it so that one FSR will make it go CW and making it go CCW.

Thanks!

jremington

Start with the servo example, but always use a separate power supply for the servo (a 4 AA battery pack works well). Be sure to connect the servo power supply ground to the Arduino ground.

Once you understand how the servo is controlled, find some example code and wiring suggestions for the FSR, and learn how that works. Then it will be easy to put the two together.

OldSteve

#2
Nov 10, 2015, 04:00 am Last Edit: Nov 10, 2015, 04:02 am by OldSteve
What's an FSR? It's OK, I found out - Force Sensitive Resistor.
Please do not PM me for help. I am not a personal consultant.
And others will benefit as well if you post your question publicly on the forums.

DuaneDegn

What's an FSR? It's OK, I found out - Force Sensitive Resistor.
Thanks. I was wondering the same thing.
is there any way to code it so that one FSR will make it go CW and making it go CCW.
If I understand what you're asking, yes.

The example servo\knob will take you most of the way there.

I'm pretty sure you use the FSR as one half of a voltage divider. The output of the divider is read with an analog input very much like the servo\knob example reads the voltage from the voltage divider created by the pot.

zoomkat

Expect the FSR to have poor resolution output which may prove poor for servo control.
Google forum search: Use Google Search box in upper right side of this page.
Why I like my 2005 Rio Yellow Honda S2000  https://www.youtube.com/watch?v=pWjMvrkUqX0

Go Up