Adjusting Voltage Output (O2 Sensor)?

General discussion on mikroBasic for dsPIC30/33 and PIC24.
Post Reply
Author
Message
Fritzables
Posts: 61
Joined: 07 Jun 2008 13:20
Location: Brisbane AUSTRALIA

Adjusting Voltage Output (O2 Sensor)?

#1 Post by Fritzables » 25 Jan 2010 05:27

I want to design a plug in device that can be put in line to an engine ECU.
I would like to sense the voltage from the O2 sensors then modify the voltage to my specification then pass this back out to the ECU to do with what it needs to.

How would be the best write some code that creates a device the measures voltage then output an adjusted voltage?

Fritzables

Radu86
Posts: 47
Joined: 11 Jan 2010 17:10
Location: Romania, Iasi

#2 Post by Radu86 » 25 Jan 2010 10:53

The reading from the sensor is easy. Use the analogic input pins (one of them).
Do the math so you get what you want with that reading.
To send it back to the ECU you should know how does the ECU work. I don't so I can't help you there.
good luck!

Fritzables
Posts: 61
Joined: 07 Jun 2008 13:20
Location: Brisbane AUSTRALIA

#3 Post by Fritzables » 26 Jan 2010 04:09

Thanks Radu86,

Yea, there is going to be a lot of trial and error on this one.
Ok so I need to study the A/D a little more.....

Thanks again.

Fritzables.

Radu86
Posts: 47
Joined: 11 Jan 2010 17:10
Location: Romania, Iasi

#4 Post by Radu86 » 26 Jan 2010 18:53

Good luck there.
As far as I know the ECU has Serial communication. That might be the way to give it the new value of the reading. Hope I am not mistaking

Radu86
Posts: 47
Joined: 11 Jan 2010 17:10
Location: Romania, Iasi

#5 Post by Radu86 » 26 Jan 2010 19:33

I forgot to say that if you want to use the A/D converter you will need to have direct access to the sensor, in order to read it's voltage. You can also use the on board diagnostic to read anything you want from any sensor of the ECU. You will have to serial communicate with an ELM323 chip (this one "knows" the OBD protocol, and it will give you what you need.

The way you want to go is your choice :)

Post Reply

Return to “mikroBasic for dsPIC30/33 and PIC24 General”