Author Topic: Need help with solution for digital resistor  (Read 926 times)

0 Members and 1 Guest are viewing this topic.

Offline lovembTopic starter

  • Contributor
  • Posts: 20
  • Country: pt
Need help with solution for digital resistor
« on: December 01, 2022, 11:05:19 pm »
Hi everyone,

basically I'm creating a device to control various automotive dashboards (in the future, more than one at the same time). On newer dashboards most stuff is simple because info is sent by CAN, however on old units many sensors are variable resistors (mainly temperature sensors and tank fuel level sensors).

I need a way to simulate these sensors and control their value with a microcontroller.

I'm aware of digital potentiometers but there are no pots that can emulate in the resistance I need.

Usually 5 ohms to 200 ohms.

Here are some examples of fuel level sensors:
240-33 Ohms - Standard Aftermarket -  T-SW-**
10-180 Ohms - VDO gauges - T-VDO-**
0-30 Ohms - GM up to 1964 -  T-GME-**
0-90 Ohms - GM 1965 and up - T-GML-**
73-10 Ohms - Early Ford & Mopar - T-ORG-**

Example of the circuit and component I'm emulating:





Usually one side of the component is connected to ground, but not always.

There are 1k digital pots, but at 256 steps and a wiper resistance of 50 ohms is not usable.

Motorized potentiometers could be an option, but I can seem to find 500ohm or 1k ones.

Also it can't be too expensive because I need to create many of these controllers for same project.


Any ideas?
 

Offline Someone

  • Super Contributor
  • ***
  • Posts: 4525
  • Country: au
    • send complaints here
Re: Need help with solution for digital resistor
« Reply #1 on: December 01, 2022, 11:10:11 pm »
Also it can't be too expensive because I need to create many of these controllers for same project.
Wait until you see the currents some of those sensors pass through them!
 

Offline Benta

  • Super Contributor
  • ***
  • Posts: 5869
  • Country: de
Re: Need help with solution for digital resistor
« Reply #2 on: December 02, 2022, 12:17:39 am »
I'd suggest mini/micro servos for RC models (cheap and plentiful) mechanically coupled to loudspeaker rheostats (2...5 W, freely available in 100 ohms), also cheap.
Controlling the servos is super-easy.
.
 

Offline moffy

  • Super Contributor
  • ***
  • Posts: 1719
  • Country: au
Re: Need help with solution for digital resistor
« Reply #3 on: December 02, 2022, 02:00:21 am »
If you PWM a low value resistor the effective value = R*(Ton+Toff)/Ton. You would need to smooth the current somehow, not sure at present if it is practical.

P.S. I don't think it would work in this case.
« Last Edit: December 02, 2022, 03:21:51 am by moffy »
 
The following users thanked this post: Someone

Online Swainster

  • Frequent Contributor
  • **
  • Posts: 259
  • Country: sg
Re: Need help with solution for digital resistor
« Reply #4 on: December 02, 2022, 03:24:49 am »
Perhaps a programmable current sink would do the job
 

Offline Someone

  • Super Contributor
  • ***
  • Posts: 4525
  • Country: au
    • send complaints here
Re: Need help with solution for digital resistor
« Reply #5 on: December 02, 2022, 03:33:29 am »
If you PWM a low value resistor the effective value = R*(Ton+Toff)/Ton. You would need to smooth the current somehow, not sure at present if it is practical.

P.S. I don't think it would work in this case.
It does....
https://www.eevblog.com/forum/projects/creating-controlled-resistance-to-ground/?all
 

Offline MasterT

  • Frequent Contributor
  • **
  • Posts: 785
  • Country: ca
Re: Need help with solution for digital resistor
« Reply #6 on: December 02, 2022, 03:37:03 am »
Yes, programmable current source. Same as electronic load
https://www.electronics-lab.com/400w-1kw-peak-100a-electronic-load-using-linear-mosfets/

Since current is low, one opamp like lm6500 or TCA0372 would be sufficient. Probably uCPU & DAC could be powered from the same line - 2 wire connection.
 

Offline ledtester

  • Super Contributor
  • ***
  • Posts: 3035
  • Country: us
Re: Need help with solution for digital resistor
« Reply #7 on: December 02, 2022, 03:38:14 am »
Check out this recent thread:

https://www.eevblog.com/forum/beginners/digital-adjustable-resistor/

I think the idea of switching in/out resistors in series with relays or MOSFETs is the most practical solution, for instance:

https://www.eevblog.com/forum/beginners/digital-adjustable-resistor/msg4439026/#msg4439026

Another idea which uses resistors in parallel switched to ground is mentioned in this post of mine:

https://www.eevblog.com/forum/beginners/digital-adjustable-resistor/msg4451482/#msg4451482

It references the op-amp circuit in reply #52.

Also, a device like this might be of interest to you:

https://www.eevblog.com/forum/crowd-funded-projects/high-accuracy-programmable-cute-resistance-substitution-box/

Controllable from a computer makes it suitable for automated testing.

Check the wattage of the resistors used -- I think they are 1W.
« Last Edit: December 02, 2022, 03:46:48 am by ledtester »
 

Offline Doctorandus_P

  • Super Contributor
  • ***
  • Posts: 3341
  • Country: nl
Re: Need help with solution for digital resistor
« Reply #8 on: December 02, 2022, 04:19:30 am »
Look at the bigger picture.
If the original sensor resistor is connected to GND, then it probably pulls a current from the other side. That means that your sensor emulator does not have to be a variable resistor itself, but it only has to sink a current to GND, and that can be done with an adjustable current sink, which is easy to make with an opamp, a transistor and a small value shunt resistor.

Edit:
I see now that a programmable current sink has already been mentioned twice, so consider this the 3rd time :)
« Last Edit: December 02, 2022, 04:25:21 am by Doctorandus_P »
 

Offline inse

  • Frequent Contributor
  • **
  • Posts: 654
  • Country: de
Re: Need help with solution for digital resistor
« Reply #9 on: December 02, 2022, 06:30:30 am »
If you want the meters to show specific values, it will be an additional challenge.
The thermistors do not have a linear characteristic and also the fuel level sensors may be a little more complicated than the wiring diagram shows.
 
The following users thanked this post: Someone

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 16607
  • Country: us
  • DavidH
Re: Need help with solution for digital resistor
« Reply #10 on: December 02, 2022, 08:06:33 am »
A programmable voltage or current source will work, which could mean buffering the output of a digital potentiometer or digital-to-analog converter.

Alternatively if you want a true variable low resistance, then a 3-wire digital potentiometer can operate as a multiplying DAC and that can be buffered to make a variable low output resistance by using the output voltage as the input to the digital potentiometer which then controls a current.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf