Hi All
This is my first post. I have ordered Arduino mega! (I'll receive it by next weekend). I want help in my writing a simple code for CNC machine I have written majority of code I'm confused only with two steps.
-
I want to input number in my code so I'm having two buttons marked as '+' and '-' initially variable(assuming it as i) is zero for every press of '+' i should increment and on pressing '-' it should decrease but value of i should not exceed 999. when i press button labeled as "Enter" Arduino should accept my value and execute the code. (I have connected LCD to display value) (Is there any way to do away with enter button?)
-
I want to run two stepper motor together and then some point in program one after another.
following will run motors one after another. How to implement code to start them simultaneously?
{
motorA.step(50, Forward);
motorB.step(100, Forward);
}