Home  |  Contents 
Microcontroller and PC projects
  Forum Index : Microcontroller and PC projects         Section
Subject Topic: Count input Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
steveizett
Newbie
Newbie


Joined: 15 May 2012
Location: Australia
Online Status: Offline
Posts: 21
Posted: 03 February 2017 at 12:51pm | IP Logged Quote steveizett

Hi people

I am wondering if a Micromite Count input can simultaneously (not actually at the same time, but using the same pin) read a fuel injector signal to read both:
A. Frequency for RPM
B. Period for calculating fuel flow

I'm using 64 pin chip and only have 1 x Count input available.

Thanks very much.

Steve


Back to Top View steveizett's Profile Search for other posts by steveizett
 
Geoffg
Guru
Guru
Avatar

Joined: 06 June 2011
Location: Australia
Online Status: Offline
Posts: 2117
Posted: 03 February 2017 at 1:08pm | IP Logged Quote Geoffg

Yes it could, just reconfigure the pin using SETPIN and it will switch measuring modes.

However, for measuring the fuel consumption you want to measure the pulse width (time that the injector is open), not period. To do that you would need to switch the pin to a digital input and use the PULSEIN() function to measure the pulse width. After that you could switch back to measuring frequency.

Geoff

__________________
Geoff Graham - http://geoffg.net
Back to Top View Geoffg's Profile Search for other posts by Geoffg Visit Geoffg's Homepage
 
steveizett
Newbie
Newbie


Joined: 15 May 2012
Location: Australia
Online Status: Offline
Posts: 21
Posted: 03 February 2017 at 10:44pm | IP Logged Quote steveizett

Thanks very much Geoff.
And of yes 'period'! when I meant pulse width.
I hadn't thought of resigning the pin function. Had only seen this as something fixed at initialisation.
Has anyone done this (fuel flow) with a micromite and have example code.

I think the injector setup is pretty standard with 14v feed and low side fet's switching Ov to energise.
Would you recommend your circuit from "Getting Started with Micromite" for input conditioning?
10k in series with input and schottky to 3.3v rail. I take it I just need a low current sckottky like a BAT85 30v 200mA?Again, thanks for the help.
Steve



Back to Top View steveizett's Profile Search for other posts by steveizett
 
robert.rozee
Guru
Guru


Joined: 31 December 2012
Location: New Zealand
Online Status: Offline
Posts: 1141
Posted: 04 February 2017 at 12:04am | IP Logged Quote robert.rozee

my understanding is that there are both low voltage (solenoid) and high voltage (piezo electric) injectors, but that both use a fairly hefty current. see:
http://autoditex.com/page/common-rail-injector--piezo-crip-26-1.html
piezoelectric: over 120v, 8A or more.

you may find it more convenient to use a small current transformer to measure this.

wrt reconfiguring micromite pins, why not just use several pins connected together, each configured differently? remember, you only really need to measure the drive to one of the injectors, as they will all be driven pretty much the same (assuming no fault).


cheers,
rob :-)

Edited by robert.rozee on 04 February 2017 at 12:05am
Back to Top View robert.rozee's Profile Search for other posts by robert.rozee
 
Geoffg
Guru
Guru
Avatar

Joined: 06 June 2011
Location: Australia
Online Status: Offline
Posts: 2117
Posted: 04 February 2017 at 2:11am | IP Logged Quote Geoffg

steveizett wrote:
Would you recommend your circuit from "Getting Started with Micromite" for input conditioning?
10k in series with input and schottky to 3.3v rail. I take it I just need a low current sckottky like a BAT85 30v 200mA?Again, thanks for the help.

I'm not much of an expert on cars but that sounds fine - perhaps someone else can chime in.

Geoff

__________________
Geoff Graham - http://geoffg.net
Back to Top View Geoffg's Profile Search for other posts by Geoffg Visit Geoffg's Homepage
 
steveizett
Newbie
Newbie


Joined: 15 May 2012
Location: Australia
Online Status: Offline
Posts: 21
Posted: 04 February 2017 at 8:27am | IP Logged Quote steveizett

Thanks guys.
Rob, I only have one Count pin left due to other commitments.
I'm measuring the fuel burn of a 13b Rotary with Primary and Secondary injectors which are different flow rates.
Under low power the secondaries will be off so planned to measure pulse width of both.
Your question has got me thinking if the pulse widths vary between Pri and Sec's.
I should put a CRO on them and check under load with secondaries firing.
If not then I just need to know when the secondaries are firing in order to calculate the total flow.
Then any activity on the secondaries is enough information to do the calc.
I was wondering about timing and how much work the micromite will have to pack in between injector events etc.
if redline is say 8000rpm and each injector fires once per revolution then we have 450mSecs between events so I suppose its going to be asleep a good part of the time.

Steve


Back to Top View steveizett's Profile Search for other posts by steveizett
 
steveizett
Newbie
Newbie


Joined: 15 May 2012
Location: Australia
Online Status: Offline
Posts: 21
Posted: 04 February 2017 at 8:34am | IP Logged Quote steveizett

What was I thinking.
7.5mSec per event.
Steve
Back to Top View steveizett's Profile Search for other posts by steveizett
 
steveizett
Newbie
Newbie


Joined: 15 May 2012
Location: Australia
Online Status: Offline
Posts: 21
Posted: 04 February 2017 at 11:08am | IP Logged Quote steveizett

Question for clarification!
Does Pulsein require the associated pin to be one of the COUNT pins?
Steve
Back to Top View steveizett's Profile Search for other posts by steveizett
 


If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Search the forums using Google.
In the news...
 
Post ReplyPost New Topic
Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum

Powered by Web Wiz Forums version 7.8
Copyright ©2001-2004 Web Wiz Guide

This page was generated in 0.0781 seconds.
Privacy Policy     Process times : 0, 0.02, 0, 0.06