Author Topic: Which uC to tackle Camera project?  (Read 2457 times)

0 Members and 1 Guest are viewing this topic.

Offline soFPGTopic starter

  • Frequent Contributor
  • **
  • Posts: 283
  • Country: de
Which uC to tackle Camera project?
« on: May 16, 2020, 05:23:25 pm »
      I really love to play with my camera in my spare-time and I also like electronics and microcontrollers (and software development).

      So I thought - why not combine everything and build a simple camera?
      I know that Omnivision CMOS sensors are quite common but they are old sensors as far as I am aware of and the also come with a pretty bad lens (which is also not interchangeable and removing it will have a high chance to break the sensor).

      There are some new 2MP ones (OV2718, OV2775) which are produced as a backside illuminated sensor (BSI). As far as I know this feature should increase low-light capabilities drastically.
      These are 1/2.9 inch sensors (x7 crop factor) and there are a lot of CCTV-lenses on Aliexpress etc. which should be a good fit for them. But there are some problems:

      • They come in a chip-scale package with 77 pins with a 0.61mm ball pitch -> I don't think JLCPCB is able to manufacture this?
      • One can decide between MIPI CSI-2/LVDS and 12-bit parallel DVP output (I am not familiar with these interfaces so don't really know what to choose but with MIPI you can achieve 120fps compared to only 42fps with DVP)
      • Which microcontroller would fit this project? They say 9 - 30MHz clock input so 1920 x 1080 pixels x 12-Bit ADC ~ 3Mbyte / s. But there is not only this large amount of data but also some post-processing which must happen as the pixels are arranged in a Bayer-pattern (this means each pixel either has the color green, red or blue)

      And then I also have to output the pixels on a high-resolution color display (at least 320x240). I would assume the uC needs quite a high amount of processing power for this?

      What are your suggestions?
 

Online nctnico

  • Super Contributor
  • ***
  • Posts: 30299
  • Country: nl
    • NCT Developments
Re: Which uC to tackle Camera project?
« Reply #1 on: May 16, 2020, 05:42:11 pm »
This is something a Raspberry Pi or similar is a good platform for.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline tmadness

  • Regular Contributor
  • *
  • Posts: 83
  • Country: us
Re: Which uC to tackle Camera project?
« Reply #2 on: May 18, 2020, 08:04:48 pm »
If you need a microcontroller, sony makes these https://developer.sony.com/develop/spresense/ . They are absolute beasts, probably need to dive deep into the architecture to program them.
 

Offline Scrts

  • Frequent Contributor
  • **
  • Posts: 803
  • Country: lt
Re: Which uC to tackle Camera project?
« Reply #3 on: May 18, 2020, 09:17:29 pm »
Which microcontroller would fit this project? They say 9 - 30MHz clock input so 1920 x 1080 pixels x 12-Bit ADC ~ 3Mbyte / s.

You assume 1FPS? Because otherwise, you should estimate like this:
1920 x 1080 (x 1.15 for blanking if you prefer) x 30FPS [OV2775 limitation if full frame] x 12bit (x2 times capture if you want HDR). But these sensors output RAW Bayer data. You'd need to couple it with, lets say OV491 or OV495 to get YUV422 output.
 

Offline JLCPCB Official

  • Regular Contributor
  • *
  • Posts: 152
  • Country: hk
Re: Which uC to tackle Camera project?
« Reply #4 on: May 21, 2020, 11:03:30 am »
Hello ;

You can make the schematic of a customized design for a camera and then produce it.. make sure that you are using the appropriate uC to handle the high volume of frames generated by the camera sensor.. a high frequency uC is good and nothing less than 32 architecture and it would be better if the uC has a I²S and separated DSP for a better audio and signal processing. I recommend the use of ST uC
 

Offline chriva

  • Regular Contributor
  • *
  • Posts: 102
  • Country: se
Re: Which uC to tackle Camera project?
« Reply #5 on: May 21, 2020, 11:18:02 am »
bitluni managed to connect a camera to an esp32 and make it work ( I swear something is wrong with that guy and I love him for that :D ).

Those things are surprisingly powerful as long as you don't push too many fpu calculations but I had no clue they could do that.
 

Offline Kasper

  • Frequent Contributor
  • **
  • Posts: 966
  • Country: ca
Re: Which uC to tackle Camera project?
« Reply #6 on: May 25, 2020, 06:57:26 am »
ESP32-cam for cheap, low power, wireless camera.  Downside is hardware quality.  I bought 2 and one worked. Lots of amazon reviews had similar stories.

Ardu-cam for wide variety of options. That can be plugged into a variety of MCUs.

Raspberry pi cam for easiest programming.  Downside is boot time. With the usual programming it takes much longer but you can boot to webserver in a few seconds if you want to do it the hard way.
 

Offline fchk

  • Frequent Contributor
  • **
  • Posts: 413
  • Country: de
Re: Which uC to tackle Camera project?
« Reply #7 on: May 25, 2020, 07:35:10 am »
nVidia Jetson Nano.

Has a bunch of CSI-Lanes, hardware image accelerators and a GPU for image processing with CUDA, so more then enough power.

Or the bigger brother Xavier NX with even double the computing power.

https://developer.nvidia.com/embedded/jetson-nano-developer-kit
https://developer.nvidia.com/embedded/jetson-xavier-nx-devkit

The system is open, so you can use just the compute module itself and design your own baseboard.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

-->