Hi . I have purchased a DFR0061 joy stick a DRI0042 motor driver and aCE05101 nano board from Core Electronics today to control the speed and direction of a 12 volt 8.33 A 60 w GPG DC motor.
Might sound like a silly question (i am a first time at electronics) could some one send me a wiring diagram to join it all up . I would like to have the joy stick in a in its own box with a lead into the motor controller enclosure . I will be using a 12 volt lead acid battery to run it as I will not have any mains power to convert to DC .
Any help would be much appreciated
Paul
Hi Paul
Welcome.
The wiring for what you want to do is in the product description page for the motor driver along with an Arduino UNO demo sketch.
You will have to check the pin numbers on the UNO and Nano but I think they might be the same or very close.
Exactly how do you want to use the Joystick. I imagine that you only need the one axis for example the Y axis (forward and back). Need to make sure the joystick potentiometer is 5kΩ or greater (not too much greater), 10k would be OK. Also the centre of joystick travel is centre of pot resistance. This is pretty important.
The wiring would be as diagram on Core site with the addition of the joystick. Joystick Gnd to Arduino Gnd, Joystick VCC to Arduino 5V, Joystick Y axis to Arduino A0 pin.
I have done this before, using a single Potentiometer for forward and reverse speed control. I can dig up the code (I think) or rewrite it and modify the example.
I would strongly use the existing example found on the product Wiki page before you go getting fancy. Do this without the joystick connected. When that works as intended you can do the rest.
If the motor turns the wrong way for you simply reverse the connection AT THE MOTOR. This will keep the wire colours correct.
This may involve some soldering so what are your skills like in this field. If you are going to make something permanent out of this you will need this skill so if you are lacking start practising NOW.
Cheers Bob
PS: By the way, 12V @ 8.33A is 100W. Which is correct 60W, 100W or 8.33A. It is possible you are quoting the stall current of the motor.
1st lesson in posting for help. Accuracy please. Makes it easier all round.
Hi Robert
Thanks for replying to my plea for help. I already had that diagram printed out, but I could not work it out because of the micro nano I have being so different . looking at the 2, the one I have does have pin numbers that are the same as the screw connections on the demo sketch . Does that sound correct?
I have had this set up running for around 10 years or so from equipment that I purchased from motion dynamics . it packed up and they don’t have a replacement driver for the can help me out with. The stuff from Core is much smaller . I guess electronics has changed a lot in that time.
All it needs to do is through the joystick, the centre being no movement control the speed and direction of the motor from 0 to full speed . It mainly runs at about 40% and only for short spells.
I got all the motor information of the motor, and it does say 12 v 8.33 amps and out power 60w . For some reason I cannot attach a photo to this email.
Thanks again for your help . I will try and get it running tomorrow and let you know how it goes.
Hi Paul
Not knowing EXACTLY what you have I have no idea.
I said the pin numbers on the Nano look like the same as the UNO depicted on the info sheets.
I had a quick look at the part numbers you listed (at different times) and I think they are the same. You need 1 x PWM pin and 2 x I/O pins. What I mean is the pin numbers do the same thing on both units. If not you have to modify the demo sketch to suit.
I can’t check as I don’t know what the motor is EXACTLY.
BUT I don’t care what it says Watts equals Volts x Amps and 12 x 8.3 = 99.6W. So either what is printed is crap or you are misinterpreting the data sheet for this unknown motor.
It certainly has.
Cheers Bob
Just checked the UNO and NANO.
The same pins do the same job.
They don’t refer to the logical board pins but rather to the digital I/O number
SO on the UNO D4, D5, D6 are used for D4, D5-Direction and D6 is the PWM
The same pins are used for the same functions on the Nano. D4, D5, D6.
Any other pins are marked and are self explanatory like Ground, 5V, Reset etc.
This means you can run the demo sketch without alteration.