Hi Guys,
Starting to build a servo/ ardunio based lifter that lifts a small pole 90' and then locks it in and switches power off until signal is given to lower which it then disconnects the lock and lowers it 90'.
Looking at using a simply push/pull solenoid to lock it in and a double shaft servo to carry the pole.
Question I have is:
Any tips on code to ensure the arduino remembers it's at 90' when it repowers so it doesnt try and drive itself to the 180' point.
Thanks for your replies as I'm still semi feeling my way through this system.
I have never seen a solenoid that has a movement of 90 feet.
I am thinking a simple sketch would help show better what you are trying to do.
length , weight, speed, etc
Might consider using a worm geared motor, you would not need a solenoid to “lock” it into positions.
Properly placed limit switches would be a way to keep track where it’s at.
A servo motor always "knows" where it is, thanks to a built-in potentiometer. In your case, where only 0° and 90° are important, two stop brackets and limit switches can be used with a free running DC motor. The limit switches can be used to definitely cut off motor power for movement into the same direction, even without intervention of a controller. In all cases a self-locking gearing mechanism allows to cut off motor power when the desired position (angle) is reached.
Hi guys,
Thankyou for the replies. I think I might go a dual shaft worm drive motor and build my own mountings instead of the all in one servo motor. I can dunno 2 micro switches with 2 SPDT relays to reverse it.