RickMcConney / PenPlotter

Polar graph controler that uses repetier firmware. Inspired by work at http://www.polargraph.co.uk
GNU General Public License v2.0
120 stars 26 forks source link

Using CNC Shield V3 - Is it possible #35

Open jjhamb opened 3 years ago

jjhamb commented 3 years ago

Hi Rick, Need your help in converting the code to use Arduino CNC Shield V3. Pin assignment's for two Steppers and one servo are below -- Appreciate your Help I want to switch to your firmware from polarograph firmware as your graphics conversion code is just superb.

Thanks in Advance

` Note that the pen lift servo usually lives on pin 9, so avoid that if you can. If you can't, then you know how to change it. */

ifdef SERIAL_STEPPER_DRIVERS

define MOTOR_A_ENABLE_PIN 8

define MOTOR_A_STEP_PIN 2

define MOTOR_A_DIR_PIN 5

define MOTOR_B_ENABLE_PIN 4

define MOTOR_B_STEP_PIN 3

define MOTOR_B_DIR_PIN 6

AccelStepper motorA(1,MOTOR_A_STEP_PIN, MOTOR_A_DIR_PIN); AccelStepper motorB(1,MOTOR_B_STEP_PIN, MOTOR_B_DIR_PIN);

endif`

`

https://grobotronics.com/arduino-cnc-shield-v3.html?sl=en

RickMcConney commented 2 years ago

I do not have such a shield so can not really help. But the concept is that you would just need to change the pin assignments in the pins.h file to match the pinout of the shield and then recompile and upload the Marlin firmware.