Arduino and AD5206

Hi,

I’m trying to configure an Arduino UNO with a digital potentiometer, the AD5206. The UNO is to read a 0-5v output from a sensor (Tech-Edge Mode tank sensor) and AD5206 convert it to a resistance to be read by a following circuit, Victron Cerb.

The application is to read the water level in a water tank based on the sensor, that reads a varying capacitance based on the level in the tank and outputs a 0-5 volt signal to a resistance that is read by an instrument panel on a boat.

Any and all ideas are appreciated.

Thanks,

Lou

Take your resistor readings from empty and full, then use the MAP() function to your DAC.

If it were me I would just connect the sensor to the instrument panel. You can also use a op-amp as a unity gain buffer but it will probably need more then 5V depending on which you you pick. Connact that to the A/D input with a 10K resistor to the A/D. Be sure to place a diode from the A/D input to +5 to adsorb the turn on transient.

Hi, @loumolettiere
Welcome to the forum.

Have you Googled:

ad5206 arduino

There is even a library for the digital pot.

Tom.. :grinning: :+1: :coffee: :australia:

The AD5206 is 10K ohms, are you sure that will work with the Victron Cerb?

Yes, thanks. I thought I use a resistor in parallel, about 270 ohms that would provide a total resistance of about 265 - 1 ohms as the wiper dropped from 10k down to 1. Also, thought about using a 1k digi pot but not sure the steps will be as smooth as drop.

What voltage (or constant current) does that instrument apply to the sensor resistance? A digital pot may not be able to handle it.

I'm trying to use a Arduino Uno to convert a reading from a water tank sensor and convert it to a digital output to a digital potentiometer, such as a Analog Digital 5206, which then presents a resistance to a display panel.

Anyone have any experience or ideas on this configuration? Thanks.

What sensor?

Have you written any code?

Do you have a schematic or circuit diagram?

So what have you tried? Where are you stuck?

As always, break the problem down; take one step at a time; eg,

  1. Read the tank sensor alone;
  2. Control the Digital Pot alone;
  3. Combine the two.

What is the display panel? Why do you need a potentiometer to transfer data to it?

1 Like

It would help if you answered all the questions from your previous post on this same topic.

1 Like

@loumolettiere, please do not cross-post. Threads merged.

1 Like

Instrument panel applies 7 volts, which I have learned pushes the current on the AD5206 beyond its capability. so I'm looking for a different digital pot . Thanks for the reply.

Thanks. Have tank sensor, and display readings, and now know that the devices I was trying to put together won't work - too much current for the potentiometer. So, I am now back at the drawing board trying to redesign the project.

Sorry, not trying to be too thick headed, but I don't understand how this would work - the sensor generates a 1-5 volt signal depending on the water level in the tank, but the display is looking for a resistance reading. I was trying to take the analog 1-5 volt sensor reading and use the ADC to produce a digital code to the digital pot that would vary the resistance for the display panel. Am I way off base with this concept?

Using a Tech Edge Moda sensor, but I'm not locked into that sensor. Haven't written any code yet still trying to "fit" the pieces together. I've learned the digital potentiometer will not work, so I'm back to the drawing board there. Maybe I'm outrunning my headlights. Thanks for the reply

Try this link: Digital Pots Achieve Voltage-to-Resistance Conversion | Analog Devices Here is another link that may help Voltage-controlled resistor - Wikipedia

Thank you. I’m going to try this, it looks much cleaner than what I’ve been trying to configure. Appreciate the idea and help.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.