Pages: [1]   Go Down
Author Topic: Motor connection help  (Read 1576 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi everyone,
I am very grateful that you have opened this post, and considered helping me!  smiley

I recently bought a robotic development platform, and the documentation that came along were for the old version of the kit!  smiley-eek-blue The new version has new motors with encoders. The hardware i then bought does not work with what i bought... The firm i bought it from is located in china, therefore i will try you guys, to see if you have a solution...

The motor wiring is as follows:

(1) BLACK = negative -
(2) RED = positive +
(3) YELLOW = Hall sensor Vcc
(4) GREEN = Hall sensor Gnd
(5) BLUE = Hall sensor A vout
(6) ORANGE = Hall sensor B vout

My hardware is as follows:

(1) Motors http://www.dfrobot.com/index.php?route=product/product&filter_name=DC%20motor&product_id=777#.Uho44fmnozB
(2) Microcontroller http://www.dfrobot.com/index.php?route=product/product&filter_name=romeo&product_id=844#.Uho5TfmnozA
(3) Motor controller http://www.dfrobot.com/index.php?route=product/product&filter_name=2a%20motor%20controller&product_id=66#.Uho5fvmnozA
(4) Power source is 12v 7a car battery

I have wired the positive and negative from both motors to my 2A motor controller, and i think the Gnd and Vcc from the motors are Gnd on microcontroller and 5v on microcontroller???
What is wire 5 and 6, and do i need to purchase more hardware???
And how do i control the motor controller? If you look at the link, it has several pins on it that is meant to be connected to the microcontroller.

Sincerely,
VictorAchton  smiley
Logged

0
Offline Offline
Sr. Member
****
Karma: 8
Posts: 394
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Your motor controller is based on the well documented L298 chip, often covered in this forum.

"logic supply power" is 5v coming from the Arduino.  "Motor power" is your 12v supply.  "Common Ground" should connect to your main Power ground and to the Arduino ground.  Each motor has 2 control pins.  One is clearly for PWM speed control. The other must be for motor direction but the sample software is poorly documented.  E1,E2 are the PWM pins in the software.  M1,M2 probably are direction.

Quote
The hardware i then bought does not work with what i bought.
You can relax a bit.  The stuff will work fine once you understand it properly.  You need to read up on  H-Bridge motor control and using the L298.  Search and you shall find.

The motor description mentions "Encoder Resolution: 13 PPR"  and "Two phase hall encoder" 
Pin 3 = 5+ logic voltage   Pin 4 = Gnd
Pin 5 & 6 goto to pins on your Arduino to count motor revolutions.  You need more specific documentation.

Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Which are the motor control pins on the motor? And thank you for your reply! smiley
Logged

0
Offline Offline
Sr. Member
****
Karma: 8
Posts: 394
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Which are the motor control pins on the motor?

I am not sure what you mean.  Brushed DC motors are 'controlled' by the power input.  In practive it is difficult to vary voltage so we vary current instead.  That's the reason for the PWM input which is normally a square wave with a varied duty cycle.

Looking again at your motor I noticed a stall current of 3.6A, too high for the controller.  You need a higher current controller or lower power motors.  What is the application?
Logged

Victoria, Australia
Offline Offline
Edison Member
*
Karma: 46
Posts: 1649
Electronics Engineer/Industrial Control
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

(1) BLACK = negative -
(2) RED = positive +
(3) YELLOW = Hall sensor Vcc
(4) GREEN = Hall sensor Gnd
(5) BLUE = Hall sensor A vout
(6) ORANGE = Hall sensor B vout

(1) Is motor supply negative
(2) Is motor supply positive
(3) Is positive supply for Hall Effect Encoder
(4) Is GND supply for Hall Effect Encoder
(5) and (6) are the  outputs from the encoder.
The two outputs labeled A and B means that they are phased outputs, both have same number of pulses per turn of the shaft, but they are phase shifted with respect to each other by 90deg, this allows you to sense speed and direction of rotation.
You can run and control the motor without using (3,4,5,6).

However I'm not sure about PWM controlling a DC brushless, CPU fans are DC Brushless but they use an extra input to control their speed.

DC Brushless motors have their own pulsing circuits to drive the rotor around like an AC synchronous motor.

Tom
Logged

Everything runs on smoke, let the smoke out, it stops running......VK3DMK

0
Offline Offline
Sr. Member
****
Karma: 8
Posts: 394
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Why do you think they are brushless?  That would be most unusual for robot wheel motors.

Brushless motors require a Brushless ESC such as used on model airplanes and helicopters.
Logged

Victoria, Australia
Offline Offline
Edison Member
*
Karma: 46
Posts: 1649
Electronics Engineer/Industrial Control
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Deeeeeeeeeerrrrrrrrrrrrrrrr homer simpson moment, brushed does not equal brushless.
I was late at night, I should have gone to sleepy bo bo a lot earlier.
Tom. smiley-confuse smiley-sleep smiley-sleep
Logged

Everything runs on smoke, let the smoke out, it stops running......VK3DMK

Pages: [1]   Go Up
Jump to: