View Single Post
  #6   Report Post  
Posted to uk.d-i-y
Dave Liquorice[_2_] Dave Liquorice[_2_] is offline
external usenet poster
 
Posts: 14,085
Default PWM to analogue.

On Thu, 22 Oct 2009 17:16:09 +0100, Dave Plowman (News) wrote:

It worked by counting the time one injector was open.


Is it reading well under on the fuel consumption?


Yes. With the ECU set to two squirts per cylinder cycle (same as the
original) it reads something like 1/2 the true consumption. Set to 4
squirts per cycle approx 2 times. So what I'm after is some way of
converting the pulses into a signal it can recognise.


The latter description of just counting pulses doesn't match the
orginal description of measuring the duration of a pulse...

If it's just a pulse counter and assumes a fixed duration you just
need to stretch the first pulse to the correct duration (and possibly
ignore following ones for a period afterwards). Try a google on
monostable. The good old 555 chip can do the first part but will
retrigger straight away.

--
Cheers
Dave.