Hello
I am trying to work on controlling 4 different motors with FRDM-KL25Z board.
I have checked it only has 2 SPI, but I want to control 4 motors individuially, could you give me advice how I should set it up?
and how can I make the individual motor to read like "aaaabbbb" a for motor1 b for motor 2 in one code?
Hi,Yonggun,
As you said, the motor type is "brushless inrunner motors. 14.5W 28,500 RMP", it is a brushless DC motor(BLDC), the motor should have three power lines:PhA/PHB/PHC, in most case, the motor should have position sensor: Hall or Encoder. In conslusion, the interface of the BLDC should have the signal:
power lines: PhA, PhB, PHC, all are input pins,
The Hall sensor needs 5V power supply, so this is the sensor signals from motor perspective:
+5V Dc power line, input pin
GND
HallA signal, output pin
HallB signal, output pin
HallC signal, output pin.
The required resource of BLDC motor includes 6 PWM signals, three Timer with capture function to provide position and speed, ADC to sample Dc voltage and over current, PIT to generate interrupt with fixed cycle, SCI port to display parameter
If the motor type is BLDC, the FRDM-KL25Z can only control one BLDC, because the total FTM channels is 8+2+2=12, some of channels are used to capture hall sensor signals.
If the motor type is DC, it is dependent on the layout you are using, if you use H bridge to control a DC motor, you can control 3 Dc motor, if you use one PWM pin to control one DC motor, you can control 12 DC motor.
Hope it can help you
BR
Xiangjun Rong
Hello
What I am trying to do is that I want to test to see if thr FRDM-KL25Z is compatible with AR.drone 2.0
I think the motors are DC, but it has 5 pins.
Below are the pin information that I found
Pin 1 Battery 11.4V
Pin 2 VCC 5V (ATMega8a VCC Pin4+5)
Pin 3 TX+RX (ATmega8a Pin30+31)
Pin 4 IRQ to main board (ATmega8a PC3 Pin26)
Pin 5 GND
Pin 1 Red
Pin 2 White
Pin 3 Motor1=Yellow,M2=Orange,M3=Blue,M4=Green
Pin 4 Motor1=Purple,M2=Gray,M3=Brown,M4=Pink
Pin 5 Black
Hi, Yonggun
You need to provide your motor spec to us. Then we can give you some solution on it. Thanks.
Best Regards
Paul
The motor specs are below
Fly high. Fly fast. Far away from the ground.
Also, I can see the 5 pins coming from the motor.
Pin 1 Battery 11.4V
Pin 2 VCC 5V (ATMega8a VCC Pin4+5)
Pin 3 TX+RX (ATmega8a Pin30+31)
Pin 4 IRQ to main board (ATmega8a PC3 Pin26)
Pin 5 GND
Pin 1 Red
Pin 2 White
Pin 3 Motor1=Yellow,M2=Orange,M3=Blue,M4=Green
Pin 4 Motor1=Purple,M2=Gray,M3=Brown,M4=Pink
Pin 5 Black
These are the pin information that I found.
I want to control them with FRDM-KL25Z board and fly it.
could u give me some advice?
Hi, YongGun,
Can you tell me the type of motor or the interface of motor, for example ACIM, PMSM, DC, BLDC, SR or stepper motor. I suppose you use stepper motor, if it is the case, what is the motor interface, in other words, what is the interface signals the motor has.
Can you give me your contact inf so that I can call you.
BR
XiangJun Rong
Mr. XiangJun Rong
I live in US, and I don't know where you live, so it might not helpful to give you the call #.
my email address is yongari12@hotmail.com
The motor specs are below
Fly high. Fly fast. Far away from the ground.
Also, I can see the 5 pins coming from the motor.
Pin 1 Battery 11.4V
Pin 2 VCC 5V (ATMega8a VCC Pin4+5)
Pin 3 TX+RX (ATmega8a Pin30+31)
Pin 4 IRQ to main board (ATmega8a PC3 Pin26)
Pin 5 GND
Pin 1 Red
Pin 2 White
Pin 3 Motor1=Yellow,M2=Orange,M3=Blue,M4=Green
Pin 4 Motor1=Purple,M2=Gray,M3=Brown,M4=Pink
Pin 5 Black
These are the pin information that I found.
I want to control them with FRDM-KL25Z board and fly it.
could u give me some advice?
Hello.
I am working on checking compatiblilty FRDM-KL25Z with AR.drone 2.0.
I assume it is four DC motors. It seems like I need to send signal through SPI port, but i dont know how I should because FRDM-KL25Z only has two SPI pins.