CONTENTS

Home
Projects
More Projects
Resume
Computer Skills
Music
Links To Friends
Pictures
About Mike

Random Link
J2ME


Control A PTZ IP Camera With A Gamepad On Linux Example

Related pages on www.mikekohn.net: Naken Web, Linux PTZ Control, j2me ipcamview

Introduction

This is a small program showing how to use Linux to control the PTZ motors on an IP based camera. This program has the ability to move Axis based Internet cameras remotely from a Linux box using a Logitech based game pad such as the Logitech Dual Action Gamepad. Moving the left analog joystick left, right, up, down will turn the camera according to how hard the joystick is pressed. By moving the right joystick forward and back the camera will zoom in and out of the picture.

I was surprised how easy it was to write code for Linux to read from a joystick. I'm putting this online for anyone to use as an example. Feel free to use whatever code from this tarball that you want. This code can be easily modified to control other IP cameras, I used Axis simply because their API is freely available online and quite easy to use.

Download

ptz_control-2006-11-06.tar.gz








Copyright 1997-2008 - Michael Kohn

Please visit my many other projects, including free J2ME Java games for Mobile phones, graphics and sound programs, chat software, and much more at http://www.mikekohn.net.

This page was designed to work with all standard HTML compatible webbrowsers including Firefox, IE, Safari, and Links.