I bought a Raspberry Pi camera (https://www.raspberrypi.org/products/camera-module/) and it works great.
My problem is that there's no way to build a good-looking device with that camera. I've seen camera cases but the wire is uncovered and it's ugly (If anybody knows a good-looking, cheap solution, nice ... but my question here is about other cameras)
So I've been working with standard USB cameras.
I've done a complete update/upgrade:
sudo rpi-update
sudo apt-get update
sudo apt-get upgrade
I've change some params as other forums suggested, to change config.txt and add
start_file=start_x.elf
fixup_file=fixup_x.dat
and check gpu_mem is above 128 (mine is 256)
But when I plug the camera (and the camera works because I've tested in PC computers) and I try to access it, it does not work:
pi@raspberrypi ~ $ raspistill -o /tmp/a.jpg
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
the camera is not detected
pi@raspberrypi ~ $ vcgencmd get_camera
supported=1 detected=0
but it's there !
pi@raspberrypi ~ $ lsusb
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 0d8c:000c C-Media Electronics, Inc. Audio Adapter
Bus 001 Device 005: ID 0c45:612a Microdia PC Camera (SN9C325) << THIS ONE !
Bus 001 Device 006: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter
I've tried also unplugging the raspberry Pi camera on board, and leave just my USB camera, changing settings in raspi-config of board camera to on and off ...
Also I've tried with 4 different USB cameras (all working in PC's) ... Trust, Logitech, ...
Question 1: what is the problem ?
In a page says: "Is your power supply sufficient? The camera adds about 200-250mA to the power requirements of your Raspberry Pi."
Question 2 : How can I measure this ? How can I know what is my power (I got a B+), and how much power each one of the USB ports are consuming ?
raspistill
) is specifically for the Raspberry Pi's camera module (same forraspivid
,raspiyuv
, and the picamera library) - they won't work with USB cameras. For those you can usually use standard V4L2 interfaces or higher level things like OpenCV (you can use these with the Pi's camera module too with the V4L2 driver)