View Single Post
Old 03-17-2008, 02:55 AM   #18 (permalink)
Coyote X
nut
 
Coyote X's Avatar
 
Join Date: Dec 2007
Location: Southen West Virginia
Posts: 593

Metro XFi - '93 Metro XFi Convertible
90 day: 62.17 mpg (US)

DR650SE - '07 DR650SE
90 day: 55.26 mpg (US)

Moonbeam - '93 Astro Conversion
90 day: 19.47 mpg (US)
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via ICQ to Coyote X Send a message via AIM to Coyote X Send a message via MSN to Coyote X Send a message via Yahoo to Coyote X Send a message via Skype™ to Coyote X
I think for the input signals the easiest thing would be run a 10k resistor to a 5v zener. Then maybe use a transistor to isolate the microcontroller if needed. That should get a signal the controller is able to handle.

The VSS is just a voltage pulse every so often. Usually so many pulses per mile. So to measure it, just set an interrupt and use a bit of math to calculate speed by averaging the last few pulses for a steady number.

The injector would need a pair of interrupts. One rising edge and one falling edge. That can give a good way to measure pulse width of the injectors.

Once the basic math is figured out converting to whatever unit is needed would be a simple matter I figure. The avg mpg I was thinking of was 'Last minute avg MPG' That seems useful to make sure you aren't getting high peaks in the instant mpg reading but killing your avg by doing it wrong.

Really once the vss and injectors are going into the controller anything you can do with those numbers would be pretty easy to implement. Writing it in a higher level language like C and not assembly makes stuff like that just a few minutes worth of work.

There are some really simple atmel programming setups. So a programming circuit could be as simple as a single IC and a few wires. I figure there will be a lot of people not willing to build their own and will want to buy one. Having a easy to build system would be nice for whoever wants to make and sell them assembled. Another advantage of the atmega setup is that even if the chip is discontinued it would be a 5 minute job to port the code to a new one assuming there isn't one that is directly compatible.
__________________

My Convertible Metro XFI Plug in Hybrid Project build log
  Reply With Quote