View Single Post
Old 12-31-2013, 08:12 AM   #6 (permalink)
P-hack
Master EcoModder
 
P-hack's Avatar
 
Join Date: Oct 2012
Location: USA
Posts: 1,408

awesomer - '04 Toyota prius
Thanks: 102
Thanked 252 Times in 204 Posts
Actually, for this, I'm going to say the "right" way is to use a single $1.50 microcontroller (i.e. attiny something), if your map sensor already has a 5v power supply you can set it up to run on an internal oscillator and have ZERO other components/chips (maybe a small capacitor or two). In the main loop you read the map voltage on one of the analog pins and use a pwm for the output to the meter that you constantly adjust (using a tiny program to map the input reading to the pwm setting).

If you are new to microcontrollers you can get an arduino uno clone for like $10 on ebay which makes it about as easy as it gets to get started, both in physically uploading the program to the microcontroller and in setting up your program. You can do this project with just an arduino and a computer to program it with too, just costs a bit more than a bare microcontroller.

Last edited by P-hack; 12-31-2013 at 08:46 AM..
  Reply With Quote