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

Title: Pan and Tilt with heyu ?
Post 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 ?
Title: Re: Pan and Tilt with heyu ?
Post by: Charles Sullivan on January 04, 2008, 11:37:12 PM
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.

Title: Re: Pan and Tilt with heyu ?
Post by: louiez on January 05, 2008, 07:28:51 PM
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
Title: Re: Pan and Tilt with heyu ?
Post by: louiez on January 07, 2008, 10:22:41 PM
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 ?
Title: Re: Pan and Tilt with heyu ?
Post by: Charles Sullivan on January 08, 2008, 12:12:51 PM
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.

Title: Re: Pan and Tilt with heyu ?
Post by: louiez on January 08, 2008, 01:49:53 PM
OK...Thanks
I sent him an email...

I will let you know what I find
Title: Re: Pan and Tilt with heyu ?
Post by: louiez on January 09, 2008, 06:41:23 AM
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  :-\



Title: Re: Pan and Tilt with heyu ?
Post by: Charles Sullivan on January 09, 2008, 05:16:37 PM
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.

Title: Re: Pan and Tilt with heyu ?
Post by: louiez on January 09, 2008, 06:51:18 PM
I think you are correct
That was how I discovered it....looking at the code...

Title: Re: Pan and Tilt with heyu ?
Post by: weenus500 on April 12, 2010, 09:01:19 AM
 :)
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.


Title: Re: Pan and Tilt with heyu ?
Post by: Brandt on April 12, 2010, 12:10:34 PM
post your script so far, and the error