Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
LinkBack Thread Tools Display Modes
Old 30th November 2004, 05:26 PM   (permalink)
Default Car Electronics, PCM / ECU / EMS

So I am curious as to what it would take to make a circuit that would translate analog data from cars output sensors like Oxygen, Mass Airflow, Crank shaft position, Engine coolant temp into digital data and get it into a linux box?

I have found this board here

http://www.measurementcomputing.com/...26BGS87DV64VB0

After calling the company, it will accept data at a high enough resolution to hand a motor spinning 10k, the money for this project is not really a issue.


Is there anyone that can point me to information on converting analog signals to digital signals? Some of the signals are variable voltage, some are variable resistance.
TwinTurboLs1 is offline  
Old 30th November 2004, 05:45 PM   (permalink)
Default

Are you looking to make your own dyno?
Also what ECM are you running? you may be able to get what you need from the interface (OBD II) It should already have converted it to digital for you. No sense reinventing the wheel... I've experimented with this but I have a 95 Monte Carlo, so Im stuck with the intermediate OBD 1.5.

As for signal conversions, you'll need some Analog to Digital converters.

Nice username...I cant wait until I'm a rich engineer and I can own some of those motors.
__________________
Jeff
To the optimist, the glass is half full.
To the pessimist, the glass is half empty.
To the engineer, the glass is twice as big as it needs to be.
jrz126 is offline  
Old 30th November 2004, 06:14 PM   (permalink)
Default

The easiest (build your own) would use a microcontroller with ADC to gather the data and output it where you want; rs232, LCD display...

There are plenty of off the shelf generic data aqcuisition or datalogging boxes out there that you can adapt to your purpose, though.

like Jrz126 said, if you can get it out of the ECU with an OBD II interface, that would be the easiest.
__________________
Mark Higgins
DirtyLude is offline  
Old 30th November 2004, 06:55 PM   (permalink)
Default

http://www.measurementcomputing.com/...ECELV48GUKAC94

This board has 16 bit Analog to digital converters. The board in your pervious post only has digital IO.

If money really isn't a concern take a look at Labview. www.ni.com. Its a super powerful graphical programing environment. National instruments has tons of A to D boards. The measurement computing board is designed to work in Labview also. Labview allows you to build really complex aquisition and control applications really quickly and easily.
bmcculla is offline  
Old 1st December 2004, 06:11 AM   (permalink)
Default

No I am not trying to read data from the stock PCM, or make a dyno.

I want to make my own standalone engine managment system that replaces the stock PCM 100% and has the ability to read twin MAFs, have intigrated controllers to fire additional fuel pumps, or nitrous, etc.
TwinTurboLs1 is offline  
Old 1st December 2004, 06:23 AM   (permalink)
Default

Quote:
Originally Posted by bmcculla
http://www.measurementcomputing.com/cbicatalog/cbiproduct_new.asp?dept_id=353&pf_id=1538&mscssid= 9CF2RSKFCTN08M0M9BECELV48GUKAC94

This board has 16 bit Analog to digital converters. The board in your pervious post only has digital IO.

If money really isn't a concern take a look at Labview. www.ni.com. Its a super powerful graphical programing environment. National instruments has tons of A to D boards. The measurement computing board is designed to work in Labview also. Labview allows you to build really complex aquisition and control applications really quickly and easily.
I would be writing the code in C++ on Linux, this is a very real time critical application as it would need to sample around 50,000+ times per second when the car is at its redline, and faster if it got over revved (And of course, the code would pull timing, spark, etc to limit revs and damage)

That NI one looks pretty good, it carries about a $1300 price tag, and it looks like it does what I need, but the MMC one also looks like it can do what I need.


The MMC one says it can work as a oscope, which means that it (out of the box) is good enough to read any sensor in my car and let the software decode it.
TwinTurboLs1 is offline  
Old 1st December 2004, 02:50 PM   (permalink)
Default

Quote:
Originally Posted by TwinTurboLs1
No I am not trying to read data from the stock PCM, or make a dyno.

I want to make my own standalone engine managment system that replaces the stock PCM 100% and has the ability to read twin MAFs, have intigrated controllers to fire additional fuel pumps, or nitrous, etc.
Engine management does not require that powerful a system to run. Running it off a full Linux system is way overkill. The hardware and circuits for interfacing to all the sensors and driving injectors and spark is 90% of the ECU. Not to mention that with a PC based system you have boot up time and extra hardware for power. If that PC loses power for an instant, your car is dead on the track/highway until the thing reboots everything back up again.

