I am BRAND NEW to arduino and am needing some help on a project I’m working on as I don’t have any experience with this yet. The project involves moves a shelf up and down and I need to use a set up with 1 led-push button, 2 DC motors and 2 micro switches. I am looking for ANY help in writing the code for the following and any help would be GREATLY appreciated!!!
So here is the situation I’m needing to make happen:
NOTE: the LED of the button needs to remain on even when the button and the motors aren’t in use. It’s a 6 pin momentary LED push button if that makes a difference.
-
Press the push button once and two DC motors are powered on and begin moving the shelf upwards- one motor will need to spin clockwise, the other will need to spin counter clockwise.
-
both motors are shut off/stop when a limit or micro switch is hit at the top of the track.
-
both motors start out at full speed but then slow down as the shelf approaches the top of the track.
-
press the push button a second time, and the motors reverse directions, thus pulling the shelf back down to the bottom- again I need it to start at full speed but then slow down as it approaches the bottom.
-
second limit switch is at the bottom of the track and when that’s hit, the motors again shut off and movement and power to the motors stops.
Thanks in advance for any help on this!!