Welcome, Guest. Please login or register.
Did you miss your activation email?
February 12, 2012, 03:11:51 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  Feature Requests
| | |-+  New Spindle Output Option
Pages: 1   Go Down
Print
Author Topic: New Spindle Output Option  (Read 1207 times)
0 Members and 1 Guest are viewing this topic.
skmetal7
Holding

Offline Offline

Posts: 1


View Profile
« on: June 06, 2010, 05:10:12 PM »

Ok so many of us have been looking into brushless motors from the RC industry to drive our high speed spindles. I was thinking, if you guys could implement the control scheme to drive a brushless motor Electronic Speed Control or ESC. What this ESC needs to run is a modified version of a PWM square wave. Its a 1-2ms pulse every 20ms at 5v. So 1-2ms pulse @ 50Hz (0 rpm @ 1ms, full rpm @ 2ms).  

-____-____-____  <---- 1ms   --___--___--___  <---- 2ms

Also have an arming feature built in since some have a safety feature where they need to have the "throttle" at a certain pulse rate ( 1.5ms or whatever) for a second or so when you first turn it on ( just have a box to enter a wait period, and ms pulse length).  So if mach3 reads an m3 command, it will activate a relay, turning on the spindle ESC. I guess this could be tied into the Dwell feature of mach3... not sure...

Right now I getting help programming an arduino to take mach3's normal square wave and convert it to this control scheme.  But if you can do this, this extra electronics won't be needed.
« Last Edit: June 06, 2010, 05:16:41 PM by skmetal7 » Logged
David_Web
Active Member

Offline Offline

Posts: 29


View Profile
« Reply #1 on: October 07, 2010, 12:28:24 PM »

I second this.
I was just bout to post the same thing as I have been looking at a cheap motor + driver that would work as a spindle.

Been thinking bout using Arduino or rather Teensy to do the same.
btw what bout using Teensy as an IO extender board? Or someone might have thought of that already.
Logged
DaOne
Active Member

Offline Offline

Posts: 224



View Profile
« Reply #2 on: October 14, 2010, 09:02:23 PM »

I was working on this a while back. Basically it took Machs spindle PWM output and converted it from a 1ms (stopped) to 2ms signal (Full speed). This would allow a hobby speed controller to act as a drive for a brush less motor spindle. Then you were able to add a rpm sensor and even use the PID built into mach to set and maintain speed. I was  also adding phase control with 2 relays so you can switch 2 of the 3 wires around and get cw and ccw control. The hardware was a pic micro with lcd to display output. If there is enough interest I will see what I can do to continue finishing it.
Logged
David_Web
Active Member

Offline Offline

Posts: 29


View Profile
« Reply #3 on: November 05, 2010, 04:58:21 PM »

Any update?

skametal7: Did it work out with Arduino?
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!