Skip to content
/ picamctrl Public

This is a quick and simple bit of python, using flask, to provide an API and simple front end to control a PTZ camera

License

Notifications You must be signed in to change notification settings

zx85/picamctrl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

picamctrl

A project created so that I can control an RS485 camera using PELCO-D protocol from my Raspberry pi.

What you'll need

  • A Raspberry Pi (old as you like, as long as it has a 40 pin GPIO)
  • An RS485 HAT. I spent a whole £12 on this: https://thepihut.com/products/rs485-pizero by AB Electronics
  • Python3 (should be there already)
  • pip (apt install python3-pip)
  • pyserial (pip3 install pyserial)
  • flask (pip3 install flask)
  • flask_SQLAlchemy (pip3 install flask_sqlalchemy)

How to install

  • clone this repository
  • connect the RS485 cable to the port on the HAT
  • run python3 run.py
  • go to a browser http://:5000

It's a bit of a mess

  • Still loads of comments
  • Touch and mouse both work though

About

This is a quick and simple bit of python, using flask, to provide an API and simple front end to control a PTZ camera

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published