I've been considering using my Armite to read the duration of an injector on my
Dodge (~4ms I think). Has anyone else here tried this? After proper signal
conditioning, should I poll or could I set interrupts?
Ray
Fuel monitor
-
- Posts: 1462
- Joined: Fri Oct 19, 2012 5:11 am
Re: Fuel monitor
If you will be using BASIC, the PULSIN function can read pulses as short as 1
microsecond. I'm used to polling, so that is the way I write, and the PULSIN
function will not hang - if no pulse is detected in 1 second control returns.
It also waits for the beginning of the pulse to start measuring, so you get a
nice accurate count - as long the the signal is nice and "square." If the pulse
has sloping edges, the length measured is based on the point that the voltage
crosses the 0-1 boundary - I think it's around 1.7 Volts.
Hope this helps.
Ira
microsecond. I'm used to polling, so that is the way I write, and the PULSIN
function will not hang - if no pulse is detected in 1 second control returns.
It also waits for the beginning of the pulse to start measuring, so you get a
nice accurate count - as long the the signal is nice and "square." If the pulse
has sloping edges, the length measured is based on the point that the voltage
crosses the 0-1 boundary - I think it's around 1.7 Volts.
Hope this helps.
Ira
-
- Posts: 1462
- Joined: Fri Oct 19, 2012 5:11 am
Re: Fuel monitor
1us might make it. Typical pulses are 100-1000us
Just found an Arduino version
http://opengauge.googlecode.com/
http://ecomodder.com/forum/showthread.p ... ce-2115-90.\
html
and need to look through it.
Thanks, Ray
Just found an Arduino version
http://opengauge.googlecode.com/
http://ecomodder.com/forum/showthread.p ... ce-2115-90.\
html
and need to look through it.
Thanks, Ray