• Content Count

  • Joined

  • Last visited

About mattday

  • Rank

Recent Profile Visitors

658 profile views
  1. This is wrong. Please don't plug your camera directly into an Orange Pi One or Orange Pi PC. They output 5V on pins 1 & 24. You need the expansion board to drop this to 2.8V/1.8V for the camera. With Orange Pi 2, Orange Pi Mini and Orange Pi Plus you can connect the camera directly (according to the schematics, as I have not personally tried these). I also don't believe Xunlong/SinoVoip have changed any camera pin layouts. They are just working with what is available and there is no standard.
  2. @lex, not working on first try - PM sent.
  3. Yes, I am using a fixed focus module. It looks as though different modules may use different pins for the AF supply. Obviously not wise to short the supply to ground. However, it is possible some modules internally route power from IO-VDD to AF-VDD and don't even connect pins 23 and 24 to the sensor chip. This is a pure guess, but could explain what lmvc says about it not mattering. Unfortunately there are no standards for the camera connector. Some of them seem to use the same layout, but it is entirely down to the company who package the sensor. Omnivision just sell an imaging chip with
  4. @tkaiser, I agree regarding Steven/Xunlong. Curiously, the current OPi camera expansion board has "200M&500M" printed on it. Anyhow, it should be straightforward to add an extra connector to the board. This seems to be all that is required. The second camera connector would point in the opposite direction to the first camera connector, allowing a OV5640 to plug straight in. I have attached a very rough illustration to show what I mean. In theory, this could also be used with the older OPi boards (the ones that don't require an expansion board to use a GC2035). In this case, it would functi
  5. Orange Pi One Orange Pi camera expansion board and flat flex cable from official camera (2Mp GC2035). OV5640 (of unknown origin) with extra flat flex cable. These are soldered together to reverse connector pins. Ideally the cable would be shorter, but this was just to test. Note that camera is pointing downwards in photo, whereas it would be pointing upwards if plugged directly into expansion board. Hope this is useful to clarify and hope the photo still has enough detail after the forum software has messed with it.
  6. I am using an Orange Pi One v1.1 board.
  7. Just a small update from me as I've not had much time. My new parts arrived and after some messing around I was able to reverse the camera connector. Running modprobe vfe_v4l2 is now successful (output same as post #34). fswebcam is able to capture images from the sensor: 1280x960 and 640x480 give decent images 2592x1936 (full resolution) and 1024x768 give very over exposed images 1920x1080 and 800x600 give green/pink noisy images I get the following output when running fswebcam: [ 2424.901977] [VFE]vfe_open [ 2424.902034] [VFE]..........................vfe clk open!...........
  8. @lmvc: I think it is correct because all the pins match up. OK so they use some slightly different naming depending on which datasheet you are reading. OV5640 can use 10-bit output, whereas only 8-bits are usually connected, so Y9 becomes D7, etc.
  9. @lmvc Your pinouts for board/camera seem to match OK. You can do a quick check for ground pins on the camera FPC because they can be easily identified (see image). This is how I first realised my camera must not be connected correctly. The pin definitions in your fex also look good to me, going off the schematic. If you have a multimeter or oscilloscope, perhaps check the voltage between ground and all VDD/VCC pins. Sorry this is not very helpful.
  10. So everyone is plugging their cameras in the wrong way round!? Maybe I am missing something because I am surprised it is possible to connect the FPC wrong on these boards. The contacts are usually only on one side. If I try to switch mine 180º there will be no connection. @lex: Your sensor may still be OK. I wouldn't worry too much about 3.3V having been connected to ground. Voltage regulators often have some protection built in. There is a small chance you damaged the sensor if 3.3V on pin 2 was connected to the camera data line on pin 23, but because it was shorted, the actual voltage
  11. @lex, Unfortunately I will have to wait for another camera expansion board to come from China now. I attempted desoldering the connector and reversing it at home... this inevitably went horribly wrong. It is possible I damaged my OV5640 sensor, but fortunately I have another one of those. For the NanoPi M1, I think you should be able to copy the [csi0] section from the Orange Pi One fex file with only minor changes. I've looked at the schematic for the M1 and there are only a couple of differences from the Orange Pi. There is no power enable signal on PA17 and it is not clear if PE
  12. I hope it will be solved, but I can't try yet. The pin reversal was responsible for this error in my case. The connections were all wrong. I imagine the first thing the driver does is try to talk to the camera using i2c, but the i2c pins (SDA/SCLK) were connected to some camera image data pins (D2/D3). So of course the communications failed and driver aborted. PIN BOARD CAMERA --- ---------- --------- 01 NC AFVCC-CSI 02 GND GND 03 SDA D2 04 VCC-CSI D1 05 SCK D3 06 RESET D0 07 VSYNC D4 08 PWDN PCLK 09 HSYNC D5 10 VDD1V5-CSI G
  13. I found my hardware issue. It wasn't obvious what 'Sitheek' meant about 'reversing pinouts' for OV5640. From the picture of the adapter board he posted it looked like he might be doing something with pins 10 and 11, but that didn't seem like a good idea from the data I have. It turns out you need to essentially switch the whole connector 180 degrees. So pin 1 becomes pin 24 and vice versa. I can't see how his adapter achieves that, but I can confirm this is necessary for the Orange Pis. I don't have pinouts for the GC2035 or the camera expansion board, but the OV5640 should be pin-compatib
  14. Thanks for the latest info guys, I'll be very interested to see how @lex gets on with the 5Mp camera on NanoPi M1. I only bought the gc2035 for the camera expansion board, so haven't tested that beyond grabbing a frame. I have a OV5640 like this which looks like it should be pin compatible with the board. Although when I run 'modprobe vfe_v4l2' I get the following, suggesting a problem with the i2c communications perhaps? [ 1946.945905] [VFE]Welcome to Video Front End driver [ 1946.946271] [VFE]pdev->id = 0 [ 1946.946286] [VFE]dev->mipi_sel = 0 [ 1946.946298] [VFE]dev->vip_
  15. I have the gc2035 camera working on my Orange Pi One running Armbian, but I need a better image sensor. I've had a quick attempt to get an ov5640 working without any luck. It is a popular 5Mpixel module similar to the RPi camera. I know that 'Sitheek' on the Orange Pi forums had it working. However, that place is a ghost town now and Sitheek has not visited since January. So, I wonder if anyone here has got an OV5640 camera working, or failing that, could just offer some pointers on how to go about this? Thanks.