Unable to communicate with PTZ camera or PTZ board

Hello,

I just connected a new PTZ camera to my raspberry pi. Unfortunately nothing seems to work.

Launching ‘python FocuserExample.py’ exits with an error.

 

Trying ‘raspistill -o image.jpg’ also results in the following error:

mmal: Cannot read camera info, keeping the defaults for OV5647
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)
mmal: Failed to create camera component
mmal: main: Failed to create camera component
mmal: Camera is not detected. Please check carefully the camera module is installed correctly

This is with the camera cable installed with the blue up. If I install it with the blue down, the red light comes on the camera, but I get a different error.

 

Also, from the other thread, I tried ‘i2detect -y 1’ but nothing is detected.

pi@raspberrypi:~ $ i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – – – – – – – – – – – – –
10: – – – – – – – – – – – – – – – –
20: – – – – – – – – – – – – – – – –
30: – – – – – – – – – – – – – – – –
40: – – – – – – – – – – – – – – – –
50: – – – – – – – – – – – – – – – –
60: – – – – – – – – – – – – – – – –
70: – – – – – – – –
pi@raspberrypi:~ $

Any suggestions or are both boards DOA?

Thanks,

 

Here is how I connected the boards. Currently I don’t have the camera motors plugged into the PTZ board, but it didn’t work any differently when I did.

PTZ connections

 

This is the error from FocuserExample.py

 

pi@raspberrypi:~/PTZ-Camera-Controller/pyCode $ python FocuserExample.py
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 “FocuserExample.py”, line 227, in <module>
main()
File “FocuserExample.py”, line 213, in main
camera = picamera.PiCamera()
File “/usr/lib/python2.7/dist-packages/picamera/camera.py”, line 431, in init
self._init_camera(camera_num, stereo_mode, stereo_decimate)
File “/usr/lib/python2.7/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.
pi@raspberrypi:~/PTZ-Camera-Controller/pyCode $

The odd thing is, if I flip the cable going into the camera so the blue side is down, it seems to get further, but still fails:

 

pi@raspberrypi:~/PTZ-Camera-Controller/pyCode $ python FocuserExample.py
Traceback (most recent call last):
File “FocuserExample.py”, line 227, in <module>
main()
File “FocuserExample.py”, line 219, in main
curses.wrapper(draw_menu,camera)
File “/usr/lib/python2.7/curses/wrapper.py”, line 43, in wrapper
return func(stdscr, *args, **kwds)
File “FocuserExample.py”, line 204, in draw_menu
RenderMiddleText(stdscr,k,focuser)
File “FocuserExample.py”, line 82, in RenderMiddleText
focus_value = “Focus : {}”.format(focuser.get(Focuser.OPT_FOCUS))[:width-1]
File “/home/pi/PTZ-Camera-Controller/pyCode/Focuser.py”, line 120, in get
self.waitingForFree()
File “/home/pi/PTZ-Camera-Controller/pyCode/Focuser.py”, line 69, in waitingForFree
while self.isBusy() and count < (5 / 0.01):
File “/home/pi/PTZ-Camera-Controller/pyCode/Focuser.py”, line 65, in isBusy
return self.read(self.CHIP_I2C_ADDR,self.BUSY_REG_ADDR) != 0
File “/home/pi/PTZ-Camera-Controller/pyCode/Focuser.py”, line 56, in read
value = self.bus.read_word_data(chip_addr,reg_addr)
IOError: [Errno 121] Remote I/O error
pi@raspberrypi:~/PTZ-Camera-Controller/pyCode $

With the cable, blue side down, raspistill shows

pi@raspberrypi:~/PTZ-Camera-Controller/pyCode $ raspistill -o image.jpg
Camera control callback cmd=0x4f525245mmal: No data received from sensor. Check all connections, including the Sunny one on the camera board

Hi @jc ,

With the cable, blue side down, raspistill shows
This is the correct connection method, but raspberrypi cannot receive the camera data. There are two possibilities: 1. The connection is loose 2. The camera is damaged Please confirm the connection of the cable again, if the same error persists, please let me know, and I will let our sales staff contact you.

Yes, I’ve tried reconnecting the cables.

I’ve also tried with 3 raspberry pis now with the same issue.

I also confirmed the pi I’m testing with now worked with the generic raspberry pi camera. Also tried that cable with the PTZ camera, but no luck. Still get the red light coming on, on the camera board but the No data received error.

Hello,

Sorry for my late reply. It seems the camera is defective. Please contact our [email protected] for replacement.