motor
nkod
Posts: 2
I have a·motor.It has·5 pins. Pin1: External Clock, Pin2: Lock Detector, Pin3: Motor Enable, Pin4: GND, Pin5: +24V.Can someone please guide me into connecting it to Propeller Demo Board?
Post Edited (nkodeih) : 10/20/2008 2:44:14 PM GMT
Post Edited (nkodeih) : 10/20/2008 2:44:14 PM GMT
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
The motor defaults to full speed with no clock.
It appears the rotation is fixed CCW.
Turn motor on and off with enable.
If you don't need speed control, then just turn the enable on and off. If you need speed control, read up on PWM, or get a PWM object, experiment with Freq and Duty, see what works. Considering the clock input is already held high with 5 volts, a simple transistor may do the job, or Darlington, with the Prop driving it.
Good luck and let us know how it goes.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
As Paul has said, it's a straight pulse follower with an internal pick-up to compare with the supplied clock signal. The faster you clock it the faster it'll spin. There is no direction control.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
Post Edited (Paul Baker (Parallax)) : 9/17/2008 6:17:22 PM GMT
No, I can't give an example code due to me not yet having written a single line of Prop code, but, to give you a direction to look in, I'd target the counters. You should be able to easily set one up to pulse at a programmable rate.
The datasheet says control frequency (in Hertz) is rpm/10. So, for 30000 rpm you would want a setting of 3000 Hz on one counter.
loop:
waitcnt cnt,13333 ' 166667 ns (half of 3 kHz).
xor output,outputbit
jmp loop
To get an idea of what the motor and ESC do look up the wiki on Brushless DC Motors, Inrunner and Outrunner. That hopefully will give you a link to ESC (Electronic Speed Control??).
Try looking up the radio control hobbies - electric aeroplanes.
You can also look at www.hobbycity.com· They sell lots of Brushless·motors and ESCs and there is some·explanation although I have not seen an inbuilt ESC.
You can't drive this motor by PWM.
You must drive it with variable frequency with 50% duty cycle.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nothing is impossible, there are only different degrees of difficulty.
For every stupid question there is at least one intelligent answer.
Don't guess - ask instead.
If you don't ask you won't know.
If your gonna construct something, make it·as simple as·possible yet as versatile as posible.
Sapieha
Your code above is already 50% duty, and should be spinning the motor. You may have a damaged motor driver.
Just for a test, unplug the ext clock input,m it is pulled high internally to 5v. Try your propeller pulse on the enable in.
Usually what gets damaged is the transistors on the front end of those drivers, maybe your enable is still ok as you stated that if you touch the enable to GND you get a single revolution. One rev should equal one pulse.
Post Edited (Originator) : 10/17/2008 3:35:05 PM GMT
The FrequencySynth.spin method is fixed at 50% duty. You can't get it wrong.
YES really ALL GNDs 3,3V, 5V, 24V
Looking at your pic (shema.jpg), unless it's hidden, you need a resistor·between the Prop output pin and the base of that transistor.
The "Enable" allows the motor to run. In most cases this would be a low level (0V), but not always.
The "Lock" signal comes from the motor controller to indicate that the RPM of the motor matches the clock frequency/10.
According to the spec sheet the motor should lock to the incoming clock in 4 seconds or less.
The "External Clock" controls the speed of the motor. The clock frequency in Hz controls the speed of the motor. The duty cycle should be 50% +/- 10%
350KHz = 35000 RPM, 25KHz = 2500 RPM.
Another reason why I'm confident is because if you divide the rpm by a further 6 then it becomes one clock per revolution. Funnily, three phase brushless trapezoidal motors use a 6 phase sensor for commutation.
Regarding the 5 volt signalling. nkodeih is already using a transistor, combined with the internal 5v pullup, to voltage shift the clock.
I presume he would have deleted the whole thread if he could. I think Mr nkodeih might have some mental stability issues.
your last post does NOT sound nice to me. I was provocant in some postings too
and have gone too far. I learned from this I hope.
English is not my native language but I think I have enough understanding to see
that this sentence makes a joke on the back of nkodeih. I explicit want to say
stop making posts in this manner.
What about possabilities like beeing on holiday for three weeks out on an island with not even a telephone
to relax completely ?
best regards
Stefan
There was nothing wrong with what he had written. They were good questions. He got to learn how to deal with both the motor and the Prop.
Now there is nothing left but our ethereal replies. Why?
Thanks,
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
Post Edited (Paul Baker (Parallax)) : 10/20/2008 11:54:32 PM GMT
My comment has nothing to do with confusion over what was said but purely instead by what was done.
Eg: The clarification of what is a GND signal is a question of basic functional diagram reading. It's not a question of language differences.