{"id":3768,"date":"2023-12-07T04:36:01","date_gmt":"2023-12-07T04:36:01","guid":{"rendered":"https:\/\/vegaprocessors.in\/blog\/?p=3768"},"modified":"2023-12-07T04:36:01","modified_gmt":"2023-12-07T04:36:01","slug":"interfacing-camera-with-vega-aries-boards","status":"publish","type":"post","link":"https:\/\/vegaprocessors.in\/blog\/interfacing-camera-with-vega-aries-boards\/","title":{"rendered":"Interfacing Camera with VEGA ARIES boards"},"content":{"rendered":"\n<p>In this tutorial, we will see how we can interface Arducam Mini 2MP OV2640 with ARIES v3.0 Board.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Arducam Mini OV2640<\/h2>\n\n\n\n<p>ArduCAM-2MP-Plus is an optimized version of ArduCAM shield Rev.C, and is a high-definition&nbsp;<a href=\"https:\/\/amzn.to\/3M3gtli\" target=\"_blank\" rel=\"noreferrer noopener\">2MP SPI camera<\/a>, which reduces the complexity of the camera control interface. It integrates 2MP CMOS image sensor OV2640 and provides miniature size, as well as an easy-to-use hardware interface and open source code library.<\/p>\n\n\n\n<p>The ArduCAM mini can be used on any platform like Arduino, Raspberry Pi, Maple, Chipkit, or Beaglebone black, as long as they have SPI and I2C interface and can be well mated with standard Arduino boards. ArduCAM mini not only offers the capability to add a camera interface that doesn\u2019t have in some low-cost microcontrollers but also provides the capability to add multiple cameras to a single microcontroller.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Application:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>IoT cameras<\/li>\n\n\n\n<li>Robot cameras<\/li>\n\n\n\n<li>Wildlife cameras<\/li>\n\n\n\n<li>Other battery-powered products<\/li>\n\n\n\n<li>Can be used in MCU, Raspberry Pi, ARM, DSP, and FPGA platforms<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Features:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>2MP image sensor&nbsp;OV2640<\/li>\n\n\n\n<li>M12 mount or CS-mount lens holder with changeable lens options<\/li>\n\n\n\n<li>IR sensitivity with proper lens combination<\/li>\n\n\n\n<li>I2C interface for sensor configuration<\/li>\n\n\n\n<li>SPI interface for camera commands and data streams<\/li>\n\n\n\n<li>All IO ports are 5V\/3.3V tolerant<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"722\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/cam-1024x722.jpg\" alt=\"\" class=\"wp-image-3769\" style=\"width:401px;height:283px\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/cam-1024x722.jpg 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/cam-300x212.jpg 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/cam-768x542.jpg 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/cam.jpg 1500w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Windows 10 or above\/Linux (64 bit)<\/li>\n\n\n\n<li>Arduino IDE<\/li>\n\n\n\n<li><a href=\"https:\/\/vegaprocessors.in\/devboards\/ariesv3.php\" target=\"_blank\" rel=\"noreferrer noopener\">VEGA ARIES Board support package<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Components Required<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>ARIES v3.0 Board<\/li>\n\n\n\n<li>USB type C to USB type A cable<\/li>\n\n\n\n<li>Arducam Mini 2MP OV2640 Module<\/li>\n\n\n\n<li>Jumper Wires<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Circuit Diagram<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"524\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/cam-1024x524.png\" alt=\"\" class=\"wp-image-4121\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/cam-1024x524.png 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/cam-300x154.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/cam-768x393.png 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/cam.png 1307w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Connections:<\/h2>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td><strong>OLED Display<\/strong><\/td><td><strong>ARIES V3 board<\/strong><\/td><\/tr><tr><td>CS<\/td><td>GPIO-7<\/td><\/tr><tr><td>MOSI<\/td><td>MOSI-0<\/td><\/tr><tr><td>MISO<\/td><td>MISO-0<\/td><\/tr><tr><td>SCK<\/td><td>SCLK-0<\/td><\/tr><tr><td>GND<\/td><td>GND<\/td><\/tr><tr><td>VCC<\/td><td>3V3<\/td><\/tr><tr><td>SDA<\/td><td>SDA-1<\/td><\/tr><tr><td>SCL<\/td><td>SCL-1<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\"><strong><em>Connection pins of arducam &amp; ARIES v3.0 Board<\/em><\/strong><\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Procedure<\/h2>\n\n\n\n<p>Open and set up the Arduino IDE as described in&nbsp;<a href=\"https:\/\/vegaprocessors.in\/devboards\/ariesv3.php\" target=\"_blank\" rel=\"noreferrer noopener\">Getting Started with ARIES v3.0<\/a>.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Make sure you have selected&nbsp;<strong>ARIES v3<\/strong>&nbsp;Board from&nbsp;<strong>Tools<\/strong>&nbsp;-&gt;&nbsp;<strong>Board<\/strong>&nbsp;-&gt;&nbsp;<strong>VEGA Processor: ARIES Boards<\/strong>&nbsp;-&gt;&nbsp;<strong>ARIES v3<\/strong><\/li>\n\n\n\n<li>Select Programmer as VEGA XMODEM from&nbsp;<strong>Tools<\/strong>&nbsp;-&gt;&nbsp;<strong>Programmer<\/strong>&nbsp;-&gt;&nbsp;<strong>VEGA XMODEM<\/strong><\/li>\n\n\n\n<li>Also select appropriate port from&nbsp;<strong>Tools<\/strong>&nbsp;-&gt;&nbsp;<strong>Port&nbsp;-&gt; COM* (ARIES Board)<\/strong><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"847\" height=\"415\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/11\/tools-1.png\" alt=\"\" class=\"wp-image-4553\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/11\/tools-1.png 847w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/11\/tools-1-300x147.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/11\/tools-1-768x376.png 768w\" sizes=\"auto, (max-width: 847px) 100vw, 847px\" \/><\/figure>\n\n\n\n<p>Now, Open&nbsp;<strong>Files<\/strong>&nbsp;-&gt;&nbsp;<strong>Examples<\/strong>&nbsp;-&gt; Under&nbsp;<strong>Examples for ARIES v3<\/strong>&nbsp;<strong>-&gt;&nbsp;SPI-&gt;&nbsp;Arducam_Mini_OV2640_functions_256000<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"532\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/1-1024x532.png\" alt=\"\" class=\"wp-image-3771\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/1-1024x532.png 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/1-300x156.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/1-768x399.png 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/1.png 1477w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Libraries<\/h2>\n\n\n\n<p>Arduino libraries are an extension of the standard Arduino API and consists of thousands of libraries, both official and contributed by the community. Libraries simplifies the use of complex codes. Every version of Arduino IDE has a library manager for installing Arduino software libraries. The libraries required for this projects are available in the below link:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/gitlab.com\/riscv-vega\/vega-sensor-libraries\/sensors\/vega_arducam\">https:\/\/gitlab.com\/riscv-vega\/vega-sensor-libraries\/sensors\/vega_arducam<\/a><\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Download  the zip file<\/li>\n\n\n\n<li>In Arduino IDE, Click on <strong>Sketch -&gt; Include Library -&gt; Add ZIP Library <\/strong>and select the zip file you have downloaded from the above link and click on<strong> Open <\/strong>to add the library file.<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"766\" height=\"754\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-40.png\" alt=\"\" class=\"wp-image-4162\" style=\"aspect-ratio:1.0159151193633953;width:272px;height:auto\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-40.png 766w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-40-300x295.png 300w\" sizes=\"auto, (max-width: 766px) 100vw, 766px\" \/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"638\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-42-1024x638.png\" alt=\"\" class=\"wp-image-4161\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-42-1024x638.png 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-42-300x187.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-42-768x478.png 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-42.png 1026w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>Once you have downloaded the required libraries you can <strong>upload <\/strong>the code to ARIES board.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Output<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/1-11-1024x576.jpeg\" alt=\"\" class=\"wp-image-4159\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/1-11-1024x576.jpeg 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/1-11-300x169.jpeg 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/1-11-768x432.jpeg 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/1-11-1536x864.jpeg 1536w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/1-11-2048x1152.jpeg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Extract the zip file you have downloaded and Open Arducam host app from the folder -&gt; <strong>ArduCAM -&gt;examples -&gt;host_app\\ArduCAM_Host_V2.0_Windows.exe<\/strong><\/p>\n\n\n\n<p>Double click on the application and the Arducam camera app will get open.<\/p>\n\n\n\n<p>Select the port in the app as the port to which your ARIES board is connected (Here <strong>COM19<\/strong> is the port to which the ARIES board is connected), Select the baud rate of camera app as <strong>256000<\/strong> and click on <strong>Open<\/strong> to open the camera module. You can choose the mode as <strong>Single\/Continuous<\/strong> for single picture capturing and continuous capturing respectively.Click on <strong>Capture <\/strong>in continuous mode to capture an image.<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"829\" height=\"544\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-36.png\" alt=\"\" class=\"wp-image-4152\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-36.png 829w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-36-300x197.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-36-768x504.png 768w\" sizes=\"auto, (max-width: 829px) 100vw, 829px\" \/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"802\" height=\"521\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-37.png\" alt=\"\" class=\"wp-image-4153\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-37.png 802w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-37-300x195.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-37-768x499.png 768w\" sizes=\"auto, (max-width: 802px) 100vw, 802px\" \/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"798\" height=\"522\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-38-1.png\" alt=\"\" class=\"wp-image-4155\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-38-1.png 798w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-38-1-300x196.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-38-1-768x502.png 768w\" sizes=\"auto, (max-width: 798px) 100vw, 798px\" \/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Output<\/h2>\n\n\n\n<p>Once you click on the capture button you will get the image captured on a different screen as shown below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"360\" src=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-39-1-1024x360.png\" alt=\"\" class=\"wp-image-4157\" srcset=\"https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-39-1-1024x360.png 1024w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-39-1-300x105.png 300w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-39-1-768x270.png 768w, https:\/\/vegaprocessors.in\/blog\/wp-content\/uploads\/2023\/10\/Screenshot-39-1.png 1448w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><\/h2>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will see how we can interface Arducam Mini 2MP OV2640 with ARIES v3.0 Board. Arducam Mini OV2640 ArduCAM-2MP-Plus is an optimized version of ArduCAM shield Rev.C, and is a high-definition&nbsp;2MP SPI camera, which reduces the complexity of the camera control interface. It integrates 2MP CMOS image sensor OV2640 and provides miniature [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[94],"tags":[],"class_list":["post-3768","post","type-post","status-publish","format-standard","hentry","category-aries-with-arduinoide"],"_links":{"self":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/3768","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/comments?post=3768"}],"version-history":[{"count":14,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/3768\/revisions"}],"predecessor-version":[{"id":4561,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/posts\/3768\/revisions\/4561"}],"wp:attachment":[{"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/media?parent=3768"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/categories?post=3768"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vegaprocessors.in\/blog\/wp-json\/wp\/v2\/tags?post=3768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}