Best way for feedback with RC ESC spindle?

More
24 Apr 2012 17:14 #19497 by CptanPanic
I like the idea of having a closed loop spindle controller, and see all the software is available in LinuxCNC. What is the cheapest way to get feedback from the motor back into LinuxCNC?

Please Log in or Create an account to join the conversation.

More
24 Apr 2012 21:20 #19508 by BigJohnT
Some folks build an encoder using opto sensors and a disk with slots on it.

John

Please Log in or Create an account to join the conversation.

More
25 Apr 2012 09:13 - 25 Apr 2012 09:43 #19515 by ArcEye

Some folks build an encoder using opto sensors and a disk with slots on it.

Something like this
www.linuxcnc.org/index.php/english/compo...imit=6&start=6#14832

with an opto switch circuit like this
www.linuxcnc.org/index.php/english/compo...id=26&id=17960#18093

regards
Last edit: 25 Apr 2012 09:43 by ArcEye.

Please Log in or Create an account to join the conversation.

More
25 Apr 2012 15:31 #19529 by CptanPanic
With a brushless motor, shouldn't you be able to get rpm from sensing pulses on a motor line?

Please Log in or Create an account to join the conversation.

More
25 Apr 2012 15:53 #19531 by ArcEye

With a brushless motor, shouldn't you be able to get rpm from sensing pulses on a motor line?

Yes, if you know how to build a circuit to do that and can eliminate other interference.

You just need to be able to sense the 'blip' as each pole rotates and then divide by number of poles to get RPM.
Afraid I don't know how practically you do it though.:(

regards

Please Log in or Create an account to join the conversation.

More
26 Apr 2012 12:53 #19553 by CptanPanic
I found this : www.hobbyking.com/hobbyking/store/uh_vie....asp?idProduct=17552 that someone (diydrones.com/forum/topics/brushless-mot...6002&page=2#comments) has connected the output to an arduino, and was able to get 1 pulse per rpm. The only problem was the arduino was only able to capture to 14000 rpm. Can this output be instead connected to an input port in linuxcnc, and capture the full rpm?

Please Log in or Create an account to join the conversation.

More
26 Apr 2012 16:19 #19558 by ArcEye
So long as it outputs a clean pulse once per rev, you should be able to use it as the basis for a signal for encoder.nn.phase-Z.

The testing bit will be whether your pulses exceed the capacity of the encoder to register them.
Some of that will be dependent upon the speed of the thread.

We don't generally have spindles which exceed say 3,000 rpm on CNC machines, let alone over 14,000!

What speed are you expecting to run it at?

Hopefully one of the electronics boffins is monitoring this and can definitively advise

regards

Please Log in or Create an account to join the conversation.

More
26 Apr 2012 16:35 - 26 Apr 2012 16:38 #19560 by PCW
Because of the PWM modulation of the commutation signals from the ESC and therefore need for a multipole low pass filter and also possible isolation/groundbounce issues, I would probably dump the direct ESC tap and just use an opto interrupter, reflective sensor, or Hall pickup (a 50% duty cycle interrupter could be read up to ~300,000 RPM (5000 Hz) with a a decent (10 KHz) base thread
Last edit: 26 Apr 2012 16:38 by PCW. Reason: punct

Please Log in or Create an account to join the conversation.

More
27 Apr 2012 11:27 #19579 by andypugh
ArcEye wrote:

With a brushless motor, shouldn't you be able to get rpm from sensing pulses on a motor line?

Yes, if you know how to build a circuit to do that and can eliminate other interference.


If there are Hall sensors, then it is just a matter of using one of them twice.

<thinks> bldc.comp could very easily have an rpm pin added.

Please Log in or Create an account to join the conversation.

More
24 May 2012 18:05 - 24 May 2012 18:07 #20346 by kbailey204
Here. Someone has already done all the heavy lifting for you.

logicnc.com/rcnc.html

EDIT: NVM. I thought that controller was closed loop. I think it is only for open loop control.
Last edit: 24 May 2012 18:07 by kbailey204. Reason: messed up

Please Log in or Create an account to join the conversation.

Time to create page: 0.138 seconds
Powered by Kunena Forum