If you want a starting point, there are EFI projects out there using microcontrollers that can give you a better idea what it would take to make your engine management with the requirements you are looking for.

It's interesting as a project, but for the cost of a $1300.00 data card, plus Linux system, plus the cost of the driver hardware you'll need to put together, you can buy an off the shelf ECU that will do everything you want and be more practical.
__________________
Mark Higgins
DirtyLude is offline  
Old 1st December 2004, 07:27 PM   (permalink)
Default

If you want a really slick solution National Instruments sells a system they call CompactRIO. Its an FPGA based system with built in A/D and D/A. NI has literature about a company that used this system to prototype a motorcycle ECU.

I agree with DirtyLude - if you are going to use this ECU off the bench a completely embedded solution is the way to go. High level OS' arn't designed to do real time computations. They arn't very detirministic so ensuring latency is really tough (i.e its hard to make sure things happen at the right time) if possible at all. A slower embedded solution would probably end up with better latency.

For your solution i'd recommend Silicon Labs (SiLabs.com) 8051 controllers. They are really fast for an 8 bit controller - up to 100MHz and have really fast A/D and D/A all built in. For ~$150 you can get a complete dev kit. If you need even more processing power Atmel has a line of highly integrated ARM processors up to 66MHz. For even more number crunching power Freescale semi has a hybrid Controller/DSP chip 56F8XXX that runs at up to 120Mhz and is capable of really fast math (one 16 bit multiply and add per clock). They have a cheap Dev kit and a well priced C compiler.
bmcculla is offline  
Old 1st December 2004, 07:43 PM   (permalink)
Default

Quote:
Originally Posted by bmcculla
If you want a really slick solution National Instruments sells a system they call CompactRIO. Its an FPGA based system with built in A/D and D/A. NI has literature about a company that used this system to prototype a motorcycle ECU.

I agree with DirtyLude - if you are going to use this ECU off the bench a completely embedded solution is the way to go. High level OS' arn't designed to do real time computations. They arn't very detirministic so ensuring latency is really tough (i.e its hard to make sure things happen at the right time) if possible at all. A slower embedded solution would probably end up with better latency.

For your solution i'd recommend Silicon Labs (SiLabs.com) 8051 controllers. They are really fast for an 8 bit controller - up to 100MHz and have really fast A/D and D/A all built in. For ~$150 you can get a complete dev kit. If you need even more processing power Atmel has a line of highly integrated ARM processors up to 66MHz. For even more number crunching power Freescale semi has a hybrid Controller/DSP chip 56F8XXX that runs at up to 120Mhz and is capable of really fast math (one 16 bit multiply and add per clock). They have a cheap Dev kit and a well priced C compiler.

It sounds like I have lots of options - my biggest problem is I do not know a lot about electronics, I am a programmer, which is why I was looking for a card that could read all the sensors for me and let me drive outputs, I know I will have to design some stuff (Or pay someone to do it) like a low impidence injector driver setup, and something to fire the coil packs (I have 1 coil pack per cylinder, 8 cylinders).

And there are no off the shelf engine managment systems that I can find that support twin mass airflow sensors.
TwinTurboLs1 is offline  
Old 1st December 2004, 07:59 PM   (permalink)
Default

Quote:
Originally Posted by TwinTurboLs1
And there are no off the shelf engine managment systems that I can find that support twin mass airflow sensors.
Twin ECU's support twin MAF sensors.

I'm assuming this is a twin turbo 8 cylinder, based on your nik. It's common to run two ECU's in this case, treating the engine as 2 4 cylinders. You can run 2 fairly simple ECU's and have lots of spare inputs/outputs.
__________________
Mark Higgins
DirtyLude is offline  
Old 2nd December 2004, 08:01 PM   (permalink)
Default

Lab View can and will with proper VI set up you can I/O read-write ports and lines.

Most Cars made use a 5 volt reference on all sensors. Some issues with NI card is Duty Cycle, lines and ports sometimes have to be conditioned, CPU speed is a factor as well.

Our class is studing Lab View, and it seems to work very well. Right now we setup VI's to control Stepper motors, and also read the position of the stepper to the same VI.

I also have been working on a injector project.
__________________
Your website has been blocked
Juglenaut is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 11:00 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker