#HELP# building an Pan-Tilt Webinterface for Pimoroni Pan-Tilt HAT FULL KIT with Webcam Server

Hi have just received my Pan Tilt Hat. like you followed the instructions and getting the exact same error. Did you ever resolve this?

File “/usr/lib/python3/dist-packages/pantilthat/pantilt.py”, line 72, in setup
self._i2c = SMBus(1)

Hello Guys sorry for the Bump,

I am doing a college project security system.

I am trying to get this working on a public website the Pan and tilt buttons work fine but the stream shows “loading…” i have the ports 8082 and 8084 forwarded.

hey everyone,

i am willing to control my pan-tilt like you.
So I tried waveform as noticed
but this strange error stuck me.

python3 server.py
Initializing camera
mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/picamera/camera.py", line 456, in _init_camera
    self._camera = mo.MMALCamera()
  File "/usr/lib/python3/dist-packages/picamera/mmalobj.py", line 2279, in __init__
    super(MMALCamera, self).__init__()
  File "/usr/lib/python3/dist-packages/picamera/mmalobj.py", line 633, in __init__
    prefix="Failed to create MMAL component %s" % self.component_type)
  File "/usr/lib/python3/dist-packages/picamera/exc.py", line 184, in mmal_check
    raise PiCameraMMALError(status, prefix)
picamera.exc.PiCameraMMALError: Failed to create MMAL component b'vc.ril.camera': Out of memory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "server.py", line 184, in <module>
    main()
  File "server.py", line 134, in main
    with picamera.PiCamera() as camera:
  File "/usr/lib/python3/dist-packages/picamera/camera.py", line 431, in __init__
    self._init_camera(camera_num, stereo_mode, stereo_decimate)
  File "/usr/lib/python3/dist-packages/picamera/camera.py", line 460, in _init_camera
    "Camera is not enabled. Try running 'sudo raspi-config' "
picamera.exc.PiCameraError: Camera is not enabled. Try running 'sudo raspi-config' and ensure that the camera has been enabled.

Looking for UX/UI, I found rpi-deep-pantilt

pip3 install rpi-deep-pantilt

also discovered

Do you know other?

Has there been any updates to this? I can get the code to work (kind of) but cannot see the tilt & pan controls. If I use the master branch, I can see the video streaming, but no controls. If I change to the pantilthat branch, I get the errors listed by Ryan780 above. Meh!

pi@raspicam2:~/pistreaming $ git checkout pantilthat
Branch ‘pantilthat’ set up to track remote branch ‘pantilthat’ from ‘origin’.
Switched to a new branch ‘pantilthat’
pi@raspicam2:~/pistreaming $ python server.py
Initializing HAT
Traceback (most recent call last):
File “/home/pi/pistreaming/server.py”, line 259, in
main()
File “/home/pi/pistreaming/server.py”, line 199, in main
hat.servo_enable(1, False)
File “/usr/lib/python3/dist-packages/pantilthat/pantilt.py”, line 395, in servo_enable
self.setup()
File “/usr/lib/python3/dist-packages/pantilthat/pantilt.py”, line 80, in setup
self._set_config()
File “/usr/lib/python3/dist-packages/pantilthat/pantilt.py”, line 118, in _set_config
self._i2c_write_byte(self.REG_CONFIG, config)
File “/usr/lib/python3/dist-packages/pantilthat/pantilt.py”, line 209, in _i2c_write_byte
raise IOError(“Failed to write byte”)
OSError: Failed to write byte