Author Topic: Anyone using ADC for external sensor input?  (Read 7178 times)

Offline Grant

  • Jr. Member
  • **
  • Posts: 95
  • BHP: 2
Anyone using ADC for external sensor input?
« on: December 10, 2014, 07:31:30 pm »
I posted in another thread that I'm trying to use an external barometer sensor through the ADC to deal with altitude change causing large changes in fueling for a customer car

My problem is the ADC voltage is fluctuating too much.

Who else is using ADC for baro?  Or sensors?  Do people normally just use it for on/off switches? 

Here's my video:

http://youtu.be/MBMO8Ek63Ko

Please let me know if there is something wrong with the ADC chip, another firmware I should be using, or if ADC is just not supposed to be used this way. 



Offline MWfire

  • Hero Member
  • *****
  • Posts: 721
  • BHP: 35
Re: Anyone using ADC for external sensor input?
« Reply #1 on: December 10, 2014, 08:38:18 pm »
Did you try to add 100nF-10uF capacitor to that input?

Offline fphil

  • Sr. Member
  • ****
  • Posts: 398
  • BHP: 6
Re: Anyone using ADC for external sensor input?
« Reply #2 on: December 10, 2014, 10:36:10 pm »
Also you could check your source with the voltmeter/scope set at the adc input and a good common ground

Offline Sprocket

  • Hero Member
  • *****
  • Posts: 867
  • BHP: 29
Re: Anyone using ADC for external sensor input?
« Reply #3 on: December 13, 2014, 12:24:45 am »
the 'fuel pressure' and 'exhaust back pressure' ADC input channels 0 and 1 are filtered already, but it depends on the spec of your box as to what is and is not in your hardware configuration

also worth reading this http://cache.freescale.com/files/sensors/doc/app_note/AN1646.pdf

If you can, use ADC channel 1, if the components are already on board.
« Last Edit: December 13, 2014, 01:30:50 am by Sprocket »

Offline Grant

  • Jr. Member
  • **
  • Posts: 95
  • BHP: 2
Re: Anyone using ADC for external sensor input?
« Reply #4 on: January 16, 2015, 07:12:01 pm »
Hi Guys, I believe we are using a V3.3 board.  Maybe it doesn't have a filter?  The schematic of the board shows no filter on any of the inputs.  My friend is going to build a filtering circuit for ADC input based on the filtering circuit for the boards MAP in that is already in place on the default spec.


MW,

Is the capacitor a known mod that people do?  I haven't found any info on it.

Thanks!

Grant

Offline Grant

  • Jr. Member
  • **
  • Posts: 95
  • BHP: 2
Re: Anyone using ADC for external sensor input?
« Reply #5 on: January 16, 2015, 07:26:15 pm »
I should mention that the noise in the ADC could very easily be filtered out in the software.  The developers might want to consider having that option in a future build  ;D

Offline Sprocket

  • Hero Member
  • *****
  • Posts: 867
  • BHP: 29
Re: Anyone using ADC for external sensor input?
« Reply #6 on: January 16, 2015, 09:48:19 pm »
Input 1 and input 2 as it is on the schematic are connected to diff 'a' and diff 'b'

the schematic is a bit shit, always has been. If you look on the top and bottom lay out you can see mcp inputs connected to op amps, those are for fuel and exhaust pressure.

Offline Grant

  • Jr. Member
  • **
  • Posts: 95
  • BHP: 2
Re: Anyone using ADC for external sensor input?
« Reply #7 on: February 03, 2015, 08:19:24 am »
Hey guys,

Thanks for your input from last time.

SlyAlfa took the board into his lab and added a filter to the ADC input...now the external map sensor is reading perfectly with no jitters.

The question we are having is why doesn't the load value change when we drastically change the external baro input?  We can swing it from 20kpa to 120kpa or so but the load range on the VE table doesn't change at all.

The ECU is on a test bench as the customer is some 400 miles away.  Does the engine need to be running for external baro to read?  I can upload the config if that would help. 

Here is a video I took with my thoughts at the time:

https://www.youtube.com/watch?v=50jNUD3mscE

Thank you!

Offline VEMS

  • Administrator
  • Sr. Member
  • *****
  • Posts: 487
  • BHP: 22
Re: Anyone using ADC for external sensor input?
« Reply #8 on: February 09, 2015, 06:54:02 pm »
Hello Grant,

Baro correction is not applied to the load, but rather its a pulsewidth correction; To look at how the pulsewidth calculation modifier takes effect take a look at expression grid in VemsTune (help: http://vems.hu/vt/help/gauges/expression_grid.html). Accessible though View->Group->Calc Model. Baro correction is in the Gamma Enrichment model is applied in the Pulse Width model.

Best regards, Dave

Offline Grant

  • Jr. Member
  • **
  • Posts: 95
  • BHP: 2
Re: Anyone using ADC for external sensor input?
« Reply #9 on: March 03, 2015, 09:39:45 am »
Dave,

We got baro correction working, but it doesn't seem to solve our tuning limitation.   My friend posted our issues in a more recent thread.   Thank you for the reply though, very much appreciated!