Originally Posted By: mega_mozg_13
Originally Posted By: Bucic

Now, the maximum number of steps I could get from mmjoy2 was:
ad.1. 1024 steps for the entire 270 degrees of its rotation range
ad.2. 100 steps for a 30 deg range

How do I get a 1024 resolution across a pre-defined rotation range using mmjoy2?


1) try use more powerfull magnet and minimum distance hall-magnet.
2) mcp3201/3208 12Bit ADC(4096 point), x4 vs 10Bit internal ATmega ADC. 100*4 = 400 point for a 30 degs =).
3) goto digital sensor TLE5011 have 21000 points for 360 deg, 1740 points for 30 deg.
3.1) kma200 have 8196 for 180 deg, 1350 points for 30 deg.


So it is hard-coded? There is no way to tell mmjoy2: 'here's a 100k pot; divide its 0 through 30 deg range into 2014 steps'?

Could you tell me how? If I hook up 10k, 50k and 100k pots mmjoy2 will assign 1024 steps across 270 deg of pot rotation. So it doesn't assign steps per voltage/resistance variation but... I don't know. There's no way it knows what potentiometer (resistance range and rotation range) is connected.

I was thinking about using the first ~20 degress of a 1 megaohm potentiometer to get higher resolution but this won't seem to work due to the behavior described above.


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