<?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[HX711]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I use a SiPy board for a connected hive.<br />
I'd like to use a HX711 for the load cell but I don't find any example in Micropython.<br />
Is there somebody who has already used this HX711 board with a Pyboard ?<br />
Thanks for any help ?</p>
]]></description><link>https://forum.pycom.io/topic/2518/hx711</link><generator>RSS for Node</generator><lastBuildDate>Sun, 17 May 2026 20:40:57 GMT</lastBuildDate><atom:link href="https://forum.pycom.io/topic/2518.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 24 Jan 2018 12:25:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to HX711 on Wed, 24 Jan 2018 12:25:08 GMT]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I use a SiPy board for a connected hive.<br />
I'd like to use a HX711 for the load cell but I don't find any example in Micropython.<br />
Is there somebody who has already used this HX711 board with a Pyboard ?<br />
Thanks for any help ?</p>
]]></description><link>https://forum.pycom.io/post/14929</link><guid isPermaLink="true">https://forum.pycom.io/post/14929</guid><dc:creator><![CDATA[lefebvre]]></dc:creator><pubDate>Wed, 24 Jan 2018 12:25:08 GMT</pubDate></item><item><title><![CDATA[Reply to HX711 on Wed, 24 Jan 2018 12:42:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/2278">@lefebvre</a> If you look at <a href="http://forum.micropython.org" target="_blank" rel="noopener noreferrer nofollow">forum.micropython.org</a> and search for HX711, you'll find a thread about the HX711. The problem was, that the clock pulse high period must not exceed 50 µs. Os if you do that with Pin functions, be sure to bracked the whole I/o with machine.disable_irq() and machine.enable_irq(), and use for the high pulse the shortest sequnce, like:<br />
clk_pin(1)<br />
clk_pin(0)<br />
I can check later whether this is shorter than 50 µs. Unless there is a cache page fault between these two statements, it should. The timing would be better using SPI, but the chip uses the number of clock pulses as method for configuration. You have to send <strong>exactly</strong> 25 - 27 clock cycles, which is not possible with SPI, which sends data in multiples of 8 bits.</p>
]]></description><link>https://forum.pycom.io/post/14930</link><guid isPermaLink="true">https://forum.pycom.io/post/14930</guid><dc:creator><![CDATA[robert-hh]]></dc:creator><pubDate>Wed, 24 Jan 2018 12:42:31 GMT</pubDate></item><item><title><![CDATA[Reply to HX711 on Wed, 24 Jan 2018 17:23:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/2278">@lefebvre</a> The typical duration of a pulse created with  pin(1), pin(0) is 6 µs, with some pulses being longer. The longest pulse seen was about 24 µs when irq was disabled for the pulse and 90 µs when irq was enabled.<br />
Test script:</p>
<pre><code>from machine import Pin, enable_irq, disable_irq
from utime import sleep_us

pin = Pin(&quot;P12&quot;, Pin.OUT)

while True:
    state = disable_irq()
    pin(1)
    pin(0)
    enable_irq(state)
    sleep_us(500)
</code></pre>
]]></description><link>https://forum.pycom.io/post/14936</link><guid isPermaLink="true">https://forum.pycom.io/post/14936</guid><dc:creator><![CDATA[robert-hh]]></dc:creator><pubDate>Wed, 24 Jan 2018 17:23:35 GMT</pubDate></item><item><title><![CDATA[Reply to HX711 on Thu, 25 Jan 2018 08:26:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/98">@robert-hh</a> , Thank you for these informations.<br />
I make a test and give you feedback as soon as possible ...</p>
]]></description><link>https://forum.pycom.io/post/14949</link><guid isPermaLink="true">https://forum.pycom.io/post/14949</guid><dc:creator><![CDATA[lefebvre]]></dc:creator><pubDate>Thu, 25 Jan 2018 08:26:48 GMT</pubDate></item><item><title><![CDATA[Reply to HX711 on Sat, 14 Mar 2020 21:00:44 GMT]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">Did you succeed to use the modul HX711 with Sipy? I would to do the same with a Lopy.</p>
<p dir="auto">Thanks a lot,</p>
]]></description><link>https://forum.pycom.io/post/32116</link><guid isPermaLink="true">https://forum.pycom.io/post/32116</guid><dc:creator><![CDATA[Monkeyjacob17]]></dc:creator><pubDate>Sat, 14 Mar 2020 21:00:44 GMT</pubDate></item><item><title><![CDATA[Reply to HX711 on Sat, 14 Mar 2020 21:12:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/5254">@Monkeyjacob17</a> I have used the HX711 with a LoPy (and other) device. The repository is here: <a href="https://github.com/robert-hh/hx711-lopy" target="_blank" rel="noopener noreferrer nofollow">https://github.com/robert-hh/hx711-lopy</a><br />
There are two variants. One is using GPIO bit-banging, the other SPI.<br />
I uses both, but the SPI variant seemed a little bit more reliable. But it requires to specify a third PIN, which is not used.<br />
The <a href="http://hxtest.py" target="_blank" rel="noopener noreferrer nofollow">hxtest.py</a> script uses the SPI method, whereas the example in the README uses the bit bang variant.</p>
]]></description><link>https://forum.pycom.io/post/32117</link><guid isPermaLink="true">https://forum.pycom.io/post/32117</guid><dc:creator><![CDATA[robert-hh]]></dc:creator><pubDate>Sat, 14 Mar 2020 21:12:48 GMT</pubDate></item><item><title><![CDATA[Reply to HX711 on Mon, 16 Mar 2020 16:22:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/5254">@Monkeyjacob17</a> i tried with robert-hh repository and it's working for me</p>
]]></description><link>https://forum.pycom.io/post/32141</link><guid isPermaLink="true">https://forum.pycom.io/post/32141</guid><dc:creator><![CDATA[quentho]]></dc:creator><pubDate>Mon, 16 Mar 2020 16:22:30 GMT</pubDate></item></channel></rss>