<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[simple method to identify which expansion board is being used?]]></title><description><![CDATA[<p dir="auto">is there a simple micropython method I can call to determine the expansion board/pyscan/pysense/pytrack my pycom devboard is connected to?<br />
The only option I can think of is to use exception handling. e.g. try py = Pysense():</p>
]]></description><link>https://forum.pycom.io/topic/4760/simple-method-to-identify-which-expansion-board-is-being-used</link><generator>RSS for Node</generator><lastBuildDate>Thu, 13 Aug 2026 08:19:46 GMT</lastBuildDate><atom:link href="https://forum.pycom.io/topic/4760.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 27 Apr 2019 13:50:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to simple method to identify which expansion board is being used? on Sat, 27 Apr 2019 14:01:59 GMT]]></title><description><![CDATA[<p dir="auto">is there a simple micropython method I can call to determine the expansion board/pyscan/pysense/pytrack my pycom devboard is connected to?<br />
The only option I can think of is to use exception handling. e.g. try py = Pysense():</p>
]]></description><link>https://forum.pycom.io/post/27536</link><guid isPermaLink="true">https://forum.pycom.io/post/27536</guid><dc:creator><![CDATA[philwilkinson]]></dc:creator><pubDate>Sat, 27 Apr 2019 14:01:59 GMT</pubDate></item><item><title><![CDATA[Reply to simple method to identify which expansion board is being used? on Sat, 27 Apr 2019 20:15:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/1904">@philwilkinson</a> <code>read_hw_version</code> is what you need.</p>
<p dir="auto">See <a href="https://forum.pycom.io/topic/2736/are-there-readable-shield-id-s/3">https://forum.pycom.io/topic/2736/are-there-readable-shield-id-s/3</a></p>
<p dir="auto">Note that this won’t work for the first versions of the expansion board which didn’t have a PIC.</p>
]]></description><link>https://forum.pycom.io/post/27545</link><guid isPermaLink="true">https://forum.pycom.io/post/27545</guid><dc:creator><![CDATA[jcaron]]></dc:creator><pubDate>Sat, 27 Apr 2019 20:15:33 GMT</pubDate></item><item><title><![CDATA[Reply to simple method to identify which expansion board is being used? on Mon, 27 Apr 2020 08:08:32 GMT]]></title><description><![CDATA[<p dir="auto">Same topic: <a href="https://forum.pycom.io/topic/2469/easy-way-to-tell-what-expansion-board-is-in-use">https://forum.pycom.io/topic/2469/easy-way-to-tell-what-expansion-board-is-in-use</a></p>
<p dir="auto">Here's a method to create a generic exp. board object:</p>
<pre><code>from pycoproc import Pycoproc
from pysense import Pysense
from pytrack import Pytrack

# create exp board object using unknown board type
pyexp = Pycoproc(1)

if pyexp.read_product_id() == 61458:
    print(&quot;Using Pysense&quot;)
    pyexp = Pysense()
if pyexp.read_product_id() == 61459:
    print(&quot;Using Pytrack&quot;)
    pyexp = Pytrack()
</code></pre>
<p dir="auto">Later on use eg:</p>
<pre><code>if pyexp.board_type == pyexp.PYSENSE:
    si7006 = SI7006A20()
</code></pre>
<p dir="auto">Perhaps someone can tell us the id for the Pyscan board.</p>
]]></description><link>https://forum.pycom.io/post/32508</link><guid isPermaLink="true">https://forum.pycom.io/post/32508</guid><dc:creator><![CDATA[plsecker]]></dc:creator><pubDate>Mon, 27 Apr 2020 08:08:32 GMT</pubDate></item></channel></rss>