Go Down

Topic: Integrating Uno into existing system (Read 785 times) previous topic - next topic

casenes

I have two 24 Vdc motor systems that I want to control with a UNO. Each of the existing systems consist of:

   (1) 24 Vdc .2 hp motor
   (1) motor controller
   (2) 12 V lead acid battery
   (1) potentiometer (0 - 5 V)

I want to replace the two potentiometers with the UNO and eliminate one set of batteries.

I can create the voltages I need via the Analog outputs, but don't know how to power the Arduino.

Thanks.

johnwasser

You can use the 'lower' 12V battery to power the Arduino.  Connect +12V to the power jack or the Vin pin. 
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

casenes

I wired the two terminals of one battery to the Arduino power jack, but that caused false readings from the Arduino analog pin.

MarkT

Often motor controllers have a potentiometer failure-detection circuit for safety:

This means that trying to replace the potentiometer with just an anlog output (low-pass-filtered PWM) won't work - you have to also replace the pot with a suitable resistor, and also drive the wiper connection with analog.  Controllers commonly assume that if the pot stops taking a suitable amount of current then the controller should shutdown as something has gone open-circuit or shorted and the wiper voltage is giving an erroneous reading...
[ I won't respond to messages, use the forum please ]

johnwasser


I wired the two terminals of one battery to the Arduino power jack, but that caused false readings from the Arduino analog pin.


What kind of 'false readings'?
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e


johnwasser


-10v instead of +2v


The Arduino can't read negative voltages and can't read voltages higher than 5V.

If you are getting negative voltages at the Arduino you probably used the wrong terminal for Ground.  You should connect the Arduino ground to the negative end of the battery pack.  Then connect the center of the battery pack to the Arduino Vin.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

casenes

I'm powering the Arduino through its external power supply.

If I connect the positive and negative lines of my power adapter to one battery, I get 12V, and can run the Arduino, but the voltage I read from the pot on the UNO is incorrect.

If I connect the positive and negative lines of my power adapter to different batteries, then I have 24V at the power adapter.

I did not run a ground to the UNO. Should have I?

retrolefty


I'm powering the Arduino through its external power supply.

If I connect the positive and negative lines of my power adapter to one battery, I get 12V, and can run the Arduino, but the voltage I read from the pot on the UNO is incorrect.

If I connect the positive and negative lines of my power adapter to different batteries, then I have 24V at the power adapter.

I did not run a ground to the UNO. Should have I?


English words are not the best way to explain exactly how you have stuff wired up. A schematic drawing is the universal language of electronic circuits and wiring and should be used if at all possible when seeking accurate help with problems. So even if you have to hand draw it and take a picture and post that, it's usually much better then hoping others understand what you done with your wiring.

Lefty

casenes

I ordered a step-down converter. It should be here Thursday. I'll post the results.

casenes

The step-down converter works.

I am measuring the expected voltages.

Go Up