Unable to get pi camera working

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Locked
User avatar
karnolddma
 
Posts: 4
Joined: Thu Feb 19, 2015 5:40 pm

Unable to get pi camera working

Post by karnolddma »

I am using the infrared pi camera and cannot get it to start. below is a copy from my console with the error message and the test code that I am using. Everything I have read on this error leans towards faulty hardware

Code: Select all

pi@krissypi ~ $ cat test.py 
import picamera
import time

print "Get Ready" 

camera = picamera.PiCamera()
camera.resolution = (800, 600)
camera.vflip = False
camera.hflip = False
#camera.saturation = -100

try:
	camera.start_preview()
	time.sleep(60)
	camera.stop_preview()
finally:
	camera.close()
pi@krissypi ~ $ sudo python test.py 
Get Ready
Traceback (most recent call last):
  File "_ctypes/callbacks.c", line 314, in 'calling callback function'
  File "/usr/lib/python2.7/dist-packages/picamera/camera.py", line 98, in _control_callback
    "Received unexpected camera control callback event, 0x%08x" % buf[0].cmd)
picamera.exc.PiCameraRuntimeError: Received unexpected camera control callback event, 0x4f525245

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Unable to get pi camera working

Post by adafruit_support_mike »

That error is usually a symptom of a bad hardware connection.

Try disconnecting and reseating the flex cable at both ends, and also the fine-pitch connector between the camera module and the PCB. Also make sure your power supply can provide enough current. The camera uses about 250mA by itself.

If none of that works, try another SD card with a fresh install of Raspbian, camera enabled through raspi-config, proper memory split, etc.

User avatar
karnolddma
 
Posts: 4
Joined: Thu Feb 19, 2015 5:40 pm

Re: Unable to get pi camera working

Post by karnolddma »

I have another identical pi setup with a camera that we also use, after swapping the camera out in that it also fails in that pi as well.

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Unable to get pi camera working

Post by adafruit_support_mike »

Does the red LED come on when you try to take a picture?

User avatar
karnolddma
 
Posts: 4
Joined: Thu Feb 19, 2015 5:40 pm

Re: Unable to get pi camera working

Post by karnolddma »

The red led comes on when it is initialized but then it crashes

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Unable to get pi camera working

Post by adafruit_support_mike »

It does sound like the camera is doing something unexpected and crashing the RasPi.

User avatar
karnolddma
 
Posts: 4
Joined: Thu Feb 19, 2015 5:40 pm

Re: Unable to get pi camera working

Post by karnolddma »

is it possible we can exchange this yet? We tried when we first purchased it and found it to be defective. but i was told we had to submit this post first

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Unable to get pi camera working

Post by adafruit_support_mike »

When did you get the camera?

Locked
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Return to “Adafruit Raspberry Pi® accessories”