- Published on
Developing OV5647 camera Linux device driver for Jetson Nano-Tested OK! [Part 3]
- Authors
- Name
- Amarnath B R
- @digitallyamar
After ensuring that I could read and write to my Raspberry Pi v1 OV5647 camera sensor registers using I2C successfully, my next goal was to be able to generate and read back some image out of the sensor. As I went through the data sheet of the OV5647 camera sensor, I figured out that it could generate some predefined test images that I can make use of. So the next step was to get that working.
However, due to incomplete data available in the OV5647 datasheet, it took a lot of effort to figure out how to initialize the test pattern. I had to download and go through several other Omnivision sensors' datasheets to get a better picture of OV5647. But at last as they show in every other Bollywood movie, I did reach a happy ending! I did succeed in generating test images out of my Raspberry Pi v1 camera on Jetson Nano!
Turns out, OV5647 sensor can generate several different test images. You can generate Color bars, Color or Black and Wwhite square grids and even an image using random data.
I did manage to fetch all of these test images from the OV5647 camera sensor on Jetson Nano. Below are some of these test images:
As you can see, all the images are rendered perfectly which means most of my driver's initialization steps for OV5647 sensor is correct.
So with this, I now plan to get into the next important milestone for my OV5647 Linux device driver - To get a raw image captured using OV5647 sensor present in the Raspberry Pi camera using Nvidia Jetson Nano.