Arduino speed controller

Hey guys need help

Im looking to use an arduino to control the speed of a pwm motor speed controller.

i was thinking to use i2c dac 0-5v instead of the potentiometer, but it turns out theres 10v on the pot with about an 86k ohm across the external pins

this is a link to the speed controller ive also attached a couple photos.

i have to double check the reading on the wires when i get home tomorrow but with the potentiometer removed i had

10v between black and yellow

and

10v black and red

and

0v between yellow and red

So i want to know the easiest way to hook up the arduino to control this speed controller.

ive read i can use a cheap op amp is this correct ?

also how do i connect the wires up?

thanks in advance.

second attachment

That looks like a nice device. I really like the photo of the back of the board. Someone really thought about that and invented the manufacturing process to make it.

But the Arduino is a PWM controller. You just need the high-power output transistors. The rest of that board is unnecessary. If you can't wait for the correct board (usually called a motor driver) to be shipped to you, you could desolder the chips on that board and connect the Arduino PWM output direct to the output transistors.

i think there's a misunderstanding I'm not looking at making my own speed controller.

i just want to replace the potentiometer with an arduino that i can remotely control if that makes sense.

I'm looking at wiring it up like in this attachment would that work or am i way off.

That might work.

Hi All,
Can you use a digital pot?
Herb

The 10V across the pot is an issue for a digital pot. Very few or none can work higher than 5V nominal.

I assume that the red board shown in your rough schematic is a DAC, which feeds the opamp.

I would recommend using a separate power supply for the motor controller. Switching noise will effect the Arduino, and maybe even kill it.

I don't understand why the motor controller uses a double stacked pot. The red and black wires from the pot are not making sense to me. Is there a switch built into the pot? You already have a on off switch.

If that really is a double stacked pot you are going to have trouble replacing the pot with an Arduino without understanding why there are two pots. The group of three wires makes sense, the red and black are a mystery to me.

herbschwarz:
Hi All,
Can you use a digital pot?
Herb

sorry no idea what a digital pot is but will google it now

amdkt7:
I assume that the red board shown in your rough schematic is a DAC, which feeds the opamp.

I would recommend using a separate power supply for the motor controller. Switching noise will effect the Arduino, and maybe even kill it.

I don't understand why the motor controller uses a double stacked pot. The red and black wires from the pot are not making sense to me. Is there a switch built into the pot? You already have a on off switch.

If that really is a double stacked pot you are going to have trouble replacing the pot with an Arduino without understanding why there are two pots. The group of three wires makes sense, the red and black are a mystery to me.

the two wires red and black are an on off switch

the pot seems to control the speed.

i did a little more searching and discovered that there is a 555 ic timer for the pwm to the transistors.

ill attach a similar circuit that i think it is but im not sure.

Any one know how can i replace or control this

Capture3.PNG

Capture3.PNG

That circuit can only drive the motor in one direction. The controller board you have is more complex, but ultimately uses the same principle.

MorganS:
Capture3.PNG

That circuit can only drive the motor in one direction. The controller board you have is more complex, but ultimately uses the same principle.

it has a 3 position switch centre off forward labelled as one and reverse labelled as 2 which pull in relays. i assume they flip the positive and negative terminals around.

im looking at replacing VR1 somehow with the arduino is that possible to make it work ?

I built a circuit like that once to control fan speed. I did use a digital pot in place of the analog pot. I believe I found the range to be limited, or tricky to get right. But in your case the 555 is running on 10v, and digital pots that work at that voltage are harder to find.

My current project makes use of a digital pot that would handle the voltage range. It's a bit of a high end part, very high resolution, and little expensive: AD5292BRUZ-100-RL7, https://www.digikey.com/product-detail/en/analog-devices-inc/AD5292BRUZ-100-RL7/AD5292BRUZ-100-RL7CT-ND/3821329

I know this part would work with the 555, but it seems like the wrong way to go about it. The whole point of the 555 is to produce the PWM, which the arduino can handle just fine (the frequency is not as has as the fan motor wants, but for most projects it is okay). Your motor might be more demanding than a simple computer fan, hence a 555 to produce the higher PWM rate. I had trouble getting my 555 to go above 20KHZ, the output voltage dropped.

I think the first thing that you need to determine is what your motor actually needs. I don't think you specified what motor you are using, or what you are trying to control. That will determine what direction you need to go, but I am suspecting that you need a different motor controller, one that can take digital commands (I2C perhaps).

Microchip makes a 36 volt capable digipot, $1.50 qty 1.

MCP41HV51 from DigiKey

WattsThat:
Microchip makes a 36 volt capable digipot, $1.50 qty 1.

MCP41HV51 from DigiKey

Much better choice than mine. You probably don't need the resolution that my project required. The microchip should work well.

thanks
I've ordered a couple will update when i get them and have a go.

so i finally have all the stuff i think

I'm now looking at connecting it all up

But i need some help as the product data sheet doesn't make much sense to me.

i bought the MCP45HV51-104E

I will be connecting to my arduino nano and the speed controller

what do i put on pins

VL
DGND
V+
V-

do i pick one as a power supply or do i need to connect both and if so which way around

i will be using 5v for the nano

and the speed controller will be on 9-13Vdc as the battery drains

This is the way i thought it should be connected. if anything is wrong can you point it out and why

so next time i dont make the same mistake.

1 VL 5v same as arduino uno
2 SCL A4 on arduino uno
3 A1 Output on arduino for address
4 SDA A5 on arduino
5 A0 Output on arduino for address
6 WLAT Not connected
7 NC connected to ground
8 SHDN Not connected
9 DGND Ground
10 V- 0 volts same as speed controller, also connected to ground
11 P0B Potentiometer 0 Terminal B
12 P0W Potentiometer 0 Wiper Terminal
13 P0A Potentiometer 0 Terminal A
14 V+ 9-13vdc supply same speed controller

thanks

The pins A0,A1 are used to program the device's address. I would tie both to ground, which I believe will make the device address 0. There is a table that shows how to then address address 0.

The WLAT pin should probably be tied LOW, to ground. Otherwise the values that you write to the device will be not applied until the WLAT pin does go low. It should not be floating, or not connected.

The SHDN pin will need to be tied high to enable the output.

Looks like the rest of the pin assignments are correct, but you will really have to study that datasheet.

Do you have a Arduino library for this device? If not you are going to have to really dig into how to send this thing commands.

If none of those ideas works you can always hotglue the knob to this servo and then use voltage divider feedback and the PulseIn function to measure the pwm output, and control the servo using the Servo() Library