Being a software programmer, I always want to reuse code, so GRBL makes it easy to do motor control programming, which I’ll cover later.
For our application, we need to rework the PWM pin on the arduino UNO we are using to output the stuff the servo needs to see. Standard GRBL uses this pin for the Z limit switch, so let’s liberate it.
Fortunately someone else has the same issue that we have had, when they were making a pen plotter. Their solution was to create MIGRBL.
Here’s the installation instructions onto our Arduino UNO
- download a copy of MIGRBL
- Add the library using Sketch -> Include Library -> Add .ZIP Libary
- run File->Examples>MIGRBL->grblUpload
- compile and upload the code to arduino.
Now we can test it.