I was trying to make a simple set-up to test motor and encoder. What would be the steps I need to take to do so?
Do I just plug in motor to controller and controller to arduino?
also I really want to use pololu motor driver shield if possible, but I noticed that pololu motor driver is for DC motor but motor I have at the moment is EC motor, are there anyway to possibly use pololu motor driver shield?
My project is to use arduino to record motor position using encoder and control motor using motor controller, I am very new to this field and am very confused.
any suggestions, links or any help is much appreciated.
Like the link for encoders, it can be found in the "Playground" link found at the top of the page. I go to Arduino Playground - HomePage then, type in the search bar something like "encoder" and in my case got about 3 good examples.
That will get you started, ask more questions as needed.
The motors you have chosen are like the ones typically used with RC cars. They are basically a 3 Phase A/C motor. They work a lot like a stepper motor but, are wired differently and do not have the ability to hold a position like a stepper. They are good for power, speed, and speed accuracy.
You have a 1 pole pair motor according to the datasheet you presented.
From your motor datasheet here is the pin-out Connection
(Cable AWG 24)
brown Motor winding 1 Pin 1
red Motor winding 2 Pin 2
orange Motor winding 3 Pin 3
yellow VHall 3 ... 24 VDC Pin 4
green GND Pin 5
blue Hall sensor 1 Pin 6
violet Hall sensor 2 Pin 7
grey Hall sensor 3 Pin 8
Wiring diagram for Hall sensors see p. 27
Your driver board has details about controlling the speed of your motor. It does look like it is made for bread board, or to be added to a main board of some time.
5.1 Inputs
5.1.1 Speed range and mode selection with «DigIN1» und «DigIN2»
The digital inputs «DigIN1» [11] and «DigIN2» [12] determine both, the operation
mode (digital speed controller or digital speed actuator) and the speed
range in speed set value mode.
Motor type
DigIN1 DigIN2 1 pole pair 4 pole pair 8 pole pair
0 0 Open loop speed control, 0...100 % PWM
depending on the «Set value speed» input voltage
1 0 500...5 000 rpm 125...1 250 rpm 62...625 rpm
0 1 500...20 000 rpm 125... 5 000 rpm 62...2 500 rpm
1 1 500...80 000 rpm 125...20 000 rpm 62...10 000 rpm
Please note
ÖÖ If the signal level of the digital inputs DigIN1 [11] and DigIN2 [12] are
changed, the new levels are adopted by a disable-enable procedure.
If the input «DigIN» is not connected (floating) or a voltage higher than 2.4 V
is applied, the input is active.
Logic 1 Input not connected (floating)
Input voltage > 2.4 V
Input active
If the input «DigIN» is set to ground potential or a voltage smaller than 0.8 V
is applied, the digital input is inactive
Logic 0 Input set to Gnd
Input voltage < 0.8 V
Input inactive
The inputs «DigIN1»and «DigIN2» are protected against over voltage.
Digital input 1 Pin number [11] «DigIN1»
Digital input 2 Pin number [12] «DigIN2»
Input voltage range 0 ... +5 V
Input impedance 15 k? pull-up resistor against 5 V
I'm also using a HEDL encoder with line driver but as far as the encoder setup page goes its pretty unclear how I might wire it up an read from it. Mine is a 5640 and has 10 pins. These are some of the most common rotary encoders for motors so I'm sure someone has at least got something working? Any help would be so appreciated.
Upload folder is full but here is link to the HEDL pdf which is actualy a line driver and an encoder.