July 15, 2013 8 Comments
Thanks to Alex for fixing an otherwise undiscovered typo in HAL2Arduino’s program.ino.
Make your very own CNC machine or Robot the easy way, with an Arduino!
May 26, 2013 Leave a comment
During the evening while I was playing with an Arduino Due and troubleshooting some stepper movements, or rather the lack there of; I discovered a Due specific issue with pinMode() resetting pins back to the default LOW regardless of any previously assigned state. This small difference compared to AVR-based Arduinos threw a monkey wrench in to an otherwise standard test-bench setup.
In light of this, I got in touch with Mike McCauley the author of the AccelStepper library. Soon after we had hashed out the bug, and he quickly laid the matter to rest with a fresh, Due friendly version of the code.
So, if you have an Arduino Due and intend to use it with the AccelStepper library, I recommend you download an updated version.
March 3, 2013 91 Comments
Well, after looking around for a good non-blocking multi-instance stepper library that has hooks I can exploit with input speeds from LinuxCNC (a very tall order) I found one that could do it. AccelStepper, so I put my coding hat on, brewed some coffee and banged out rough implementation of HAL2Arduino 0.4 (the preRelease version).
For those of you that have been waiting ever so patiently for the next generation of EMC2Arduino, here is the first version of HAL2Arduino that is actually useful to the average end-user.
This version has a couple of bug fixes:
In the pipeline:
modButtons: A control panel collection for the basics like E-Stop, start, stop, pause, step, etc.
Config LinuxCNC from Arduino. ie: Edit/upload HAL2Arduino to your arduino, run the host side python script and the custom.hal files get generated for you, based on the configuration of the arduino(s).
If you like, you may grab an early copy of it here.
February 14, 2013 Leave a comment
Playing with the compiler in the Arduino IDE, I realized that I could make setting up a new machine a LOT easier.
By making plugins/mods self loading on the Arduino side and on the PC host-side of things, perhaps with some luck I can make the background python script check and possibly auto-modify the custom.hal file on start up so that it will link/unlink halPins as requested by the one or more Arduinos in use.
So I made this post as a To Do List:
Like I said, this is a To Do List and right now I’m in college, so while this is planned; I’ll have to work on it when I can.
If anybody has feature requests, now would be a good time to suggest them.
January 19, 2013 8 Comments
Ok, per popular request I have uploaded the initial framework release of HAL2Arduino. I have a busy semester and my time is tight right now. It’s not going to run anything out of the box except until you mod it.
There is no readme file no doc’s just raw code. Play with it at your own risk!
Finally, just to be clear… This code won’t run a CNC machine as is. It’s just a wiring breakout interface to expose LinuxCNC’s HAL interface pins to an Arduino. So one may easily add there own Arduino code to make or add on to an existing CNC machine.
Teachers, this would be a challenging project for students as the actual “make it move code” will need to be entered by the students.
Hack it, Branch it, Share it.
April 9, 2012 111 Comments
I’m slowly working on adding new features as often as I can.
So far it features: (as of 0.06b)
Features added just recently in 0.07b:
In the pipeline:
That’s all for the moment.