I gang

Stepper arduino control script

I need to control a stepper motor driven round platform with just set of tactile buttons.

The project is pretty simple as you can see at schematics sketch.

I have attached an arduino sketch which i`m using right now.

When you power the arduino on, it basically starts spinning the stepper with preset acceleration and keeps spinning when reaches a desired steps/unit(speed).

What i would like to add is just a simple functionality to be able to start, stop it with deceleration, and emergency stop button which just stops it immediately. Also i have added endstop trigger button, so it will be pressed every full circle, this way we will get some sort of feedback for additional functions posted below.

list of buttons

START - regular script behavior, just starts to spin like in script

EMERGENCY STOP - stops everything immediately

SOFT STOP - stops with deceleration same way like it starts.

START_PRESET1 here i would like to use endstop trigger function, when this button be pressed, it starts in regular way with acceleration, and after it reaches working speed it will start counting trigger button activity, lets say i need to make 1 full spin , at full speed and soft stop it

START_PRESET2 here will be the same function but it should make 2 full circles(endstop button triggered 2 times)

DIRECTION REVERSE toggle reverse direction from default value

SPEED PRESET1 here i would like to have a different speed preset which globally changes the desired speed from default value.

SPEED PRESET2 same here. it just changes speed to desired value

ENDSTOP this will be pressed every full circle made by platform, as you can see from attached sketch.


- Please comment hard everything inside the sketch

- feel free to use any library such as accelstep or whatever you think will work best, just keep in mind the motor will spin at very hi revs, that's why im using acceleration, otherwise it skips steps instead or just makes buzzzzz and motor does not spin at all..

Also feel free to edit schematics, if you think is better to use positive (5V) instead of negative pull.

Evner: Arduino, Elektronik, Microcontroller, PCB Layout

Se mere: stepper motor 90 degree rotation arduino code, arduino stepper motor code without library, stepper motor clockwise and anticlockwise arduino, arduino stepper motor position control, arduino stepper motor projects, stepper motor arduino code, stepper motor arduino code a4988, unipolar stepper motor arduino, script pull data internet explorer, php script pull html data, automated script pull video wordpress, download control script, script pull stats database, perl script pull data website, shoutcast control script, linux service control script, free shoutcast control script, linux services control script, perl script pull parse rss, script pull listings websites

Om arbejdsgiveren:
( 1 bedømmelse ) Dnipropetrovsk, Ukraine

Projekt ID: #23019407

Tildelt til:


Hello, I am an arduino expert and even have the hardware necessary to do the tests on my own. Message me so we can speak more via chat. I have done a lot of projects with motors and I am an expert when it comes to the Flere

$20 USD på 1 dag
(0 bedømmelser)

Hello, i will code your stepper motor with arduino with well organized and well commented sketch so you can make modifications in future yourself if you want i can design android app so you can turn on/off your steppe Flere

$25 USD på 1 dag
(2 bedømmelser)

4 freelancere byder i gennemsnit $23 på dette job


Just give me more details

$25 USD in 3 dage
(0 bedømmelser)

Hi. I am an electrical and electronics engineer. I have well experienced in arduino. I have done similar projects like this. I am very interested in this job. If you are interested, please contact me. THANKS

$20 USD på 1 dag
(0 bedømmelser)