<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>University Programs中的主题 Re: Camera capture</title>
    <link>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281780#M232</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can give you a tip: got a $3 flashlight from Harbor Freight that has over 24 leds in it with batteries! Hacked it apart and mounted it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Sep 2013 13:15:19 GMT</pubDate>
    <dc:creator>danielhadad</dc:creator>
    <dc:date>2013-09-10T13:15:19Z</dc:date>
    <item>
      <title>Camera capture</title>
      <link>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281760#M212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have discovered a few issues with the camera and the latest FRDM-TFC (perhaps I have a bad one). [And yes, I did cover the back of the camera PCB since light bleeds through the PCB into the array (also mentioned in ProTip #1 &lt;A href="https://community.nxp.com/docs/DOC-1030"&gt;Line Scan Camera Use&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The sample rate of the camera data is too slow (1 Hz or so). I estimated the 1 Hz by watching the led lights change and seeing labview updates.&lt;/P&gt;&lt;P&gt;2. My particular camera seems to be off by 20 degrees (I have to point it to the right by 20 degrees or so to get it to show up in the middle of the labview (see attachment). I wonder if this might be a poorly mounted array or perhaps misaligned lens? I will ask John if I can try another one.&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.JPG.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/40621i02896F9F60316693/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG.jpg" alt="Capture.JPG.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 11:13:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281760#M212</guid>
      <dc:creator>jefff</dc:creator>
      <dc:date>2013-08-29T11:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Camera capture</title>
      <link>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281761#M213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What were you pointing the camera at?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I find that at home, using the center room light alone (three 60W equiv bulbs, I think), the exposure time is longer.&amp;nbsp; How long I don't recall.&amp;nbsp; Here at my desk, with the under flipper light illuminating an 11x17 paper with the starting gate printed on it, the exposure time is on the order of 25mS. The exposure is significantly longer in lower light, though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Might the low rate be due to the USB connection to Labview blocking the application from running? If I add printf's in, it slows things down, particularly since I have not bothered to figure out how to use the buffering and interrupts the MODSERIAL library allows.&amp;nbsp; I'm also further hampered by using a 9600 baud serial LCD I have instead of a 115.2k baud connection to a PC.&amp;nbsp; (I use the little LCD for portability.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Given the size of the sensor and how the lens mounts, it's hard to imagine how a 20 degree offset can occur. The directory lists that you're in Oak Hill. I sit in J2. If you don't have access to a scope and would like to hook one up over lunch sometime, I've got one at my desk; just give a shout.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 13:10:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281761#M213</guid>
      <dc:creator>david_dicarlo</dc:creator>
      <dc:date>2013-08-29T13:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Camera capture</title>
      <link>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281762#M214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am pointing the camera at a white sheet of paper with a block 1 inch stripe down the middle. Even if I comment out the terminal_printfs, I still see the LEDs changing at about 1Hz. The demo 3 code waits until TFC_ticker[0] is &amp;gt; 1000 and has 2 wait_ms(10) statements in it. I need to study the code some more to understand the delays here, but I just wondered if anyone else is having a similar experience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding the 20 degress offset, it is hard for me to imagine as well; I may take you up on your offer to get some scope time. Also, I may see if John has a spare camera for me to try over lunch. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 14:43:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281762#M214</guid>
      <dc:creator>jefff</dc:creator>
      <dc:date>2013-08-29T14:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Camera capture</title>
      <link>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281763#M215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok. Thx for the above replies. Turns out that my camera is fine. Thx to David for offering to scope the camera for me at lunch today. My issue must have been due to sampling issue using the ADC code etc... I was just jumping the gun and wanting to see the camera output now that I have my car all put together.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My son and I are having a blast with this !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 18:52:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281763#M215</guid>
      <dc:creator>jefff</dc:creator>
      <dc:date>2013-08-29T18:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Camera capture</title>
      <link>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281764#M216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suspected camera as well this evening- but thankfully had scoped it first.&amp;nbsp; Some nice bugs thrown in that I had to fix--- Eli didn't want it to be too easy....&amp;nbsp; :smileywink:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 02:10:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281764#M216</guid>
      <dc:creator>danielhadad</dc:creator>
      <dc:date>2013-08-30T02:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Camera capture</title>
      <link>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281765#M217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you changed the demo code, can you share what you found?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 03:03:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281765#M217</guid>
      <dc:creator>jefff</dc:creator>
      <dc:date>2013-08-30T03:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Camera capture</title>
      <link>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281766#M218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since I was having so much trouble with the mbed demo3, on a whim I decided to move to Code Warrior. Running with Eli's R0 release, I am now getting great results with demo3 camera capture (the sample rate is much much better. There must be a defect in the lastest mbed code for demo3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are some screen shots using CW in demo3 mode:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Coming up to Start/Finish line (manually moving my car)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.JPG.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/40626i7D0E8BAB90B6E0A9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG.jpg" alt="Capture.JPG.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Passing Start/Finish line (manually moving my car at this point)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture2.JPG.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/40627i810E4CA5218C8620/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.JPG.jpg" alt="Capture2.JPG.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 07:59:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281766#M218</guid>
      <dc:creator>jefff</dc:creator>
      <dc:date>2013-08-30T07:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Camera capture</title>
      <link>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281767#M219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jeffrey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry-- turned in just after posting that.&amp;nbsp; Thought the bugs were intentional as a 'test' for students -- but maybe not.&amp;nbsp;&amp;nbsp; In any case this is the 'private' forum so probably ok to share.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It appears that it attempts to grab data from 2 linescan cameras so I commented out the set of loops associated with TFC_LineScanImage1 for now as I don't have a 2nd camera.&lt;/P&gt;&lt;P&gt;Second, it looks like the argument being passed to TFC_LineScanImage0 was incorrect in that if you did the math then i*8+j would not result in sequential values 0 to 127 but skipping and overlapping indices.&amp;nbsp; The correction for that argument is "i*16+j".&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;In fact the dual loop thing isn't needed unless it was a copy from CW intended for something else-- you could just have a single loop 0 to 127 and make it much simpler to access the data, but I left in just in case. &lt;/P&gt;&lt;P&gt;I copied over the end of line condition (where it selectively prints out "\r\n") to the loops associated with TFC_LineScanImage0 and corrected the if condition to be (i==7) &amp;amp;&amp;amp; (j=15) as the condition (i*8)+j==127 was also in error.&amp;nbsp; (could have changed 8 to 16 here too but went a different more easy to read way).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my final code for grabbing the data from camera and sending to terminal:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(i=0;i&amp;lt;8;i++) // print one line worth of data (128) from Camera 0&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(j=0;j&amp;lt;16;j++)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TERMINAL_PRINTF("0x%X",TFC_LineScanImage0[(i*16)+j]);&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if((i==7) &amp;amp;&amp;amp; (j==15))&amp;nbsp; // when last data reached put in line return&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TERMINAL_PRINTF("\r\n",TFC_LineScanImage0[(i*16)+j]);&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TERMINAL_PRINTF(",",TFC_LineScanImage0[(i*16)+j]);&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wait_ms(10);&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/STRONG&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I used TeraTerm to capture the data-- no need for LabView.&amp;nbsp; I copied over the values from the terminal display to a vi editor, saved as CSV, then in Excel converted the values to decimal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my Excel chart of 3 captures-- with line in field of view center, left and right:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="capture_image.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/40658i9E7113E3F09194BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="capture_image.jpg" alt="capture_image.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which pretty much matches my o-scope results.&amp;nbsp;&amp;nbsp;&amp;nbsp; On to data processing!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 13:18:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281767#M219</guid>
      <dc:creator>danielhadad</dc:creator>
      <dc:date>2013-08-30T13:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Camera capture</title>
      <link>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281768#M220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jeffrey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may want to adjust the focus on your camera as well.&amp;nbsp; The dips should look nice and square.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 13:33:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281768#M220</guid>
      <dc:creator>danielhadad</dc:creator>
      <dc:date>2013-08-30T13:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Camera capture</title>
      <link>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281769#M221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yeah, my focus was off. thx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had not looked at the code in detail as I had just assumed it was verified and checked in and matched the CW code. I got rid of the inner j loop and it works better,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, the code is capturing camera data from one camera, but it uses double buffering TFC_LineScanImage0, and TFC_LineScanImage1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are some other differences/observations:&lt;/P&gt;&lt;P&gt; - Both don't properly print the TFC_LineScanImage1 properly&lt;/P&gt;&lt;P&gt; - The mbed code does not include the &lt;SPAN class="pln"&gt;TFC_SetLineScanExposureTime routine that the CW code has.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pln"&gt; - The CW code uses the PIT timer to initiate the camera line scan. The mbed code uses the servo TPM. Thus, there is a scheduling difference between the codes.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pln"&gt; - The camera capture is not as fast in mbed versus Code Warrior. This is probably configurable with timers and such, but just an observation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding using Excel versus Labview, that is a good idea, however, I prefer the realtime display. I think Eli mentioned something about a free graphical processing alternative.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 18:50:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281769#M221</guid>
      <dc:creator>jefff</dc:creator>
      <dc:date>2013-08-30T18:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Camera capture</title>
      <link>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281770#M222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Need to recall where to get the CW code so I can compare with latest rev.   I downloaded it off of google code I think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yeah, haven’t yet done anything to improve—just looking at basic functionality first then looking to improve later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, will have to look at the API more closely as to what those 2 variables are doing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 18:56:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281770#M222</guid>
      <dc:creator>danielhadad</dc:creator>
      <dc:date>2013-08-30T18:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Camera capture</title>
      <link>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281771#M223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I&amp;nbsp; am pretty sure the bugs are not intentional. Keep reporting!&amp;nbsp; We will patch.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 19:42:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281771#M223</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2013-08-30T19:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Camera capture</title>
      <link>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281772#M224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was wrong. I thought TFC_LineScanImage1 was the double buffer. But it turns out that it is for the 2nd camera as you suspected. There are 3 videos that talk about his google code. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Aug 2013 02:42:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281772#M224</guid>
      <dc:creator>jefff</dc:creator>
      <dc:date>2013-08-31T02:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Camera capture</title>
      <link>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281773#M225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess I saved myself a whole lot of grief by not even attempting to use the line sensor code...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Aug 2013 03:32:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281773#M225</guid>
      <dc:creator>david_dicarlo</dc:creator>
      <dc:date>2013-08-31T03:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Camera capture</title>
      <link>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281774#M226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wasn't a big deal-- just saw the "has issues..." comment and thought the bugs were intentional.&amp;nbsp; But having scope data to tell me something was wrong was key.&amp;nbsp; Will try to check in update in mbed soon.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 19:50:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281774#M226</guid>
      <dc:creator>danielhadad</dc:creator>
      <dc:date>2013-09-03T19:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Camera capture</title>
      <link>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281775#M227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update made in mbed-- up to 4.0 on the library now which has the fixes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2013 15:29:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281775#M227</guid>
      <dc:creator>danielhadad</dc:creator>
      <dc:date>2013-09-04T15:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Camera capture</title>
      <link>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281776#M228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx. Just curious. Do you have a summary of the changes you had to make?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2013 15:46:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281776#M228</guid>
      <dc:creator>jefff</dc:creator>
      <dc:date>2013-09-04T15:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Camera capture</title>
      <link>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281777#M229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) make # cameras an option so it doesn't run second set of loops if only 1 camera&lt;/P&gt;&lt;P&gt;2) fix '8' to '16' everywhere (i*16+j)&lt;/P&gt;&lt;P&gt;3) put in end of line stuff for first camera (if there is only 1 camera).&lt;/P&gt;&lt;P&gt;4) condition for end of line made to be ((i==7) &amp;amp;&amp;amp; (j==15))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want code diffs- just check out library as separate thing in mbed and you can do version compare between 3 and 4 (file revisions...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the diff screenshot:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="main_diffs.PNG.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/40400i0DC08069998CD307/image-size/large?v=v2&amp;amp;px=999" role="button" title="main_diffs.PNG.png" alt="main_diffs.PNG.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2013 15:56:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281777#M229</guid>
      <dc:creator>danielhadad</dc:creator>
      <dc:date>2013-09-04T15:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Camera capture</title>
      <link>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281778#M230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the mbed code, I was wondering what frequency the servo should be run since the camera exposure time is based on the servo frequency (unlike the CW code).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a comparison of MBED code and CW:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 687px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="122"&gt;&lt;/TD&gt;&lt;TD class="xl63" width="275"&gt;&lt;STRONG&gt;MBED&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" width="290"&gt;&lt;STRONG&gt;Code Warrior&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;&lt;STRONG&gt;Trigger for ADC Hander&lt;BR /&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;TPM1&lt;/TD&gt;&lt;TD&gt;PIT running at 20 Hz or 50 ms&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;&lt;STRONG&gt;TPM0(Motors)&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;4000 Hz or 0.25 ms&lt;/TD&gt;&lt;TD&gt;5000 Hz or 0.2 ms&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;&lt;STRONG&gt;TPM1(Servo)&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;50 Hz or 20ms&lt;/TD&gt;&lt;TD&gt;50 Hz or 20ms&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20"&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached are camera captured data where I used Eli's terminal printf to an excel program on the fly (my alternative to the expensive Labview).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CodeWarrior with camera capture at 20Hz:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="imageFile.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/40653i0C6F11ED8DB49D56/image-size/large?v=v2&amp;amp;px=999" role="button" title="imageFile.jpg" alt="imageFile.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Default MBED code with camera capture at 50Hz:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="imageFile.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/40250i2EF31A8D1F599817/image-size/large?v=v2&amp;amp;px=999" role="button" title="imageFile.jpg" alt="imageFile.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Default MBED code with camera capture at 20Hz:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="imageFile.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/40703i2C6F36A40D4265C2/image-size/large?v=v2&amp;amp;px=999" role="button" title="imageFile.jpg" alt="imageFile.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Notice that there is a lot more light intensity and the edges are much, much sharper when the servo frequency is decreased.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why is the MBED running the capture so fast and why is the CodeWarrior code using the PIT instead of the TPM1 to do the ADC handler?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And what frequency should we be running the servo?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2013 03:42:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281778#M230</guid>
      <dc:creator>jefff</dc:creator>
      <dc:date>2013-09-10T03:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Camera capture</title>
      <link>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281779#M231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to design some lights myself. My son and I made an oval paper track this past weekend. It covers our living room (my wife hopes it is temporary. lol). I have been messing with a steering PID controller trying to get the right parameters to keep the car on the track at speed. I am not going to be able to make it tomorrow as I have a lunch appointment. But I will probably come the following Monday. - Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2013 05:48:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/University-Programs/Camera-capture/m-p/281779#M231</guid>
      <dc:creator>jefff</dc:creator>
      <dc:date>2013-09-10T05:48:11Z</dc:date>
    </item>
  </channel>
</rss>

