I am using a Raspberry Pi along with the camera module to build a spy camera standalone device, (just for learning). I ran this code on my Raspberry Pi which gave the following error:
initialising, please wait... 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 129, in _control_callback "Received unexpected camera control callback event, 0x%08x" % buf.cmd) picamera.exc.PiCameraRuntimeError: Received unexpected camera control callback event, 0x4f525245 Traceback (most recent call last): File "run.py", line 216, in <module> main() File "run.py", line 74, in main MotionDetector(send_email, username, password, smtp_server_url, user_email, trigger_level) File "run.py", line 108, in __init__ for foo in camera.capture_continuous(stream, format='jpeg'): File "/usr/lib/python2.7/dist-packages/picamera/camera.py", line 1853, in capture_continuous 'Timed out waiting for capture to end') picamera.exc.PiCameraRuntimeError: Timed out waiting for capture to end
Also when I run
raspistill -o abc.jpeg I get the following error:
mmal: No data received from sensor. Check all connections, including the Sunny one on the camera board
I checked the connection. When I run raspistill the LED lights up (and stays lit up) but it doesn't take a picture.
So far I have tried the following:
blacklist i2c-bcm2708to my
switching the pin used for 1-Wire to pin 18 in
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait bcm2708.w1_gpio_pin=18
Enabling and disabling the camera in
sudo apt-get install rpi-updateand
Tried uninstalling and reinstalling Raspbian
But none of this has worked so far. What could be possibly wrong?