Originally Posted By: mega_mozg_13
Originally Posted By: Bucic
Why is that?

short ADC:
1) have a reference voltage (0v-5v for a ATmega).
2) have a precission (10Bit/1024 points for a ATmega).
3) and calculate sensors voltage with this conditions.
no more. against the laws of physics can not do anything. if you sensor send only "2.0v - 2.5v - 3.0v" what to do?

want more points.
1) try decrease "reference voltage" - mcp3204/mcp3208 accept it(differential mode).
2) increase "precission" - mcp320x 12Bit/4096 points.
3) make more powerfull signal from sensor. mcp601 - electrical amplifier. gears - kinematics amplifier.

tle5011 cost ~4$, and dont want try calculate another solutions price.

ad.1) So that's the culprit! This is what I expected initially - 0V through 5V reference voltage. Hence my question mentioning 'hardcoding'. OK, this explains it.

BUT!
What about different potentiometer values? With 10k, 50k and 100k all being 270 deg, does mmjoy2 read all three of them as providing 0-5V variation? I only have 100k pots at hand so I can't tell.

As for the other solutions. Are there separate wiring diagrams and instructions on how to integrate:
a) "mcp3204/mcp3208 (differential mode)"
b) external ADC
c) (most importantly) TLE5011 sensor

BTW, mega_mozg_13. Having you around I would like to thank you for your work with mmjoy2 as well as for hanging around here, answering questions. I would also like to take the opportunity to ask whether there are plans to opensource mmjoy2?


BoB 2 Tutorials and vids http://www.tinyurl.pl?GBhZxXfj
Installation | (NEW!) User Interface (NEW!) | Starting a dynamic Single Pilot Campaign | Takeoff | Free Flight | Inkscape | more!

sig pic: http://alturl.com/xo6y