CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Electronics > General Electronics Discussion


General Electronics Discussion Discuss basic electronics, power supplies and anything else electronic related here.


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 06-04-2010, 03:11 AM
 
Join Date: Dec 2005
Location: USA
Posts: 402
skmetal7 is on a distinguished road
Mach3 ---> Brushless ESC interface with arduino?

Problem: Control a brushless ESC through Mach3

Idea: Program an Arduino microprocessor to convert mach3's PWM spindle output to a brushless ESC's 1-2ms input signal. A brushless ESC needs a 1-2ms on time every 20ms.

_____-_____-_____-
____--____--____--

Also have the Arduino ramp up from zero to the set speed in mach3.

Conundrum: I don't know how to program
__________________
Shaun
my x2 conversion ------> http://www.cnczone.com/forums/showthread.php?t=36403
Reply With Quote

  #2   Ban this user!
Old 06-04-2010, 02:39 PM
 
Join Date: Dec 2005
Location: USA
Posts: 402
skmetal7 is on a distinguished road

kinda getting somewhere with this in this arduino forum: http://www.arduino.cc/cgi-bin/yabb2/...=1226292633/30 (bottom of page)

i guess programming knowledge would go a long way here :/
__________________
Shaun
my x2 conversion ------> http://www.cnczone.com/forums/showthread.php?t=36403
Reply With Quote

  #3   Ban this user!
Old 06-05-2010, 12:22 PM
 
Join Date: Oct 2008
Location: US
Posts: 115
bharbour is on a distinguished road

A digital solution like a microcontroller would be the most stable, but you could also do this in an FPGA or in straight analog.

BobH
Reply With Quote

  #4   Ban this user!
Old 06-06-2010, 06:36 AM
 
Join Date: Sep 2006
Location: romania
Posts: 218
eSilviu is on a distinguished road
Cool one possible solution

I would do ths way:
1. smoth PWM signal from parallel port (Mach controlled) with a RC filter (you will get 0V for 0% PWM and 5V(or 3.3V) for 100% PWM);
2. read this signal with ADC module of any available PIC;
3. compute in PIC the "servo signal" needed to control the brushless ESC.

you will need:
- R+C filter, 5V PICxxFXXX, a filtering 100nF capacitor on the PIC supply, optional LED+R
- maxim 50 code lines, writed in a high level programming language for PIC (I recommend Mikropascal/MikroC/Mikrobasic - free verion is powerfull enough for this application)
Reply With Quote

  #5   Ban this user!
Old 01-28-2012, 02:20 PM
 
Join Date: Feb 2011
Location: Russian Federation
Age: 33
Posts: 6
kretov is on a distinguished road

Still actual?
I was wondering about the same problem last summer. I haven't managed to find an existing design quickly, so I decided to make the converter myself. The PIC controller was chosen because it was the only MCU type I had a programmer for
The device is very simple. It sonsists of PIC16F629 controller, a capacitor and a LED to indicate its operation.
Click image for larger version

Name:	IMG_4270_small.jpg
Views:	42
Size:	104.5 KB
ID:	151343
The converter is connected between any available LPT output pin and ESC. Provided that large speed controls for large brushless motors usually do not have BECs, the ESC's BEC is not used and not connected. The device uses +5V power supply from BOB or PC.
The scheme and PCB layout are simple. I have used my CNC mill to engrave the PCB
Click image for larger version

Name:	EscConverter Scheme.png
Views:	122
Size:	25.1 KB
ID:	151344 Click image for larger version

Name:	EscConverter PCB.png
Views:	74
Size:	6.4 KB
ID:	151345
The recommended PWM frequency setting for Mach 3 is 350, active is high.
You can see here how it works:
The firmware file for PIC is in the attachment.
Attached Files
File Type: zip EscConverterHex.zip‎ (1.7 KB, 47 views)
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 02-02-2012, 01:17 AM
 
Join Date: Dec 2005
Location: USA
Posts: 402
skmetal7 is on a distinguished road

This is cool. It kind of sounds like the motor is revving up and down, how stable is the RPM? You could probably put a disk with a hole and an interrupt switch to let mach know the actual speed.
__________________
Shaun
my x2 conversion ------> http://www.cnczone.com/forums/showthread.php?t=36403
Reply With Quote

  #7   Ban this user!
Old 02-02-2012, 11:58 AM
 
Join Date: Feb 2011
Location: Russian Federation
Age: 33
Posts: 6
kretov is on a distinguished road

I haven't performed a research of how stable RPMs are, but can say for sure that I haven't noticed any difference in motor's behavior under control of this device and Futaba receiver
I think that for mill RPM sensing is not that important as for lathe, for example. Hovever, supplying RPM measurement is one of my nearest tasks, and it looks rather easy. I will post an updated device once I'll get to it.
Reply With Quote

  #8   Ban this user!
Old 02-02-2012, 12:08 PM
 
Join Date: Jan 2005
Location: USA
Posts: 2,348
mactec54 is on a distinguished road
Buy me a Beer?

kretov

Thanks for sharing & great job with your design, I know someone that can use this for there spindle control
__________________
Mactec54
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
My new CNC machine. Arduino controlled: aventgps Open Source CNC Machine Designs 45 05-03-2012 11:39 AM
MACH3 closed loop encoder interface RomaxxCNC Product Announcements & Manufacturer News 1 05-28-2010 05:59 PM
Arduino Mega driving my cnc. aventgps Videos 2 12-30-2009 01:57 AM
Need Help!- Will MACH3 interface to Heindenhain drives jbcj Mach Software (ArtSoft software) 4 06-06-2009 09:04 AM
Need Help!- Arduino AlienCNC C control gremilRoute General Electronics Discussion 6 04-23-2008 04:02 PM




All times are GMT -5. The time now is 06:44 PM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361