Pan Tilt stepper motors
-
Hi
I was wondering if mysensors would support the operation of remotely controlling pan/tilt stepper motors for CCTV camera.
I was thinking that it would be nice to make a hardware controller with joystick to control this via mysensors and mycontroller setup.
Has anyone done this? Would it be the wrong way to go on this?
I will need to be able to control multiple cameras so a way to switch between which camera to control would be nice. That way I can have one portable controller for all cameras wherever I am.
Any thoughts out there on the practicality of this?
-
Cool idea @skywatch
It should be feasible. After all, my Tetris game works smoothly enough, and I imagine Tetris has more severe real-time requirements than pan/tilt. One note though: I let my Gateway run the "screen", so there was only 1 hop between the gamepad and the screen. And I did not use signing. With signing, the control became so slow it was useless.
-
I've ordered a pan-tilt kit as well. Perhaps you can share some code once you're done?
-
And what kit with stepper motors? Or you mean servo motors ?
-
@kimot Servos require permanent power to keep position (afaik).
Therefore stepper motors would be preffered as they can 'step' to position the then power off without moving back to a cent
ral point.The 'kit' can be commercial or preferably 3D printed.
It's only in the 'thinking about it' stage right now - so don't hold your breath on this but be assured that I will post if/when it works.....
-
@skywatch The issue I can see with steppers is that your camera might move when you poweroff the motors. As you said, when you poweroff them, they wont go back to center, but they also wont keep the position. If your camera is not perfectly balanced, it will "fall down". As well as your 3D printer : as long as you power the steppers, you can not move the axis, but as soon as you poweroff them (unlock) , you can move your axis.
-
When you switch off power for servos, they will stay in last position. And they have got a gear so not too easy self moving like single steppers.
And pan tilt kits are very cheap.
-
-
@skywatch Take a look at my pan tilt project. A stepper i.s.o. servo can easily be achieved. I would recommend to use the AccelStepper lib to have a smooth movement.
Suggested Topics
-
Update RF24 library to latest version
Bug Reports • 23 Mar 2014, 23:37 • andriej 24 Mar 2014, 22:52 -
Old hardware migration
General Discussion • 29 Feb 2024, 03:43 • dbemowsk 1 Mar 2024, 23:03 -
What's a good power bank for use with IoT?
General Discussion • 14 Dec 2021, 17:28 • NeverDie 17 May 2024, 15:03 -
No merge into master in the last 5 years, should we use development?
General Discussion • 23 Sept 2024, 17:48 • kiesel 3 Oct 2024, 14:18 -
Running out of nodeId's
General Discussion • 3 Sept 2024, 07:33 • NielBierman 12 Oct 2024, 19:11 -
GatawayESP8266 - Compile error
General Discussion • 18 May 2021, 11:50 • skom 5 Jun 2024, 15:55