Building a linaer slide that has to do 20 maybe more, different stages, off back and forward. I use a stepper motor with a belt. I am at the moment searching for the best method to control this.
I would like to use a keypad or a knob with LCD.
Correct me if i am totally out off here, stil very new at this stuff.
This is what i think i want
I presume i need to code the entire sketch. Example, in the sketch there are 20 different small programs to run and when i press 4 it only runs that part of the sketch. now i press 19 and it runs that part of the sketch. the stepper motor runs the cycles i have programmet it to do
Is this possible instead of having 20 buttons or do you have a totally other idea?
Want to keep it simple so everyone can use it.
thx for reply. have also looked at that. But i need to choose a part of the sketch where the motor drives cw 200 steps, delay then 400 steps cw a delay, and 100 steps cw delay, then is has to go to home position like -700 steps ccw. i want to choose between 20 more or less different preprogrammet small sketches that are in the whole sketch.
Magnusmyggen:
that could be a good option but how does it work prg. wise and graphical?
Actually I noticed the other day that there was another member on here creating a library to deal with this very issue.
But basically it shouldn't be too hard. Due to the limitations of the arduino, The graphics would have to be kept fairly simple. Maybe just boxes with text in. And the touch screen returns the location when a user touches the screen, it's simply a matter of keeping a local map of which areas apply to which options. Once you've seen the first few "buttons" created, I'm sure you'll find it easy enough.
Thx for the support. Think i will wait with the touch screen when i got it up and running. I will definitly consider the screen later on in the projekt. Could you send me link from the other thread?
Magnusmyggen:
Thx for the support. Think i will wait with the touch screen when i got it up and running. I will definitly consider the screen later on in the projekt. Could you send me link from the other thread?
I doubt it'll have any interest to you at the moment as the OP seems to still be mulling over whether to build this library or not. Even without it, creating a menu system that creates touchable buttons on the screen wouldn't be difficult.