Doub
Posts: 24
Joined: Fri Apr 07, 2017 9:48 pm

Camera V2.1 not (or no longer) working on Pi Zero W

Wed Jan 30, 2019 4:43 am

I've been playing with cameras on a Pi Zero W for a while, and I recently purchased a NoIR Camera V2.1, which worked for a few days. I manipulated it a bit to test mechanical mounting on my project, and at some point it stopped working. I have two Pi Zero W on hand, and both had the same issue (with the same SD card). I assumed I broke the camera. So I ordered a couple others (this time the regular variant instead of the NoIR). And they didn't work either. So maybe I had broken the OS on the SD card, and I installed a fresh Raspbian on another SD card, but the result is the same. What's puzzling me is that all my cameras V1 (one official, a bunch of chinese clones) still work.

Here's some checks I did from other threads:

Code: Select all

[email protected]:~ $ vcgencmd otp_dump |grep ^30
30:009000c1
[email protected]:~ $ cat /proc/cpuinfo | grep Revision
Revision        : 9000c1
[email protected]:~ $ sudo rpi-update
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** Performing self-update
 *** Relaunching after update
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** Your firmware is already up to date
[email protected]:~ $ sudo raspistill -o tmp.jpg
mmal: mmal_vc_component_enable: failed to enable component: ENOSPC
mmal: camera component couldn't be enabled
mmal: main: Failed to create camera component
mmal: Failed to run camera app. Please check for firmware updates

[email protected]:~ $ raspistill -t 1000
mmal: mmal_vc_component_enable: failed to enable component: ENOSPC
mmal: camera component couldn't be enabled
mmal: main: Failed to create camera component
mmal: Failed to run camera app. Please check for firmware updates

[email protected]:~ $ sudo vcdbg log assert
No messages available
Here is my cmdline.txt:

Code: Select all

dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait fastboot noswap ro
Here is my config.txt (with the comments and commented-out lines stripped):

Code: Select all

disable_overscan=1
hdmi_force_hotplug=1
hdmi_group=1
hdmi_mode=4
dtparam=audio=on
dtoverlay=dwc2
start_x=1
gpu_mem=256
dtdebug=1
As you can see I increased the gpu_mem. I started with 128, went to 144, then 256. No value improved the situation.

I'm out of ideas. What else can I do to try to fix the situation?

wh7qq
Posts: 1328
Joined: Thu Oct 09, 2014 2:50 am

Re: Camera V2.1 not (or no longer) working on Pi Zero W

Thu Jan 31, 2019 1:14 am

There have been a number of posts here on the fragility of the camera connector on the RPi Zero...any variant...due to its small size and delicacy. That is the most likely scenario for your problem. If the tiny black locking bar is still intact, you might try using a small bit of transparent tape on the non-contact side of the ribbon connector to increase its thickness and check it out with basic camera commands. If broken, as mine was, putting the ribbon in first, then inserting the black bar and holding it while (carefully) applying hot melt adhesive was the solution for me. In either case, the adhesive is the final answer.

Doub
Posts: 24
Joined: Fri Apr 07, 2017 9:48 pm

Re: Camera V2.1 not (or no longer) working on Pi Zero W

Fri Feb 01, 2019 4:01 pm

wh7qq wrote:
Thu Jan 31, 2019 1:14 am
There have been a number of posts here on the fragility of the camera connector on the RPi Zero...any variant...due to its small size and delicacy. That is the most likely scenario for your problem.
But the cameras v1 are still working. Wouldn't a broken connector affect all cameras equally?

User avatar
HermannSW
Posts: 1506
Joined: Fri Jul 22, 2016 9:09 pm
Location: Eberbach, Germany
Contact: Website Twitter YouTube

Re: Camera V2.1 not (or no longer) working on Pi Zero W

Fri Feb 01, 2019 7:11 pm

Doub wrote:
Fri Feb 01, 2019 4:01 pm
But the cameras v1 are still working. Wouldn't a broken connector affect all cameras equally?
Yes.

What is the output of "vcgencmd get_camera" with v2 camera connected?
⇨https://stamm-wilbrandt.de/en/Raspberry_camera.html

https://github.com/Hermann-SW/Raspberry_v1_camera_global_external_shutter
https://gitlab.freedesktop.org/HermannSW/gst-template
https://github.com/Hermann-SW/fork-raspiraw
https://twitter.com/HermannSW

Doub
Posts: 24
Joined: Fri Apr 07, 2017 9:48 pm

Re: Camera V2.1 not (or no longer) working on Pi Zero W

Fri Feb 01, 2019 9:16 pm

HermannSW wrote:
Fri Feb 01, 2019 7:11 pm
What is the output of "vcgencmd get_camera" with v2 camera connected?
Here is what I get with one of the non-working V2 cameras.

Code: Select all

[email protected]:~ $ vcgencmd get_camera
supported=1 detected=1
[email protected]:~ $ raspivid -f
mmal: mmal_vc_component_enable: failed to enable component: ENOSPC
mmal: camera component couldn't be enabled
mmal: main: Failed to create camera component
mmal: Failed to run camera app. Please check for firmware updates
But I've got some good news. Waiting for suggestions I ordered another Pi Zero W and another NoIR camera V2, and they worked together out of the box. I also received the cloned IMX219 modules I ordered from China a while back, and it worked on my original NoIR intermediate PCB. I took some pictures of the V2 cameras I have. Front:
cam-v2-front.jpg
cam-v2-front.jpg (120.49 KiB) Viewed 574 times
And back:
cam-v2-back.jpg
cam-v2-back.jpg (163.67 KiB) Viewed 575 times
So here's what's broken:
- A + A'
- B
- B + E
- C
- C + E

And here's what's working:
- A + E
- D
- D + E

So obviously I broke the A' flex PCB (I forcefully removed the lens and then bent the flex PCB too much, it's on me). But I don't understand what's wrong with B and C. The only obvious differences are:
- the PCB color
- the week code for the green ones is two years older than the NoIR ones
- B and C have a different crystal: it's in a black epoxy package, where A and D have a more common metal case crystal
- only A has a "PASS" holographic sticker
- they all have different Data Matrix stickers
- D didn't come in a box, but all 3 other boxes look similar and legit

Are B and C possibly fakes? Or did they pass their shelf life? Let me know if you want me to test anything before I return B and C to Amazon.

Return to “Camera board”