![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| General Electronics Discussion Discuss basic electronics, power supplies and anything else electronic related here. |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
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 |
|
#2
| |||
| |||
| 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 |
|
#4
| |||
| |||
| 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) |
|
#5
| |||
| |||
| 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. 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 ![]() 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. |
| Sponsored Links |
|
#6
| |||
| |||
| 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 |
|
#7
| |||
| |||
| 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. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
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 |