Please login or register.

Login with username, password and session length
Advanced search  

News:

The X10Hub (PiX10Hub) is here! Created by the Community, for the Community.:)% #:)

Author Topic: Pan and Tilt with heyu ?  (Read 28069 times)

louiez

  • Newbie
  • Helpful Post Rating: 1
  • Posts: 6
Pan and Tilt with heyu ?
« on: January 04, 2008, 03:11:37 PM »

Has anybody seen a way to control the NINJA Pan 'n Tilt from Linux or heyu ?
Logged

Charles Sullivan

  • Hero Member
  • *****
  • Helpful Post Rating: 93
  • Posts: 1565
    • HEYU - X10 Automation for Linux, Unix, and Mac OSX
Re: Pan and Tilt with heyu ?
« Reply #1 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.

Logged
Yesterday it worked.
Today it doesn't work.
X10 on Windows is like that.

HEYU - X10 Automation for Linux, Unix, and Mac OS X     http://www.heyu.org

louiez

  • Newbie
  • Helpful Post Rating: 1
  • Posts: 6
Re: Pan and Tilt with heyu ?
« Reply #2 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
Logged

louiez

  • Newbie
  • Helpful Post Rating: 1
  • Posts: 6
Re: Pan and Tilt with heyu ?
« Reply #3 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 ?
Logged

Charles Sullivan

  • Hero Member
  • *****
  • Helpful Post Rating: 93
  • Posts: 1565
    • HEYU - X10 Automation for Linux, Unix, and Mac OSX
Re: Pan and Tilt with heyu ?
« Reply #4 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.

Logged
Yesterday it worked.
Today it doesn't work.
X10 on Windows is like that.

HEYU - X10 Automation for Linux, Unix, and Mac OS X     http://www.heyu.org

louiez

  • Newbie
  • Helpful Post Rating: 1
  • Posts: 6
Re: Pan and Tilt with heyu ?
« Reply #5 on: January 08, 2008, 01:49:53 PM »

OK...Thanks
I sent him an email...

I will let you know what I find
Logged

louiez

  • Newbie
  • Helpful Post Rating: 1
  • Posts: 6
Re: Pan and Tilt with heyu ?
« Reply #6 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  :-\



Logged

Charles Sullivan

  • Hero Member
  • *****
  • Helpful Post Rating: 93
  • Posts: 1565
    • HEYU - X10 Automation for Linux, Unix, and Mac OSX
Re: Pan and Tilt with heyu ?
« Reply #7 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.

Logged
Yesterday it worked.
Today it doesn't work.
X10 on Windows is like that.

HEYU - X10 Automation for Linux, Unix, and Mac OS X     http://www.heyu.org

louiez

  • Newbie
  • Helpful Post Rating: 1
  • Posts: 6
Re: Pan and Tilt with heyu ?
« Reply #8 on: January 09, 2008, 06:51:18 PM »

I think you are correct
That was how I discovered it....looking at the code...

Logged

weenus500

  • Newbie
  • Helpful Post Rating: 0
  • Posts: 1
Re: Pan and Tilt with heyu ?
« Reply #9 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.


Logged

Brandt

  • Hero Member
  • *****
  • Helpful Post Rating: 11
  • Posts: 728
  • Sorry miss, I was giving myself an oil-job.
Re: Pan and Tilt with heyu ?
« Reply #10 on: April 12, 2010, 12:10:34 PM »

post your script so far, and the error
Logged
 

X10.com | About X10 | X10 Security Systems | Cameras| Package Deals
© Copyright 2014-2016 X10.com All rights reserved.