Change Trimmer / Potentiometer with digital/analog output

Hi all!

I have to hack an electronic board, but I don't have the schematic and all the details.

This board changes the speed of an electric motor ( 24Vdc ) with a 10k potentiometer.

The idea is to control the speed of the motor with an arduino. Is it possible the eliminate the

potentiometer and change the speed with an Arduino output? Or in genereal how could I simulate a

potentiometer with arduino ? I knew that there are digital potentiometer, but I was wondering if it's

possible without this.

Thanks :slight_smile:

Hi,
Can you post a picture of the electronic PCB please, both sides.

How is the Arduino to be used, what is its input?

Do you have a DMM to measure some voltages?

Thanks.. Tom.. :slight_smile:

Without a schematic, the best thing is probably to "start over" and build your own motor controller. ...Connect an H-bridge motor driver to the Arduino, add a little software, and you're done!

Or, maybe more than 'a little' software and maybe some additional hardware, depending on what you need. :wink:

I knew that there are digital potentiometer, but I was wondering if it's possible without this.

Since you want to control a pot with the Arduino, why are you opposed to that solution? (In practice there may some "issues", but functionally/logically that's exactly what you're asking for.)

Ok, I'll post a picture.

I have another question: is it possible to use the DAC ( I'm using an Arduino Zero )output to simulate the

potentiometer.

The potentiometer acts like a voltage divider right? So with the DAC output is it possible to generate

a variable voltage output and connect to the pin on the mcu that drives the motor?Or could it be

dangerous ?

Thanks

Is your 24vdc electric motor reversible? if not, driving it from an arduino is very simple - probably much easier than interfacing to your existing control board

Allan

It all depends on what the pot does. It might just set a voltage (that's easy to do with an Arduino) but it might also set a current which makes it harder. There are digital pots BUT all I've seen have the limit that the voltage on any pin may not exceed Vcc. So again, depends on the circuit if this will work.

And yes, just replacing the pot with a voltage from the Arduino (which by the way isn't a variable voltage but PWM if you don't add components) may damage the controller or the Arduino if that's not what it expects.

DCloud:
Ok, I'll post a picture.

I have another question: is it possible to use the DAC ( I'm using an Arduino Zero )output to simulate the

potentiometer.

The potentiometer acts like a voltage divider right? So with the DAC output is it possible to generate

a variable voltage output and connect to the pin on the mcu that drives the motor?Or could it be

dangerous ?

Thanks

Anything is possible, there's not much point speculating until we understand the board itself, and we
don't have those pictures or any information on it at all yet...

And yes, just replacing the pot with a voltage from the Arduino (which by the way isn't a variable voltage but PWM if you don't add components) may damage the controller or the Arduino if that's not what it expects.

He is using a Zero so it does have a D/A. However as it it then it is totall unsuitable for direct connection to your motor controller.
At best you need some level shifting circuits, like op amps, to get the signal to the right level.

Hi Grumpy_Mike ,

my idea was to connect the D/A output of the Zero to the input of the mcu driver where it's now

connected the potentiometer.( I don't have the schematic but it's a 10k potentiometer connected to

5V,GND, and the other pin goes into the mcu which drives the speed of the motor )

Do you suggest to use an amplifier?

it's a 10k potentiometer connected to 5V,GND,

In that case you will destroy your Zero if you connect it up directly as the Zero is only a 3V3 device.

Also with the D/A on the Zero you don't even get the full range output. You only get from 1/6 to 5/6 of the VCC.

Do you suggest to use an amplifier?

Yes

About the 5Vdc yes I knew that I should take some cautions for the 3V3 device.

How do I have to use the amplifier? Do you have a link or an example ?

Thanks :slight_smile:

See this How to modify analog output range of Arduino Due - Hackster.io

Thanks :slight_smile: