Coding help with Stepper Motor Drive with 3 Push Bottons

Hello all!
I have a project on my hands involving the arduino microcontroller. I just recently got into arduino and wanted to construct a braille keypad for a project I am doing. What I plan to do is to use a micro stepper motor to control the the braille cell combinations for letters and numbers. I need to know how to code revolutions of the motor based off of 3 button inputs. For example, if I press first and second button, the motor would rotate a certain amount and lift up the first and second braille dots. Any help with the coding part of this would be great!

Suggest you master the example sketches that come with the ARDUINO IDE.

Once you understand these examples fully try your project.

If you run into problems, ask for help.

BTW, there are quite a few Arduino tutorials in the Tutorial forum here.

Also, YouTube has many Arduino tutorials too.

If you are new to programming you need some general basics. I would not recommend looking into the example-codes. They have almost no explanation. (like most examples in almost any library). The basics explained in this tutorial apply to all programming with the arduino.

Take a look into this tutorial:

Arduino Programming Course

It is easy to understand and has a good mixture between explaining important concepts and example-codes to get you going. So give it a try and report your opinion about this tutorial.

It will be a fun journey to learn coding and to see a microcontroller do things you commanded. But it will be a bit more than just
"pressButton one move motor 50 steps"
"pressButton two move motor 100 steps"
"press button three reset"

@youtube: with arduino-programming it is the same as with all subjects on youtube. 98% of the videos explaining quality is below "excellent" 90% below "good". I recommend this method: start looking a tutorial video. If you don't understand minimum 90% of what is said move on to the next video. Then this video is in general bad or it does not fit to your knowledge-level.

Same thing with written tutorials. If you don't understand 90% of what it says. Try the next one.

In the forum you can ask as many questions as you like even 100 per day.
But there is a certain condition to maximise the probability to get answers:

show some own effort and provide more details than too less details.
It is much easier to read another paragraph thn to have asking back or thinking about how the details might be.

I really recommend to read this sticky thread

Some additional tips post code as a code-section. The easiest way to to this is

inside the Arduino-IDE press Ctrl-T for autoformatting code-indention

do a right-click with the mouse and choose "copy for forum"
then change to your posting and press Ctrl-V to paste the clipboards content into your posting

best regards Stefan

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.