View Single Post
Old 08-02-2015, 09:10 AM   #400 (permalink)
amnonholland
EcoModding Lurker
 
Join Date: May 2010
Location: Sydney, Australia
Posts: 14
Thanks: 0
Thanked 1 Time in 1 Post
A warm thanks from Canberra, Australia to all those who have contributed to the mpguino project and in particular to tvago for the amount of time invested in developing this excellent tool!

A quick question for somebody with coding background - my mechanical engineering background does not help me here!

Im trying to write out a 0-5v signal on the UNO pwm pin with the fuel level to go to another ext gauge.

I have tried analogWrite(11, gallons()); after converting to integer ( int val = (int) gallons(); ?) but am not getting anywhere. Understand I need a low pass filter to convert to true analog. Im not really sure what variable i need to call up (which stores the tank remaining value) or where's best to put this line in the program (under mainloop?)

Any help would be appreciated. Thanks alot!
  Reply With Quote