2
\$\begingroup\$

I have removed the webcam (Chicony CNF-9157) from an old laptop with the intention of connecting it up to a computer via USB. The webcam and the LCD were connected to the motherboard by LVDS. Supposedly this webcam has a USB interface according to a manual - see bottom of page 17.

I would like to know what I would need to do to connect this board (picture of connector pins) to a computer.

enter image description here

\$\endgroup\$
  • 1
    \$\begingroup\$ My suggestion is that this isn't worth it. A PS3Eye camera is readily available that uses USB and has VGA @ 60fps. Conecting this webcam requires an LVDS to USB converter, which I am guessing the computer had. Perhaps omnivision or someone else has something. Otherwise, FPGA would be the way to go, but this is a lot of work. \$\endgroup\$ – Gustavo Litovsky Feb 19 '13 at 23:25
  • \$\begingroup\$ @GustavoLitovsky Given the picture, and the pdf, and that many laptops have bare usb cameras in them, this is pretty simple. Same with some internal bluetooth modules, or mini-card interfaces which break out to usb. \$\endgroup\$ – Passerby Feb 20 '13 at 3:30
  • 1
    \$\begingroup\$ Graham, can you provide a high res picture of both sides of the board? Should be able to help. \$\endgroup\$ – Passerby Feb 20 '13 at 3:35
  • \$\begingroup\$ @GustavoLitovsky many electronics projects are not cost effective from a commercial point of view, but done just because they are fun to figure out, learn from and just because it is possible. It looks to me as if it is a USB cam and it is worth the effort/time to try. \$\endgroup\$ – jippie Feb 20 '13 at 9:37
  • \$\begingroup\$ @jippie: We all have done little projects like this. Just wanted to make the OP aware that it might be a large time investment. \$\endgroup\$ – Gustavo Litovsky Feb 20 '13 at 15:38
5
\$\begingroup\$

Background:

One of the more common things in the last decade is laptop (and some desktop) producers using usb as a catch all bus, instead of dedicated hardware for peripherals. Instead of designing and including sometimes space intensive hardware for many parts, they just design with bridges with a few usb ports in mind, and hubs to expand them. Everything from keyboards to touchpads, fingerprint scanners, audio cards, sd/memory card readers, ir remote ports, touchscreen controllers, bluetooth, wireless and most importantly, webcams are built in as modules, using usb. Lets them reuse the same mainboard for multiple models in a modular design. On my Apple Macbook Pro, the camera, keyboard, trackpad, bluetooth, ir, and sd card are all USB devices. Even older, 1990's laptops had PS/2 and USB standard trackpads.


Your question:

Okay, so no picture needed. Aside from the obvious label on the back, some googling confirmed that the camera has no onboard regulator. This makes it slightly harder to use than just wiring it up to a spare cable. Oh, and the Connector between the motherboard and display part carries lvds for the display, power for the inverter/backlight, usb for the camera and audio for the mic. It's not lvds for all, just a combined flex cable.

That camera module uses USB, with standard drivers. But instead of using 5v, and then regulating it down as needed, it expects to be powered by 3.3v. Without a manufacturer schematic or detailed parts list, we can't tell if it is 5v tolerant, and should assume it is not.

The D-, D+, Gnd, and Shield Ground are easy. Those can be wired directly to the matching cables on a spare USB cable (Either cut off the end or find one that does it for you. Colors might not be the same, always check with a multimeter). Shield Ground could be omitted if needed, the computer you plug it into should have it connected on that end, but I suggest connecting it anyway.

The 3v3 line is harder. As stated, you should not connect 5v directly to it, you will fry something. You have to bring that 5v down. From best to simplest option:

  • LDO Switching Regulator
  • LDO Linear Regulator (LM1117-3.3 or similar)
  • Zener Diode (3.3v)
  • Two simple signal Diodes in series (1n4001 or similar)

A LDO would be recommended, especially if you are worried about perfection or your investment. Connect the USB 5v to the LDO with the appropriate caps (probably not even needed, but recommended), and the LDO output to the 3v3 line.

Or you can go with simple (and maybe a bit daring). A standard signal diodes will at a moderate current draw, drop 0.6 to 0.7 volts. Two in series with 5 volts in will drop 1.4 volts, bringing the line down to 3.6v, which is often enough to work within tolerances of most 3.3 devices. This is a very basic option, and not guaranteed to work, but is not unheard of (Especially usb bluetooth devices that do this, or for V-USB attiny projects or msp430 usb projects).

Examples of this being done (without the 3.3v regulator, not needed for those cameras):
Internal laptop webcam as External (Translated)
Internal laptop webcam board as external cam


Summary: This is not a common, but trivial mod. Connect D-, D+, Gnd and Shield Ground to matching USB wiring. Connect USB 5v to regulator circuit to bring to 3.3 (3.6v), and connect to 3v3 line. Install Drivers. Enjoy.

\$\endgroup\$
2
\$\begingroup\$

I know that this is a relatively old thread, I just tripped over it whilst doing some research. I have connected one of these directly to +5v with no problems whatsoever - I presume that this will probably shorten the cameras life, but it does work perfectly well. It does get slightly warm when in use.

The output from the kernel log when connected to a linux machine looks like:

[21516.342225] usb 1-3: USB disconnect, device number 5 
[21519.844036] usb 1-3: new high-speed USB device number 6 using ehci_hcd 
[21520.167057] uvcvideo: Found UVC 1.00 device Webcam (04f2:b084) 
[21520.170634] input: Webcam as /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/input/input14

The camera is a Chicony CNF8041_A1, ripped out of an Acer Aspire ONE.

Has pinouts silk-screened on the rear of the PCB, which makes things easier.

\$\endgroup\$
  • 1
    \$\begingroup\$ Some are 5v cameras. Some are 3.3v. Some are 3.3v cameras with a 5v input regulator. So it varies. \$\endgroup\$ – Passerby Mar 15 '14 at 16:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.