HI I am a complete novice but bought a Rasberry Pi 3 with wifi and bluetooth and a pan tilt hat. I loaded Noobs onto the sd card and have a monitor, keyboard and mouse connected to it. I have the Raspberrypi control panel up and can access the comand box. I downloaded the pantilthat software onto the installed sd card. I cannot though get it to move or turn on camera and lights.
Where do I go to run the pantilit software to use it.
Don’t forget it needs to be simple the reply.
Thanks for your help
You can control it via python. This is a file I did up to do a preview and center the pan tilt.
from picamera import PiCamera
from time import sleep
import pantilthat
pantilthat.pan(0)
pantilthat.tilt(0)
camera = PiCamera()
camera.rotation = 180
camera.resolution = (1280, 720)
camera.start_preview()
sleep(10)
camera.stop_preview()
You have to have installed the Pan Tilt software first though.
curl https://get.pimoroni.com/pantilthat | bash
The command reference is here
http://docs.pimoroni.com/pantilthat/
and example code here
I have two full pan tilt setups, both are using Motion Eye OS. I have added several preset positions and manual pan tilt buttons to its Web GUI.
Hi,
Thank you I will try that tomorrow.