Category: Controller
grbl, Windows XP and Boarduino
A quick note / tutorial to help anyone trying to find out the same information that I was!
I am looking to set up a CNC system and have chosen to go down the grbl route and use a boarduino. The first hurdle of getting grbl on to the boarduino using the hardware I have on my desk. A lot of sites made this sound a lot harder than it was in the talking about AVR programmers and all sorts
EDIT: The hex file supplied below has an error – the motor drive pin doesn’t work. I have created a new HEX file which I will upload when I have tested it.
I have provided a summary after the jump:
OS – Windows XP, this would probably have been a lot easier with linux!
grbl – I used the hex file from here – https://github.com/downloads/synthetos/grblShield/grbl-latest.hex
Upload to boarduino – xloader available from – http://russemotto.com/xloader/ (ArduinoUploader didn’t work for me)
Communicate with the board – G-Code sender – https://github.com/OttoHermansson/GcodeSender/downloads
I am assuming that you have your boarduino assembled, tested and are set up to send stuff to it via a usb to serial cable or similair, I use the Arduino USB2Serial Light board (more info on the boarduino – http://www.oomlout.co.uk/index.php?main_page=product_info&products_id=234 or http://www.adafruit.com/products/72).
1) Download everything and unzip the files.
2) Open Xloader
3) Select your hex file
4) Set device to Duemilanove/Nano(ATmega328)
5) Set appropriate COM port
6) Hit upload
7) Open G-Code sender
8) Under serial select appropriate COM port
9) Press open
10) Under command type $ and hit return
11) you should get something similair to the following:
To change a setting, for example to set steps/mm x to 200, type $0=200.
Please be aware that this is untested other than serial communication – I have no idea yet if there are any problems further down the line.
Hopefully this will save someone else from having to trawl the internet for hours with many failed attempts!
Now all I have to do is build some sort of CNC machine to attach it to…
Stepper Motors
We have been messing about with a ChipKit and stepper motors from floppy drives and it has been very interesting. Only problem is we cannot find a project for them. The torque generated is very low so they cant really do any work. The best idea so far has been to stick a Christmas decoration on top but that seems a little, er, unimaginative! Any suggestions would be great.
If you are interested you may want to have a look at these resources:
http://www.stepperworld.com/Tutorials/pgUnipolarTutorial.htm
http://www.rapidonline.com/pdf/82-0192.pdf – for home built motor controllers
http://www.horrorseek.com/home/halloween/wolfstone/Motors/stpint_StepperMotorIntro.html
http://www.solarbotics.net/library/pieces/parts_mech_steppers.html
We built an ugly as sin home built motor controller shield with a L293 chip which works ok but gets really hot after a while. If we find a project for this we may utilise something a little more elegant. Either that or a bunch of equally poorly soldered transistors!