[simpits-tech] Arduino victory!

geneb geneb at deltasoft.com
Mon Aug 6 07:02:04 PDT 2012


On Sun, 5 Aug 2012, dabigboy at cox.net wrote:

> Well, this non C coding, Python welding cockpit builder has just 
> achieved another little victory: I am driving a real Cessna OAT (outside 
> air temp) gauge with an Arduino, from within Python on my laptop. I had 
> to use a resistor to pull voltage down, otherwise even low PWM duty 
> cycles overwhelmed the little temp gauge, resulting in a very poor 
> resolution (basically the gauge would max out at a cycle of 24 out of 
> 255 pulses). Calibration is not exactly perfect, but it's close enough 
> for now. I think the serial comms was the hardest part! Working great 
> now...more importantly, I am sending two pieces of data (temp and flap 
> setting) and am able to keep them straight in the Arduino...yay!

Congrats!

An easy way to improve the accuracy of the gauge would be to find out what 
the min/max drive values are and then use the map() function to map 
temperature values coming from the simulator to the gauge position.  I 
used the scaling algorithym(sp?) that map() uses when I did my airspeed 
indicator demo a few years ago.

g.

-- 
Proud owner of F-15C 80-0007
http://www.f15sim.com - The only one of its kind.
http://www.diy-cockpits.org/coll - Go Collimated or Go Home.
Some people collect things for a hobby.  Geeks collect hobbies.

ScarletDME - The red hot Data Management Environment
A Multi-Value database for the masses, not the classes.
http://www.scarletdme.org - Get it _today_!

Buying desktop hardware and installing a server OS doesn't make a
server-class system any more than sitting in a puddle makes you a duck.
[Cipher in a.s.r]


More information about the Simpits-tech mailing list