<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>BBB - Imaging with a PRU connected Camera</title><link>/products/devtools/single-board-computers/next-genbeaglebone/b/blog/posts/bbb---imaging-with-a-pru-connected-camera</link><description>This was an interesting exercise to try to get simple camera capability for the BeagleBone Black directly (without USB) for some low-resolution imaging ideal for some machine vision use-cases, robotics and movement detection. The lower resolution mea</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: BBB - Imaging with a PRU connected Camera</title><link>https://community.element14.com/products/devtools/single-board-computers/next-genbeaglebone/b/blog/posts/bbb---imaging-with-a-pru-connected-camera</link><pubDate>Thu, 16 Apr 2020 08:48:12 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:50abd2da-312c-49a7-a5cf-13f2c0e934b2</guid><dc:creator>yusmi</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;hello, thanks for the great project about beaglebone&lt;br /&gt;I&amp;#39;m using beaglebone green with debian 9 and when i make the cam.zip i have some problem : &lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;yusmi@beaglebone:~/cam$ make clean&lt;/p&gt;&lt;p&gt;rm -rf *.o *.bin cam_app core *~&lt;/p&gt;&lt;p&gt;yusmi@beaglebone:~/cam$ make&lt;/p&gt;&lt;p&gt;pasm -b prucode_cam.p&lt;/p&gt;&lt;p&gt;make: pasm: Command not found&lt;/p&gt;&lt;p&gt;Makefile:46: recipe for target &amp;#39;prucode_cam&amp;#39; failed&lt;/p&gt;&lt;p&gt;make: *** [prucode_cam] Error 127&lt;/p&gt;&lt;p&gt;yusmi@beaglebone:~/cam$&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I really&amp;nbsp; need this help very much and I&amp;#39;ve been stuck.&lt;/p&gt;&lt;p&gt;Thank you.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=16149&amp;AppID=80&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: BBB - Imaging with a PRU connected Camera</title><link>https://community.element14.com/products/devtools/single-board-computers/next-genbeaglebone/b/blog/posts/bbb---imaging-with-a-pru-connected-camera</link><pubDate>Mon, 21 Jan 2019 02:09:36 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:50abd2da-312c-49a7-a5cf-13f2c0e934b2</guid><dc:creator>paul23</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hi, thanks for the great post.&amp;nbsp; I know it been a while since you did this work, but thought you might be able to point me in the right direction.&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Do you have information on how to scale the image to different sizes in the camera setup?&amp;nbsp; Seems to be some combination of registers 3E,41,72,74,75 - but your setup appears to not use these settings.&amp;nbsp; I&amp;#39;d like to double the horizontal resolution. Any help is much appreciated!&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=16149&amp;AppID=80&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: BBB - Imaging with a PRU connected Camera</title><link>https://community.element14.com/products/devtools/single-board-computers/next-genbeaglebone/b/blog/posts/bbb---imaging-with-a-pru-connected-camera</link><pubDate>Sun, 06 May 2018 23:23:03 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:50abd2da-312c-49a7-a5cf-13f2c0e934b2</guid><dc:creator>rewsiffer</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Can someone please explain how exactly to compile the i2c library? There are no steps in that forum post either. Thanks.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=16149&amp;AppID=80&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: BBB - Imaging with a PRU connected Camera</title><link>https://community.element14.com/products/devtools/single-board-computers/next-genbeaglebone/b/blog/posts/bbb---imaging-with-a-pru-connected-camera</link><pubDate>Tue, 15 Mar 2016 08:21:05 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:50abd2da-312c-49a7-a5cf-13f2c0e934b2</guid><dc:creator>Former Member</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hey! Great work there! &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I had one question. After doing some research, I am not really clear as to what the cairo buffer does. Can you explain or give me some links I can follow? TIA! &lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=16149&amp;AppID=80&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: BBB - Imaging with a PRU connected Camera</title><link>https://community.element14.com/products/devtools/single-board-computers/next-genbeaglebone/b/blog/posts/bbb---imaging-with-a-pru-connected-camera</link><pubDate>Wed, 02 Mar 2016 10:55:07 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:50abd2da-312c-49a7-a5cf-13f2c0e934b2</guid><dc:creator>Former Member</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hi Shabaz,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;this is really a wonderful document. i learned alot of things from this.&amp;nbsp; i am having confusion in one thing. can you plz tell me that&lt;/p&gt;&lt;p&gt;what are you using to capture the waveforms?&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=16149&amp;AppID=80&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: BBB - Imaging with a PRU connected Camera</title><link>https://community.element14.com/products/devtools/single-board-computers/next-genbeaglebone/b/blog/posts/bbb---imaging-with-a-pru-connected-camera</link><pubDate>Fri, 01 May 2015 09:18:34 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:50abd2da-312c-49a7-a5cf-13f2c0e934b2</guid><dc:creator>nownuri</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hi Shabaz. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;This is really nice article and what I have been looking for. I have a beaglebone black and now would interface a CMOS camera with it. To do this I want ask you for one thing. It would be very appreciated if you give me informations. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Could one interface and control the following CMOS camera module with BBB?&amp;nbsp; &lt;/p&gt;&lt;p&gt;http://www.ovt.com/download_document.php?type=sensor&amp;amp;sensorid=109&lt;/p&gt;&lt;p&gt;It doesn&amp;#39;t have to be fast capture. Actually I&amp;#39;d take perfectly still images for long time. But I wonder if I can control exposure time, ISO, frame rate(small) and so on. Would it be possible? Otherwise I should buy boards like NVIDIA tegra KT1(camera development board, $200). I hope that it is possible with BBB!&amp;nbsp; &lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=16149&amp;AppID=80&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: BBB - Imaging with a PRU connected Camera</title><link>https://community.element14.com/products/devtools/single-board-computers/next-genbeaglebone/b/blog/posts/bbb---imaging-with-a-pru-connected-camera</link><pubDate>Sat, 21 Mar 2015 06:31:17 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:50abd2da-312c-49a7-a5cf-13f2c0e934b2</guid><dc:creator>sammyt</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hi Shabaz!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Just wondering if you have any simple code for reading blocking UART with a PRU? &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Cheers!&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=16149&amp;AppID=80&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: BBB - Imaging with a PRU connected Camera</title><link>https://community.element14.com/products/devtools/single-board-computers/next-genbeaglebone/b/blog/posts/bbb---imaging-with-a-pru-connected-camera</link><pubDate>Fri, 20 Mar 2015 13:21:30 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:50abd2da-312c-49a7-a5cf-13f2c0e934b2</guid><dc:creator>Former Member</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hello!&lt;/p&gt;&lt;p&gt;I need a little help. I am getting error while compiling the code provided by you and so far I haven&amp;#39;t been able to figure it out please help. &lt;span&gt;[View:/resized-image/__size/16x16/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-50abd2da-312c-49a7-a5cf-13f2c0e934b2/contentimage_5F00_2.png:16:16]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;My output when I type &amp;#39;make&amp;#39; is as follows&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;pasm -b prucode_cam.p&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;PRU Assembler Version 0.84&lt;/p&gt;&lt;p&gt;Copyright (C) 2005-2013 by Texas Instruments Inc.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Pass 2 : 0 Error(s), 0 Warning(s)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Writing Code Image of 182 word(s)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;gcc&amp;nbsp; -c -o camctrl.o camctrl.c&lt;/p&gt;&lt;p&gt;gcc&amp;nbsp; -c -o camimg.o camimg.c&lt;/p&gt;&lt;p&gt;gcc camctrl.o camimg.o -L. -lpthread -lprussdrv -lm -li2cfunc -lcairo -o cam_app&lt;/p&gt;&lt;p&gt;/usr/bin/ld: error: cam_app uses VFP register arguments, /usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../libi2cfunc.a(i2cfunc.o) does not&lt;/p&gt;&lt;p&gt;/usr/bin/ld: failed to merge target specific data of file /usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../libi2cfunc.a(i2cfunc.o)&lt;/p&gt;&lt;p&gt;collect2: ld returned 1 exit status&lt;/p&gt;&lt;p&gt;make: *** [cam_app] Error 1&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=16149&amp;AppID=80&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: BBB - Imaging with a PRU connected Camera</title><link>https://community.element14.com/products/devtools/single-board-computers/next-genbeaglebone/b/blog/posts/bbb---imaging-with-a-pru-connected-camera</link><pubDate>Thu, 16 Oct 2014 15:03:46 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:50abd2da-312c-49a7-a5cf-13f2c0e934b2</guid><dc:creator>Former Member</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Shabaz Hello, you helped me with your I2C library a few days ago. &lt;/p&gt;&lt;p&gt;Continuing with my project the camera is working in QCIF. I want to use VGA resolution, but as you said in your article, the memory allocated in main RAM is very small, but can be changed. &amp;quot;To fix this requires the driver to change the RAM allocation&amp;quot;. &lt;/p&gt;&lt;p&gt;I&amp;#39;m trying to do this, and it seems that there is a parameter for it in &amp;quot;uio_pruss.c&amp;quot;, more specifically: &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt; 37 static int extram_pool_sz = SZ_256K;&lt;/p&gt;&lt;p&gt; 38 module_param(extram_pool_sz, int, 0);&lt;/p&gt;&lt;p&gt; 39 MODULE_PARM_DESC(extram_pool_sz, &amp;quot;external ram pool size to allocate&amp;quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;But I&amp;#39;m not able to make it work ... You know how I do this? I only need to change these parameters? Or do I need to recompile the driver?&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=16149&amp;AppID=80&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: BBB - Imaging with a PRU connected Camera</title><link>https://community.element14.com/products/devtools/single-board-computers/next-genbeaglebone/b/blog/posts/bbb---imaging-with-a-pru-connected-camera</link><pubDate>Mon, 28 Apr 2014 09:00:21 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:50abd2da-312c-49a7-a5cf-13f2c0e934b2</guid><dc:creator>Former Member</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hi, very interesting stuff. I wanted to ask if you know about a method to add a composite video (with Cinch) input to the BBB?&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=16149&amp;AppID=80&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: BBB - Imaging with a PRU connected Camera</title><link>https://community.element14.com/products/devtools/single-board-computers/next-genbeaglebone/b/blog/posts/bbb---imaging-with-a-pru-connected-camera</link><pubDate>Sun, 09 Mar 2014 18:57:26 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:50abd2da-312c-49a7-a5cf-13f2c0e934b2</guid><dc:creator>Former Member</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Its really nice to see such an informative discussion&lt;/p&gt;&lt;p&gt;Someone can share that, at what speed Arm CPU can take data from&amp;nbsp; shared memory in PRU?&lt;/p&gt;&lt;p&gt;Is there a possibility to transfer some lines of date from shared memory in Pru to DDR memory to get high frame rate.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=16149&amp;AppID=80&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: BBB - Imaging with a PRU connected Camera</title><link>https://community.element14.com/products/devtools/single-board-computers/next-genbeaglebone/b/blog/posts/bbb---imaging-with-a-pru-connected-camera</link><pubDate>Wed, 21 Aug 2013 00:46:54 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:50abd2da-312c-49a7-a5cf-13f2c0e934b2</guid><dc:creator>morgaine</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;This is a great project!&amp;nbsp; Very nicely presented too --- what are you using to capture the waveforms?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Am I right in thinking that throughput is wholly camera-limited, and that using multiple cameras is feasible because the PRU isn&amp;#39;t really being exerted much at all with a PCLK of 2MHz so it could multiplex several of them?&amp;nbsp; One would run out of input pins before PRU bandwidth.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;That said, transferring pixels at 2MHz isn&amp;#39;t going to allow one to reach the rated 20-30 FPS at the highest resolution, so presumably the device would be configured for higher readout rates once you have it on a noise-controlled PCB?&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=16149&amp;AppID=80&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: BBB - Imaging with a PRU connected Camera</title><link>https://community.element14.com/products/devtools/single-board-computers/next-genbeaglebone/b/blog/posts/bbb---imaging-with-a-pru-connected-camera</link><pubDate>Tue, 20 Aug 2013 00:37:11 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:50abd2da-312c-49a7-a5cf-13f2c0e934b2</guid><dc:creator>fustini</dc:creator><slash:comments>2</slash:comments><description>&lt;p&gt;Wow, another exciting BBB project and superbly documented blog post!&amp;nbsp; Time for a publisher to come after you for a book deal &lt;span&gt;[View:/resized-image/__size/16x16/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-50abd2da-312c-49a7-a5cf-13f2c0e934b2/contentimage_5F00_1.png:16:16]&lt;/span&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=16149&amp;AppID=80&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>