MEGAsquirt A place to collectively sort out this megasquirt gizmo

REPLACING A 1K PULL UP RESISTOR TO GET BETTER SENSOR RESOLUTION?

Thread Tools
 
Search this Thread
 
Old 05-02-2020, 04:09 PM
  #1  
Senior Member
Thread Starter
 
fastivab6tg25mr's Avatar
 
Join Date: Jan 2011
Location: sacramento ,ca
Posts: 563
Total Cats: 160
Default REPLACING A 1K PULL UP RESISTOR TO GET BETTER SENSOR RESOLUTION?

Im using a GM fuel level sensor in my project truck wired to a 1k pull up resistor. it does function but the resolution is garbage. With my multi meter on the ADC input im getting a .008v at empty stop to .498v at full stop. would there be a circuit i could put together that would give better resolution or would i be stuck with going to different level sensor? current one is testing out at 35 ohms empty and 92 ohms full


fastivab6tg25mr is offline  
Old 05-03-2020, 07:40 AM
  #2  
Junior Member
 
DaWaN's Avatar
 
Join Date: Nov 2012
Location: Netherlands, Europe
Posts: 204
Total Cats: 29
Default

You can use a lower value pull up resistor.
I would not use anything lower than 100 ohms, since you are loading up the regulated 5V source and you might burn more than 0.25W in the resistor.
Most resistors can only handle up to 0.25W.
DaWaN is offline  
Old 05-03-2020, 02:23 PM
  #3  
afm
Senior Member
iTrader: (3)
 
afm's Avatar
 
Join Date: Nov 2015
Location: Berkeley, CA
Posts: 981
Total Cats: 508
Default

You will also want to enable filtering on that input (if possible), or you're going to get lots of needle bounce from fuel sloshing.

I built a separate circuit powered off the fuel pump's 12V supply with a linear regulator and a low-pass filter, but DaWaN's suggestion of a 100 ohm resistor would work fine if you can rely on software filtering in the MS.

With a 100 ohm resistor, you would use about a fourth of the ADC bins (1.3V-2.4V range), which is likely enough. It would also keep the 5V ref current down to 50mA, which is well within the bounds of what a reasonable MS3 install will have to spare.

However, you could go much lower in resistance for the pullup and still stay within a 0.25W power dissipation bound, though it would start to tax your MS's 5V ref output.
afm is offline  
Old 05-03-2020, 04:32 PM
  #4  
Senior Member
Thread Starter
 
fastivab6tg25mr's Avatar
 
Join Date: Jan 2011
Location: sacramento ,ca
Posts: 563
Total Cats: 160
Default

AFTER TRYING DIFFERENT RESISTORS AND STILL NOT HAPPY WITH THE RESOLUTION. I THINK I MAY HAVE FOUND A BETTER WAY. IM BEING TOLD THE DODGE SENDER IN THEIR E85 CHARGERS ARE 1.1K OHMS EMPTY AND 75 OHMS FULL WHICH IS BACKWARDS FROM THE ONE I HAVE BUT ILL JUST INSTALL IT UPSIDE DOWN. THE WAY BETTER SWEEP VS THE CHEVY OR FORD VERSIONS SHOULD BE THE BEST SOLUTION. ILL KNOW FOR SURE TOMORROW WHEN THE SENDER GETS HERE AND I CAN TEST IT FOR MYSELF. ITS ONLY $75 FOR THE SENDER SO EVEN IF I MESS IT UP ITS NOT THE END OF THE WORLD.
fastivab6tg25mr is offline  
Old 05-03-2020, 07:14 PM
  #5  
afm
Senior Member
iTrader: (3)
 
afm's Avatar
 
Join Date: Nov 2015
Location: Berkeley, CA
Posts: 981
Total Cats: 508
Default

Originally Posted by fastivab6tg25mr
AFTER TRYING DIFFERENT RESISTORS AND STILL NOT HAPPY WITH THE RESOLUTION. I THINK I MAY HAVE FOUND A BETTER WAY. IM BEING TOLD THE DODGE SENDER IN THEIR E85 CHARGERS ARE 1.1K OHMS EMPTY AND 75 OHMS FULL WHICH IS BACKWARDS FROM THE ONE I HAVE BUT ILL JUST INSTALL IT UPSIDE DOWN. THE WAY BETTER SWEEP VS THE CHEVY OR FORD VERSIONS SHOULD BE THE BEST SOLUTION. ILL KNOW FOR SURE TOMORROW WHEN THE SENDER GETS HERE AND I CAN TEST IT FOR MYSELF. ITS ONLY $75 FOR THE SENDER SO EVEN IF I MESS IT UP ITS NOT THE END OF THE WORLD.
No need to install it upside down. You can calibrate the MS to associate a lower voltage with a higher measured value of some parameter.

You can also improve your font resolution from one bin to two bins by not using caps lock
afm is offline  
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
BTMiata
DIY Turbo Discussion
1
06-30-2014 11:35 PM
Zaphod
DIY Turbo Discussion
11
08-10-2012 03:28 PM
falcon
General Miata Chat
7
04-08-2012 09:19 PM
miatauser884
General Miata Chat
5
07-11-2011 07:34 AM
elesjuan
MEGAsquirt
10
12-14-2007 10:21 PM



Quick Reply: REPLACING A 1K PULL UP RESISTOR TO GET BETTER SENSOR RESOLUTION?



All times are GMT -4. The time now is 08:39 AM.