<?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>micro:bit as Pass / Fail indicator in an automated test setup</title><link>/challenges-projects/project14/test-instrumentation/b/blog/posts/micro-bit-as-pass-fail-indicator-in-an-automated-test-setup</link><description>Test Instrumentation Enter Your Electronics &amp;amp; Design Project for a chance to win a Grand Prize for Originality, a Tool Set, and a $100 Shopping Cart! Back to The Project14 homepage Project14 Home Monthly Themes Monthly Theme Poll I received a mi...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: micro:bit as Pass / Fail indicator in an automated test setup</title><link>https://community.element14.com/challenges-projects/project14/test-instrumentation/b/blog/posts/micro-bit-as-pass-fail-indicator-in-an-automated-test-setup</link><pubDate>Fri, 25 Jan 2019 22:06:22 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:eaf0e971-5fc8-4ea0-af1e-78139ab905ee</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;With some changes - none of them intrusive or complex - this design can become a binning device.&lt;/p&gt;&lt;p&gt;You can put an instrument at the start of the cycle that evaluates the device under test and gives it a binning grade.&lt;/p&gt;&lt;p&gt;One example is for a transistor (this is used by manufacturers to give it a postfix A, B or C)&lt;/p&gt;&lt;ul&gt;&lt;li&gt;hfe &amp;lt; 80,&lt;/li&gt;&lt;li&gt;hfe between 80 and 120,&lt;/li&gt;&lt;li&gt;hfe &amp;gt; 120&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;The micro:bit can then - instead of rejecting or passing the device as it&amp;#39;s doing in the blog&amp;#39;s design - push it into the right bin.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Now that I have a meter with binning and automation capability (DMM6500) I may take this design further and turn it into a binning line driver.&lt;/p&gt;&lt;p&gt;I bet it &amp;#39;ll be less than 20 lines of code to change.&lt;/p&gt;&lt;p&gt;Hang on ...&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=5823&amp;AppID=215&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: micro:bit as Pass / Fail indicator in an automated test setup</title><link>https://community.element14.com/challenges-projects/project14/test-instrumentation/b/blog/posts/micro-bit-as-pass-fail-indicator-in-an-automated-test-setup</link><pubDate>Fri, 30 Nov 2018 21:35:47 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:eaf0e971-5fc8-4ea0-af1e-78139ab905ee</guid><dc:creator>Workshopshed</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Great stuff. I knew that the Microbit would work with MBed but I&amp;#39;ve never seen a worked example before.&lt;/p&gt;&lt;p&gt;I had to google the meanining of SCPI&amp;nbsp; &lt;a class="jive-link-external-small" href="https://www.rohde-schwarz.com/us/driver-pages/remote-control/remote-programming-environments_231250.html" rel="nofollow ugc noopener" target="_blank" title="https://www.rohde-schwarz.com/us/driver-pages/remote-control/remote-programming-environments_231250.html"&gt;https://www.rohde-schwarz.com/us/driver-pages/remote-control/remote-programming-environments_231250.html&lt;/a&gt; &lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=5823&amp;AppID=215&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: micro:bit as Pass / Fail indicator in an automated test setup</title><link>https://community.element14.com/challenges-projects/project14/test-instrumentation/b/blog/posts/micro-bit-as-pass-fail-indicator-in-an-automated-test-setup</link><pubDate>Wed, 07 Nov 2018 20:44:51 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:eaf0e971-5fc8-4ea0-af1e-78139ab905ee</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>2</slash:comments><description>&lt;p&gt;You should be able to import the firmware project in Mbed from my repository.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;In &lt;a class="jive-link-external-small" href="https://os.mbed.com/compiler/" rel="nofollow ugc noopener" target="_blank"&gt;Mbed&lt;/a&gt;, click import. Then click on the link to import from URL as hown in the capture below:&lt;/p&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/728x186/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-eaf0e971-5fc8-4ea0-af1e-78139ab905ee/contentimage_5F00_189088.png:728:186]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Enter &lt;a class="jive-link-external-small" href="https://os.mbed.com/users/jancumps/code/microbit_scpi_pass_fail/" rel="nofollow ugc noopener" target="_blank" title="https://os.mbed.com/users/jancumps/code/microbit_scpi_pass_fail/"&gt;https://os.mbed.com/users/jancumps/code/microbit_scpi_pass_fail/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Select the options as shown below:&lt;/p&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/410x267/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-eaf0e971-5fc8-4ea0-af1e-78139ab905ee/contentimage_5F00_189089.png:410:267]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;After Import, you can select the project and press compile.&lt;/p&gt;&lt;p&gt;If all works OK, Mbed creates a hex file and places it in your Download folder.&lt;/p&gt;&lt;p&gt;If you drop that file on your micro:bit, it should be programmed as a Pass / Fail device.&lt;/p&gt;&lt;p&gt;You can test this by connecting to its COM port with puTTY, 115200.&lt;/p&gt;&lt;p&gt;type STA PAS then enter (you don&amp;#39;t see what you type)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;It should show a + on the led matrix.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I&amp;#39;d appreciate if anyone with a micro:bit can test this.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=5823&amp;AppID=215&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: micro:bit as Pass / Fail indicator in an automated test setup</title><link>https://community.element14.com/challenges-projects/project14/test-instrumentation/b/blog/posts/micro-bit-as-pass-fail-indicator-in-an-automated-test-setup</link><pubDate>Tue, 06 Nov 2018 19:58:37 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:eaf0e971-5fc8-4ea0-af1e-78139ab905ee</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Yay! I have the LabVIEW driver developed and working.&lt;/p&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/588x229/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-eaf0e971-5fc8-4ea0-af1e-78139ab905ee/8055.contentimage_5F00_189086.png:588:229]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;I made blocks to control the status. You see it used three times in the image above, to test each state.&lt;/p&gt;&lt;p&gt;In real flows, you&amp;#39;d use this in a conditional block based on the success or failure of a test process.&lt;/p&gt;&lt;p&gt;I&amp;#39;ve also made utility driver blocks for init, close and reset.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;All in all this device is fairly easy to use in an automation. &lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=5823&amp;AppID=215&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: micro:bit as Pass / Fail indicator in an automated test setup</title><link>https://community.element14.com/challenges-projects/project14/test-instrumentation/b/blog/posts/micro-bit-as-pass-fail-indicator-in-an-automated-test-setup</link><pubDate>Mon, 05 Nov 2018 23:49:11 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:eaf0e971-5fc8-4ea0-af1e-78139ab905ee</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Last update for the day: the GPIO is implemented. That was very easy.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/520x390/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-eaf0e971-5fc8-4ea0-af1e-78139ab905ee/contentimage_5F00_189085.png:520:390]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:3ef06e6b-9b7d-4651-b12d-db8be7f5e991:type=c_cpp&amp;amp;text=++++++++case+SCPI_STATE_PASS%3A%0A++++++++++++uBit.io.P1.setDigitalValue%280%29%3B%0A++++++++++++uBit.io.P0.setDigitalValue%281%29%3B%0A++++++++++++uBit.display.clear%28%29%3B%0A++++++++++++uBit.display.print%28imgPass%29%3B%0A++++++++++++retval+%3D+SCPI_RES_OK%3B%0A++++++++++++break%3B%0A++++++++case+SCPI_STATE_FAIL%3A%0A++++++++++++uBit.io.P0.setDigitalValue%280%29%3B%0A++++++++++++uBit.io.P1.setDigitalValue%281%29%3B%0A++++++++++++uBit.display.clear%28%29%3B%0A++++++++++++uBit.display.print%28imgFail%29%3B%0A++++++++++++retval+%3D+SCPI_RES_OK%3B%0A++++++++++++break%3B%0A++++++++case+SCPI_STATE_CLEAR%3A%0A++++++++++++uBit.io.P0.setDigitalValue%280%29%3B%0A++++++++++++uBit.io.P1.setDigitalValue%280%29%3B%0A++++++++++++uBit.display.clear%28%29%3B%0A++++++++++++retval+%3D+SCPI_RES_OK%3B%0A++++++++++++break%3B]&lt;/p&gt;&lt;div&gt;&lt;/div&gt;&lt;img src="https://community.element14.com/aggbug?PostID=5823&amp;AppID=215&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: micro:bit as Pass / Fail indicator in an automated test setup</title><link>https://community.element14.com/challenges-projects/project14/test-instrumentation/b/blog/posts/micro-bit-as-pass-fail-indicator-in-an-automated-test-setup</link><pubDate>Mon, 05 Nov 2018 23:02:53 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:eaf0e971-5fc8-4ea0-af1e-78139ab905ee</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;little demo:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span id="d102c5e9_b584_42d2_b33a_595f1141ca0a"&gt;&lt;span&gt;[View:https://www.youtube.com/watch?v=5um1LvclLbA:740:466]&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;A short video where I shoot SCPI Pass, Clear and Fail commands. The display shows the respective states.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=5823&amp;AppID=215&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: micro:bit as Pass / Fail indicator in an automated test setup</title><link>https://community.element14.com/challenges-projects/project14/test-instrumentation/b/blog/posts/micro-bit-as-pass-fail-indicator-in-an-automated-test-setup</link><pubDate>Mon, 05 Nov 2018 22:09:02 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:eaf0e971-5fc8-4ea0-af1e-78139ab905ee</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I&amp;#39;ve got most things working now:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;listen to USB commands in sleep mode&lt;/li&gt;&lt;li&gt;parse and execute SCPI commands&lt;/li&gt;&lt;li&gt;Show a bitmap (in this case a X or a +) on the display&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/816x612/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-eaf0e971-5fc8-4ea0-af1e-78139ab905ee/contentimage_5F00_189083.png:816:612]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;The remaining things are the two GPIO pins and implementing the SCPI command to set Pass Fail or Clear status&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=5823&amp;AppID=215&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: micro:bit as Pass / Fail indicator in an automated test setup</title><link>https://community.element14.com/challenges-projects/project14/test-instrumentation/b/blog/posts/micro-bit-as-pass-fail-indicator-in-an-automated-test-setup</link><pubDate>Mon, 05 Nov 2018 16:04:15 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:eaf0e971-5fc8-4ea0-af1e-78139ab905ee</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;The program can now read serial input.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:3ef06e6b-9b7d-4651-b12d-db8be7f5e991:type=c_cpp&amp;amp;text=%23include+%22MicroBitSerial.h%22%0A%2F%2F+...%0AMicroBitSerial+serial%28USBTX%2C+USBRX%29%3B+%0A%2F%2F+...%0A+++while%281%29+%7B%0A++++++++character+%3D+serial.read%28%29%3B%0A++++++++SCPI_Input%28%26scpi_context%2C+%28const+char+*%29+%28%26character%29%2C+1%29%3B%0A++++%7D]&lt;/p&gt;&lt;div&gt;&lt;/div&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/670x115/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-eaf0e971-5fc8-4ea0-af1e-78139ab905ee/contentimage_5F00_189082.png:670:115]&lt;/span&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=5823&amp;AppID=215&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: micro:bit as Pass / Fail indicator in an automated test setup</title><link>https://community.element14.com/challenges-projects/project14/test-instrumentation/b/blog/posts/micro-bit-as-pass-fail-indicator-in-an-automated-test-setup</link><pubDate>Mon, 05 Nov 2018 13:52:49 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:eaf0e971-5fc8-4ea0-af1e-78139ab905ee</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I unpacked the micro:bit today and tried if I can create a C program that uses the SCPI library.&lt;/p&gt;&lt;p&gt;This works. I was able to run a SCPI parse test set and stream the results to USB.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span&gt;[View:/resized-image/__size/692x319/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-eaf0e971-5fc8-4ea0-af1e-78139ab905ee/contentimage_5F00_189081.png:692:319]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;It&amp;#39;s a small step. I&amp;#39;m using the fprintf() function to show the results and have not listened to any input yet.&lt;/p&gt;&lt;p&gt;I&amp;#39;ll most likely have to work with the micro:bit USB C++ API. I&amp;#39;ll investigate that...&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=5823&amp;AppID=215&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>