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.
4 freelancere byder i gennemsnit $23 på dette job
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