<?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>mini project: PICO-PI programmable Lab Switch - 5: use the USB Port as COM</title><link>/technologies/test-and-measurement/b/blog/posts/mini-project-pico-pi-programmable-lab-switch---5-use-the-usb-port-as-com</link><description>In this series, I design a programmable lab switch based on RP2040, that can turn a set of signals or supplies on or off. Over USB. SCPI compatible.In this post: enable the USB as communication channel.





Differences with UART approa...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: mini project: PICO-PI programmable Lab Switch - 5: use the USB Port as COM</title><link>https://community.element14.com/technologies/test-and-measurement/b/blog/posts/mini-project-pico-pi-programmable-lab-switch---5-use-the-usb-port-as-com</link><pubDate>Sat, 29 Oct 2022 20:39:11 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:f818691c-607c-4587-998d-994ebaac82da</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;If you are using a Pico-PI to drive&amp;nbsp;your relay, and your relay&amp;nbsp;break-out is for an Arduino, the &amp;quot;Relay May Not Click with Confidence&amp;quot;. Check &lt;a href="/products/arduino/b/blog/posts/make-arduino-relay-breakout-boards-3-3v-ready"&gt;this post&lt;/a&gt;.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=24632&amp;AppID=13&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: mini project: PICO-PI programmable Lab Switch - 5: use the USB Port as COM</title><link>https://community.element14.com/technologies/test-and-measurement/b/blog/posts/mini-project-pico-pi-programmable-lab-switch---5-use-the-usb-port-as-com</link><pubDate>Tue, 25 Oct 2022 20:49:42 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:f818691c-607c-4587-998d-994ebaac82da</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I&amp;#39;ve added a video of the device in action.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=24632&amp;AppID=13&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: mini project: PICO-PI programmable Lab Switch - 5: use the USB Port as COM</title><link>https://community.element14.com/technologies/test-and-measurement/b/blog/posts/mini-project-pico-pi-programmable-lab-switch---5-use-the-usb-port-as-com</link><pubDate>Mon, 24 Oct 2022 22:25:04 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:f818691c-607c-4587-998d-994ebaac82da</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Here&amp;#39;s an in-action photo (here with a PICO-H, the version with headers, without castellations):&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/1280x720/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-f818691c-607c-4587-998d-994ebaac82da/picoeuro_5F00_a.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;The onboard LED is SCPI channel 0 (DIGI:OUTP0). The Dev Board LED is channel 1 (DIGI:OUTP1).&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=24632&amp;AppID=13&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: mini project: PICO-PI programmable Lab Switch - 5: use the USB Port as COM</title><link>https://community.element14.com/technologies/test-and-measurement/b/blog/posts/mini-project-pico-pi-programmable-lab-switch---5-use-the-usb-port-as-com</link><pubDate>Mon, 24 Oct 2022 21:38:23 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:f818691c-607c-4587-998d-994ebaac82da</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I just tested the setup on Shabaz&amp;#39; &lt;a href="/products/raspberry-pi/b/blog/posts/pi-pico-eurocard-development-board"&gt;Pi Pico Eurocard Development Board Rev 2.0&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/1280x720/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-f818691c-607c-4587-998d-994ebaac82da/20221024_5F00_220537.jpg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The LED on his dev kit is GP22. That happens to be the Channel 1 that I enabled in post #4.&lt;br /&gt;It all works straight away. No config or code modification needed. The Dev Board with Pico-Probe is plug-in compatible. VSCode happily loaded the firmware and started a debug session.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m going to use this dev kit for the second chapter in this series: adding the relays to really switch things.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=24632&amp;AppID=13&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: mini project: PICO-PI programmable Lab Switch - 5: use the USB Port as COM</title><link>https://community.element14.com/technologies/test-and-measurement/b/blog/posts/mini-project-pico-pi-programmable-lab-switch---5-use-the-usb-port-as-com</link><pubDate>Sat, 22 Oct 2022 17:47:21 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:f818691c-607c-4587-998d-994ebaac82da</guid><dc:creator>DAB</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;I am surprised that it does not let you use the normal interrupts, but I suspect that they have a tight timing window so they lock you out.&lt;/p&gt;
&lt;p&gt;Back in my younger days, I always used interrupts to set up semaphores and then did all of the processing in non real time.&lt;/p&gt;
&lt;p&gt;It worked fine as long as you had good buffer depth for the messages.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=24632&amp;AppID=13&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: mini project: PICO-PI programmable Lab Switch - 5: use the USB Port as COM</title><link>https://community.element14.com/technologies/test-and-measurement/b/blog/posts/mini-project-pico-pi-programmable-lab-switch---5-use-the-usb-port-as-com</link><pubDate>Sat, 22 Oct 2022 15:41:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:f818691c-607c-4587-998d-994ebaac82da</guid><dc:creator>dougw</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Nice flexibility.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=24632&amp;AppID=13&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>