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

Schematic for camera v2 flex PCB

Sat Jan 19, 2019 3:42 am

I'd like to use a Pi Zero with an IMX219 camera sensor and a custom lens, but I need to mount the sensor very precisely on the optics. So I'd like to reuse the camera V2 intermediate PCB, but have a different flex PCB that I could mount more precisely to my lens. There are such third party IMX219 flex PCB modules, for example the one shown on this topic

I was thinking of having one custom made for me. But while I found the intermediate PCB schematic on the camera web page, I haven't found the schematic for the flex PCB. When removing the lens from my official camera v2, I found that there are 5 very tiny SMT components around the sensor itself, so it's not as straightforward as guessing the map between the DF37 pin names and the IMX219 pin names.

Can anyone share the schematic for that flex PCB?

Also can anyone recommend a company that can make such flex PCB modules (including soldering the sensor, connector and support components)?

User avatar
rpdom
Posts: 15223
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Schematic for camera v2 flex PCB

Sat Jan 19, 2019 8:19 am

IIRC, the v2 camera includes a custom crypto-chip that the Pi uses to ensure it is a genuine product, not a copy. It won't work on a Pi without that chip.

Ah, I see you are going to re-use the main camera board and it is just the sensor sub-board you want to change. That may work. I'm not aware of anywhere that has the schematics.

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

Re: Schematic for camera v2 flex PCB

Sat Jan 19, 2019 8:55 am

Doub wrote:
Sat Jan 19, 2019 3:42 am
There are such third party IMX219 flex PCB modules, for example the one shown on this topic

I was thinking of having one custom made for me. But while I found the intermediate PCB schematic on the camera web page, I haven't found the schematic for the flex PCB.
In the thread you pointed to I did put link to aliexpress.com for that custom flex PCB (model IMX219-D77), and that has the schematic:
https://www.aliexpress.com/item/IMX219- ... 14495.html
Image


As 6by9 pointed out there is no guarantee that such custom flex PCB will work (the D77 one has 6cm flex cable between board and imx219, while the original has less than 1cm). Since I have tested this sensor successfully with Raspberry v2 camera board in the thread, with normal framerates as well as with high framerates (>500fps with raspiraw) that missing guarantee from RPF should not be a problem.

But please be aware of 6by9's other warning wrt D77 sensor:
https://www.raspberrypi.org/forums/view ... 5#p1417265
... nor that it would pass EMC testing (the oscillator is on the camera board and single ended, so it'll be spraying 25MHz around the place merrily if on a long flexi).

Last, but not least, the IMX219-D77 has a slightly different FoV than the original v2 board imx219 (may be good or bad):

Code: Select all

Camera Module					Pixels	Sensor	Infrared	Field of View	Aperture (F)	Focal Length
										(degree)			(mm)
RPi Camera V2 original camera module		8 Mega	IMX219	×		62.2		2.0		3.04
RPi NoIR Camera V2 original camera module	8 Mega	IMX219	√		62.2		2.0		3.04
IMX219-D160					8 Mega	IMX219	×		160		2.35		3.15
IMX219-D77					8 Mega	IMX219	×		77.6		2.0		2.96

P.S:
Depending on the lens you will use, and the distance between sensor and lens, you can get better than 0.153µm/pixel resolution (of v1 camera):
https://www.raspberrypi.org/forums/view ... 0#p1409956
Image


P.P.S:
The imx219-d160 sensor has 160° FoV, but you will have your own lens as you said.
Anyway, for 15$ with free shipping you get a different, short flex cable imx219, here is the schematic.
Given the much shorter flex cable, there should be no EMC problem as with the longer flex cable:
https://www.aliexpress.com/item/IMX219- ... 57288.html
Image


It should be easy to remove the D160 lens, and the flex cable with raw imx219 sensor (w/o lens) is really small:
Image
⇨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: Schematic for camera v2 flex PCB

Sat Jan 19, 2019 11:52 am

By schematic I meant the electronic schematic of the flex PCB, how the 65 pins of the IMX219 are connected to the 30 pins of the DF37 connector and to the 10 pins of the 5 passives around the sensor. The images you included don't show any of that, and I can't find a link on the AliExpress page. Did I miss it?

As for the FOV it doesn't really apply here. My project is for very long range observation, so my final FOV will be of the order of 0.1° (no typo here, I really mean 6 minutes of angle). So I need to be able to position the sensor very precisely in the image plane of my lens, which is why I'm considering rolling a custom PCB for the sensor. But I got a first quote for tooling which I'm afraid would put the whole project out of my reach...

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

Re: Schematic for camera v2 flex PCB

Sat Jan 19, 2019 1:26 pm

Doub wrote:
Sat Jan 19, 2019 11:52 am
By schematic I meant the electronic schematic of the flex PCB, how the 65 pins of the IMX219 are connected to
A starter is Sony imx219 module design, slide 7 (shows 65 connectors):
https://github.com/rellimmot/Sony-IMX21 ... 140425.pdf
Image

As for the FOV it doesn't really apply here. My project is for very long range observation, so my final FOV will be of the order of 0.1° (no typo here, I really mean 6 minutes of angle). So I need to be able to position the sensor very precisely in the image plane of my lens, which is why I'm considering rolling a custom PCB for the sensor. But I got a first quote for tooling which I'm afraid would put the whole project out of my reach...
That is a small angle -- smallest I used sofar was 70mm F1.6 3.98° lens:
https://www.raspberrypi.org/forums/view ... p?t=227166
⇨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

Return to “Camera board”