I'm new to arduino and for a project I need to use flex sensors to move servos, 5 flex sensors and 5 servos. I was wondering if there was any code that code that could help me to accomplish this. I tried to us one of the example codes for a potentiometer but I got some weird out puts in the serial monitor. What's should I be looking for. Also how can I desperate each sensor to find what each max and min values is?
So then I'm guessing when unflexed 808 is the min. If I run the same code flexing the sensor fully then that will give me a higher number being the max right? Now is this the data for one flex sensor or all 5.
So then I'm guessing when unflexed 808 is the min. If I run the same code flexing the sensor fully then that will give me a higher number being the max right?
As far as I know, those numbers are generated randomly.
Now is this the data for one flex sensor or all 5.
Probably.
Apparently, you did NOT read the stickies in this section of the forum - the ones you were supposed to read BEFORE you posted here. Now is a good time to remedy that.
Or measure max and min for each one using a DMM, and then compare your results with what the sensor datasheet says you should expect. Then use those results to calculate (by "hand") what the expected analogReads should be and compare with what your Lillypad tells you.
Also, see this, especially items 4, 11, 13, and 15; and especially the bold text of those items.