X10 Community Forum
💬General Category => Mac/Linux & Open Source and the X10 Home => Topic started by: louiez on January 04, 2008, 03:11:37 PM
-
Has anybody seen a way to control the NINJA Pan 'n Tilt from Linux or heyu ?
-
Has anybody seen a way to control the NINJA Pan 'n Tilt from Linux or heyu ?
Check out Michael LeMay's X10MMS Linux driver for the CM19A at
http://lemaymd.com/main.php?frag=software
The controls for the Pan 'n Tilt mechanism look rather rudimentary, but they may be enough for what you need.
-
that is great... I will check them out...
I needed to get the Range issue fixed first...
new antenna for the pan and tilt base and CM19a
I can get about 70ft now.....good enough for my needs
Thanks for the Link
-
well I loaded the driver...
I now see the device /dev/cm19a0
I can send a command to it
echo +a9 > /dev/cm19a0
and my light comes on
echo -a9 > /dev/cm19a0
and it goes off
I see the cm19 LED flash
all good so far
now I try to Pan/tilt
echo ua > /dev/cm19a0
no flash on cm19 and no pan
and I tried every combo I could think of u...U... "u" "ua"...etc
documentatin says ......
[udlr][a-p]
Ninja Pan'n'Tilt commands:
u = up
d = down
l = left
r = right
maybe I am not understanding the commands...
any Ideas ?
-
I tried it and see the same problem. I've no idea what to do except write to the author. My suspicion now is that the limited Pan 'n Tilt command set was an initial attempt at Pan 'n Tilt functionality, and when that didn't work, nothing further was done.
-
OK...Thanks
I sent him an email...
I will let you know what I find
-
ok ... seems it needs
command house unit
echo +a4 > /dev/cm19a0 to be sure the cam is on
echo ua4 > /dev/cm19a0 to move up
|
|
u d l r to move up, down, left, right
Now to get it to center, sweep and move to presets...
but for now this is great
Thanks Charles for pointing me in the right direction
I know there is some way to give you points....but I don't know how..
maybe someone can show this newbe :-\
-
ok ... seems it needs
command house unit
echo +a4 > /dev/cm19a0 to be sure the cam is on
echo ua4 > /dev/cm19a0 to move up
|
|
u d l r to move up, down, left, right
Now to get it to center, sweep and move to presets...
but for now this is great
Thanks Charles for pointing me in the right direction
I know there is some way to give you points....but I don't know how..
maybe someone can show this newbe :-\
Interesting - it does work!!! Thanks for reporting back.
I think the driver code is actually buggy in requiring the housecode/unit with u/d/r/l as the Pan 'n Tilt commands are entirely independent of these. E.g., if you echo "ua4" to the device and the Ninja moves Up, then follow by echoing "ub9" (or with any other housecode/unit), note that the Ninja moves Up again. The Ninja power supply maintains power to the Pan 'n Tilt mechanism regardless of whether power to the attached camera (per the codewheel settings) is turned on or off.
-
I think you are correct
That was how I discovered it....looking at the code...
-
:)
I am trying to write a bash script to run the run the pan and tilt camera. I don't know bash that well so the page works in moving the camera, but comes up with an internal server error. Does anyone know of a script like bluelava for bottlerocket, heyu etc. that will work with the cm19a?
ok ... seems it needs
command house unit
echo +a4 > /dev/cm19a0 to be sure the cam is on
echo ua4 > /dev/cm19a0 to move up
|
|
u d l r to move up, down, left, right
Now to get it to center, sweep and move to presets...
but for now this is great
Thanks Charles for pointing me in the right direction
I know there is some way to give you points....but I don't know how..
maybe someone can show this newbe :-\
Interesting - it does work!!! Thanks for reporting back.
I think the driver code is actually buggy in requiring the housecode/unit with u/d/r/l as the Pan 'n Tilt commands are entirely independent of these. E.g., if you echo "ua4" to the device and the Ninja moves Up, then follow by echoing "ub9" (or with any other housecode/unit), note that the Ninja moves Up again. The Ninja power supply maintains power to the Pan 'n Tilt mechanism regardless of whether power to the attached camera (per the codewheel settings) is turned on or off.
-
post your script so far, and the error