<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									InqBee - LoRa, Battery Powered, Remote Sensor Station - Show &amp; Tell				            </title>
            <link>https://forum.dronebotworkshop.com/show-tell/inqbee-lora-battery-powered-remote-sensor-station/</link>
            <description>Discussion board for Robotics, Arduino, Raspberry Pi and other DIY electronics and modules. Join us today!</description>
            <language>en-US</language>
            <lastBuildDate>Thu, 13 Aug 2026 08:30:11 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: InqBee - LoRa, Battery Powered, Remote Sensor Station</title>
                        <link>https://forum.dronebotworkshop.com/show-tell/inqbee-lora-battery-powered-remote-sensor-station/paged/3/#post-44293</link>
                        <pubDate>Tue, 05 Dec 2023 15:20:32 +0000</pubDate>
                        <description><![CDATA[Here is the RasPi 4 setup as the sever / development computer.  

Here it is running headless on my Window&#039;s desktop.

The ESP8266 &quot;Sensor Node&quot; sending at 1 second intervals (while deve...]]></description>
                        <content:encoded><![CDATA[<p>Here is the RasPi 4 setup as the sever / development computer.  </p>
8225
<p>Here it is running headless on my Window's desktop.</p>
8224
<p>The ESP8266 "Sensor Node" sending at 1 second intervals (while development) is working out very nicely.  I haven't finished the re-sends communications yet for missed / corrupted messages.  But all the deep sleep, node registering with the server handshaking and primary data sending goals are done.  Currently with polling three sensors (2) Temperature, Humidity, Pressure and supply voltage, sending the packet and waiting for a confirmation takes 45 milli-seconds.  I'm assuming (worse case) it'll get worse with range, but that is yet to be determined.  It should have fantastic battery life.  </p>
8227
<p>I've spent extra effort making the node-side library as lean as possible as I expect to make many of these nodes for different things.  I'm glad I got a 5 pac of LoRa modules.  I already have plans for them:</p>
<ul>
<li>One bee-hive</li>
<li>One for a weather station</li>
<li>One for the mailbox at about 300 yards away for notification.</li>
<li>One in the attic to monitor temperature / humidity</li>
<li>One in the crawl-space to monitor temperature / humidity</li>
</ul>
<p>Here is total Sketch code.  99% is comments and sensor related... only about 3-lines of code are added to do a LoRa / Deep Sleep solution. 😉 </p>
<pre contenteditable="false">#include &lt;InqNode.h&gt;
#include &lt;Adafruit_AHTX0.h&gt;
#include &lt;Adafruit_BMP085.h&gt;

// These constants must be filled out ==========================================
// CHANNEL - A InqVault server will listen on one channel.  All nodes talking
//      to that server must use the same channel.
const u32 CHANNEL = 42;             
// FREQUENCY - Must be the same LoRa frequency as your InqVault server and
//      also comply with frequency in your region.  North America = 915000000.
const u32 FREQUENCY = 915000000; 
// META - These are descriptors of the package fields.  Nominally these are
//      sensor data being stored on the InqVault.  They get registered with 
//      the server and are exposed out to your Web Browsers GUIs.  Consists of:
//      &lt;node name&gt;:
const char* META = "InqBee:TemperatureOutside(°C),TemperatureInside(°C),\
HumidityInside(%M),Pressure(mbar),Voltage(V),HumidityOutside(%),Weight(kg),\
Light(lm)";                         
// PACKAGE - A C struct with "float" fields of very value you wish to retain
//      on the InqVault server database.
struct InqBee
{
    float temperatureOutside;   // (°C)
    float temperatureInside;    // (°C)
    float humidityInside;       // (%M)
    float pressure;             // (mbar)
    float voltage;              // (mV)
    float humidityOutside;      // (%)
    float weight;               // (kg)
    float light;                // (lm)
};

// Sensor Declarations =========================================================
ADC_MODE(ADC_VCC);
Adafruit_BMP085 bmp180;     // Uses standard I2C bus - SCL=D1, SDA=D2
Adafruit_AHTX0 aht10;       // Uses standard I2C bus - SCL=D1, SDA=D2

void setup()
{
#ifdef DEBUG
    Serial.begin(115200);
    delay(1000);
    dbg("\n");
#endif
    // Create the package for sending data -------------------------------------
    InqBee* pkg = CreatePackage(InqBee, META, CHANNEL, FREQUENCY);

    // Update the package with sensor data as necessary ------------------------
    pkg-&gt;voltage = ESP.getVcc() * 0.01;

    if (aht10.begin())
    {
        sensors_event_t humid, temp;
        aht10.getEvent(&amp;humid, &amp;temp);
        pkg-&gt;temperatureInside = temp.temperature;             // °C
        pkg-&gt;humidityInside = humid.relative_humidity;         // %M
    }

    if (bmp180.begin())
    {
        pkg-&gt;temperatureOutside = bmp180.readTemperature();    // °C
        pkg-&gt;pressure = (float) bmp180.readPressure() * 0.01;  // mbar
    }
    
    // Send the package --------------------------------------------------------
    PostPackage();
}

void loop() 
{ 
}
</pre>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/show-tell/">Show &amp; Tell</category>                        <dc:creator>Inq</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/show-tell/inqbee-lora-battery-powered-remote-sensor-station/paged/3/#post-44293</guid>
                    </item>
				                    <item>
                        <title>RE: InqBee - LoRa, Battery Powered, Remote Sensor Station</title>
                        <link>https://forum.dronebotworkshop.com/show-tell/inqbee-lora-battery-powered-remote-sensor-station/paged/3/#post-44290</link>
                        <pubDate>Tue, 05 Dec 2023 14:39:43 +0000</pubDate>
                        <description><![CDATA[Library - Unfortunately I ended up having to cobble several together.  I&#039;ve gotten used to the Sandeep Mistry one @dronebot-workshop recommended for our Arduino/ESP&#039;s.  Meaning... it seemed ...]]></description>
                        <content:encoded><![CDATA[
<p>@inq What library did you end up using? As far as half duplex, can you not spawn multiple server tasks to just listen on a pin and forward the message to a single processor?</p>
<p></p>
<p><strong>Library</strong> - Unfortunately I ended up having to cobble several together.  I've gotten used to the <span>Sandeep Mistry one @dronebot-workshop recommended for our Arduino/ESP's.  Meaning... it seemed to be a pretty clean port.  I found a Github that ported it to RasPi - <a href="https://github.com/loraraspi91/LoRa4Raspi" target="_blank" rel="noopener">https://github.com/loraraspi91/LoRa4Raspi</a>.  However, it uses a pin library (wiringPi.h) that has been totally abandoned.  Using this page <a href="https://elinux.org/RPi_GPIO_Code_Samples#Direct_register_access" target="_blank" rel="noopener">https://elinux.org/RPi_GPIO_Code_Samples#Direct_register_access</a>, I tried to select one that is still being regularly used, seems to still be supported and has few "Issues".  They're all 3rd party and not supported by the RasPi organization.  Which is very unfortunate.  I finally decided to go with 1.5 pigpio as it has very thorough documentation <a href="https://abyz.me.uk/rpi/pigpio/cif.html#spiOpen" target="_blank" rel="noopener">https://abyz.me.uk/rpi/pigpio/cif.html#spiOpen</a> on how to install and use it.  It also supports interrupt callbacks from its SPI functions.  Many of the other pin libraries did not.  The Sandeep Mistry library did not have code to use interrupts.  You have to poll for a message.  Very fugly!  I found a second LoRa library that uses this pigpio, <a href="https://github.com/YandievRuslan/sx1278-LoRa-RaspberryPi" target="_blank" rel="noopener">https://github.com/YandievRuslan/sx1278-LoRa-RaspberryPi</a>.  It would not work for me, after I tried to make the adjustments for North America.  I was able to read the code well enough to use some of its pigpio usage techniques in modifying the Sandeep Mistry version. </span></p>
<p><strong>Also note, it appears that the RasPi 5 is using a new/different pin I/O chip than all the previous RasPi's.</strong>  What this means - all these pin libraries above and the libraries (like LoRa libraries) that use them will not work on a RasPi 5!  I did not comprehensively research this because I am targeting the low-end of RasPi's.  I'm doing development on a RasPi 4, but will be running these on RaspPi Zero-W's.  I also have a Orange-Pi Zero W showing up.  I look forward to seeing what these clone boards are like.  </p>
<p><strong>Half-Duplex</strong> - Nah... its not a problem I can throw software at and fix.  The libraries I've been working with have to put it in TX mode or RX mode... so having a separate thread monitoring it, is not possible.  It's like radios... you have to key the mike and while keyed, you can't receive anything.  I have nodes and servers sending and then immediately going into RX mode.  I have not experimented with contention yet, but even in perfect (6" range) conditions, packets are missed.  So its not a stretch to assume they'll be missed when in TX mode.</p>
<p>VBR,</p>
<p><em>Inq</em></p>
<p> </p>
<p> </p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/show-tell/">Show &amp; Tell</category>                        <dc:creator>Inq</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/show-tell/inqbee-lora-battery-powered-remote-sensor-station/paged/3/#post-44290</guid>
                    </item>
				                    <item>
                        <title>RE: InqBee - LoRa, Battery Powered, Remote Sensor Station</title>
                        <link>https://forum.dronebotworkshop.com/show-tell/inqbee-lora-battery-powered-remote-sensor-station/paged/3/#post-44259</link>
                        <pubDate>Sun, 03 Dec 2023 13:27:10 +0000</pubDate>
                        <description><![CDATA[@inq What library did you end up using? As far as half duplex, can you not spawn multiple server tasks to just listen on a pin and forward the message to a single processor?]]></description>
                        <content:encoded><![CDATA[@inq What library did you end up using? As far as half duplex, can you not spawn multiple server tasks to just listen on a pin and forward the message to a single processor?]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/show-tell/">Show &amp; Tell</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/show-tell/inqbee-lora-battery-powered-remote-sensor-station/paged/3/#post-44259</guid>
                    </item>
				                    <item>
                        <title>LoRa, Battery Powered, Remote Sensor Station - Server</title>
                        <link>https://forum.dronebotworkshop.com/show-tell/inqbee-lora-battery-powered-remote-sensor-station/paged/3/#post-44258</link>
                        <pubDate>Sun, 03 Dec 2023 13:23:22 +0000</pubDate>
                        <description><![CDATA[Server Update
Have been working on moving to a Raspberry Pi for a server for the potentially &quot;many&quot; sensor stations.  I&#039;ve never really worked with a RasPi for development.  I&#039;m actually fi...]]></description>
                        <content:encoded><![CDATA[<p><span style="text-decoration: underline"><strong>Server Update</strong></span></p>
<p>Have been working on moving to a Raspberry Pi for a server for the potentially "many" sensor stations.  I've never really worked with a RasPi for development.  I'm actually finding it pleasing.  I'm using a headless RasPi 4B for development and it actually is far faster compiling than Arduino IDE or Visual Studio on an i7 Windows box. </p>
<p>I chose not to do the full "Recommended Extras" setup, but building C++ projects worked out of the box with JUST the "Desktop" install.  Getting it to work with the LoRa modules was another story.  Because of recent changes for the RasPi 5, there are many breaking changes in Pin I/O libraries and SPI libraries and thus LoRa libraries.  Most libraries are broke, deprecated or the Open-Source developer, abandoned the project.  I did finally find a combination that works and now have a bare bones LoRa server working on the RaspPi.  </p>
<p><span style="text-decoration: underline"><strong>LoRa Performance</strong></span></p>
<p>In that regard I have it working non-stop on a ESP8266, sleeping client to the RasPi  server.  I wanted to give a statistic for anyone contemplating a LoRa project.  </p>
<ul>
<li>Delivery is not assured.  If your data HAS to get there every time, you'll need to roll your own TCP like protocol.  (Although the LoRaWan may do that)</li>
<li>It is basically half-duplex.  You can't receive and send at the same time.  So while the server is sending back a response, it might miss messages from other nodes.</li>
<li><strong>I have one Node sending a message once / second.  Nothing too demanding.  They are about a meter apart.  </strong>
<ul>
<li><strong>Missed messages are about 0.1% of the time.  Good - but not reliable.</strong></li>
<li><strong>Corrupted messages (Invalid CRC) are about 0.05% of the time.</strong></li>
<li><strong>I'd assume it to get worse with distance... like 300 meters!</strong> - I'll update when I get a test rig in that condition.</li>
</ul>
</li>
</ul>
<p>VBR,</p>
<p><em>Inq</em></p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/show-tell/">Show &amp; Tell</category>                        <dc:creator>Inq</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/show-tell/inqbee-lora-battery-powered-remote-sensor-station/paged/3/#post-44258</guid>
                    </item>
				                    <item>
                        <title>RE: InqBee - LoRa, Battery Powered, Remote Sensor Station</title>
                        <link>https://forum.dronebotworkshop.com/show-tell/inqbee-lora-battery-powered-remote-sensor-station/paged/3/#post-44099</link>
                        <pubDate>Sat, 25 Nov 2023 01:34:00 +0000</pubDate>
                        <description><![CDATA[@inq They are out of stock in the US using your links, but a simple Amazon Canada search turned up a few dozen more sellers so I have a source, thanks. I thought maybe you were sourcing from...]]></description>
                        <content:encoded><![CDATA[<p>@inq They are out of stock in the US using your links, but a simple Amazon Canada search turned up a few dozen more sellers so I have a source, thanks. I thought maybe you were sourcing from eBay which is a big hassle in Canada.</p>
<p>Sorry, I guess I should have explained, my training is pre internet, the only training I ever got in that area was tcp/ip and udp. Knowing all the nitty gritty details of the various headers etc isn't much help to me now plus I have forgot it all in any case. Java to me is coffee.</p>
<p>I did look at some of your samples, but it may as well be written in greek.</p>
<p>Just to put this old dinosaur in perspective, I used to submit searches on 3 part memos in the late 70's, the results would come back a few days later printed on 15 1/2" x 11 1/2" paper and occasionally if I entered a search with too broad a criteria a small hand truck would show up with a few hundred pounds of what was now waste paper, and we did't even re-cycle in those days!</p>
<p> </p>
<p> </p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/show-tell/">Show &amp; Tell</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/show-tell/inqbee-lora-battery-powered-remote-sensor-station/paged/3/#post-44099</guid>
                    </item>
				                    <item>
                        <title>RE: InqBee - LoRa, Battery Powered, Remote Sensor Station</title>
                        <link>https://forum.dronebotworkshop.com/show-tell/inqbee-lora-battery-powered-remote-sensor-station/paged/3/#post-44098</link>
                        <pubDate>Sat, 25 Nov 2023 01:09:41 +0000</pubDate>
                        <description><![CDATA[Well... yeah!  What&#039;d you expect?  You asked for my links.  I don&#039;t buy my stuff from Canada to make it easier for you to find.
 

The graphing is purely web development stuff.  Has nothi...]]></description>
                        <content:encoded><![CDATA[<p></p>
<p><a title="Inq" href="https://forum.dronebotworkshop.com/participant/inq/">@inq</a> Those links are OOS</p>
<p></p>
<p>Well... yeah!  What'd you expect?  You asked for <span style="text-decoration: underline"><strong>my</strong></span> links.  I don't buy my stuff from Canada to make it easier for you to find.</p>
<p> </p>
<p></p>
<p>Ah well, google is my friend.</p>
<p></p>
<p>The graphing is purely web development stuff.  Has nothing to do with Arduino, ESP8266 or InqPortal.  It's a JavaScript library.  There are plenty of free JavaScript libraries to do any kind of graphics, dashboards, dials, gauges etc.  If/when I get the RaspberryPi server working, it'll use the same library for graphing out to a webpage.</p>
<p> </p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/show-tell/">Show &amp; Tell</category>                        <dc:creator>Inq</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/show-tell/inqbee-lora-battery-powered-remote-sensor-station/paged/3/#post-44098</guid>
                    </item>
				                    <item>
                        <title>RE: InqBee - LoRa, Battery Powered, Remote Sensor Station</title>
                        <link>https://forum.dronebotworkshop.com/show-tell/inqbee-lora-battery-powered-remote-sensor-station/paged/3/#post-44097</link>
                        <pubDate>Sat, 25 Nov 2023 00:42:37 +0000</pubDate>
                        <description><![CDATA[@inq Those links are OOS, but a quick search on Amazon.ca turned up 10 AHT10 for $21.52 and 5 BMP280 for $11.99 so a set for $4.55, very reasonable.
You are right, I did miss that lora and ...]]></description>
                        <content:encoded><![CDATA[<p>@inq Those links are OOS, but a quick search on Amazon.ca turned up 10 AHT10 for $21.52 and 5 BMP280 for $11.99 so a set for $4.55, very reasonable.</p>
<p>You are right, I did miss that lora and wifi aspect.</p>
<p>Since I can't follow the Inq stuff, I will just forget about using Inq and an 8266. Too bad, it looks very cool. Ah well, google is my friend.</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/show-tell/">Show &amp; Tell</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/show-tell/inqbee-lora-battery-powered-remote-sensor-station/paged/3/#post-44097</guid>
                    </item>
				                    <item>
                        <title>RE: InqBee - LoRa, Battery Powered, Remote Sensor Station</title>
                        <link>https://forum.dronebotworkshop.com/show-tell/inqbee-lora-battery-powered-remote-sensor-station/paged/3/#post-44095</link>
                        <pubDate>Sat, 25 Nov 2023 00:19:26 +0000</pubDate>
                        <description><![CDATA[They&#039;re both extremely common.  Doing a search on your favorite vendor will likely find you tons of hits even cheaper.  Even on Amazon, I consider this to be dirt cheap.
BMP280 (Temperature...]]></description>
                        <content:encoded><![CDATA[
<p>Very impressive. At some point I will want to do that for my garden, and since other people may want the same thing, do you have a source other than ebay for great prices in quantities of 10 for the two sensors?</p>
<p>I assume creating that graph is documented in your Inq stuff?</p>
<p></p>
<p>They're both extremely common.  Doing a search on your favorite vendor will likely find you tons of hits even cheaper.  Even on Amazon, I consider this to be dirt cheap.</p>
<p>BMP280 (Temperature/Pressure) - <a href="https://amz.run/7MlW" target="_blank" rel="noopener">https://amz.run/7MlW</a></p>
<p>AHT10 (Temperature/Humidity) - <a href="https://amz.run/7MlX" target="_blank" rel="noopener">https://amz.run/7MlX</a> - I used to use the DHT11 and DHT22 in my classes and gave them out like candy.  I bet I got 50% failures with them.  I don't know if students were miss-wiring them, but I even had them go bad in working systems after a while.  I've not had one AHT10 go bad.  They're more accurate and cheaper to boot.</p>
<p>As you can see both sensors are on the same I2C bus and work just fine.</p>
<p>InqStuff 🤣 - (Remember its only on ESP8266) Yes, it is documented in several places on the website.  Even the 5 minute read of the <em>"Quickest Start Guide</em>" here in my signature walks through the whole process all the way to graphing one of your custom published variables (sensor data) and even to the using the wizard to pump out a custom Dashboard webpage.  </p>
<p>But... the InqStuff doesn't support LoRa unless you make a base station with an ESP8266 that has both LoRa and WiFi running like I did in the example above.</p>
<p>VBR,</p>
<p><em>Inq</em></p>
<p> </p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/show-tell/">Show &amp; Tell</category>                        <dc:creator>Inq</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/show-tell/inqbee-lora-battery-powered-remote-sensor-station/paged/3/#post-44095</guid>
                    </item>
				                    <item>
                        <title>RE: InqBee - LoRa, Battery Powered, Remote Sensor Station</title>
                        <link>https://forum.dronebotworkshop.com/show-tell/inqbee-lora-battery-powered-remote-sensor-station/paged/3/#post-44083</link>
                        <pubDate>Fri, 24 Nov 2023 22:33:29 +0000</pubDate>
                        <description><![CDATA[Very impressive. At some point I will want to do that for my garden, and since other people may want the same thing, do you have a source other than ebay for great prices in quantities of 10...]]></description>
                        <content:encoded><![CDATA[
<p><span style="text-decoration: underline"><strong>Overnight weather station data</strong></span></p>
<p>I left it running over night in my office.  Note how sensitive the gauges are over the last hour since I merely walked into the office and started breathing humidity into the room and me and the computer added a little more heat.  No other adjustment to the room was made.</p>
<span class="wpf-attachment-404">-- attachment is not available --</span>
<p> </p>
<p></p>
<p>Very impressive. At some point I will want to do that for my garden, and since other people may want the same thing, do you have a source other than ebay for great prices in quantities of 10 for the two sensors?</p>
<p>I assume creating that graph is documented in your Inq stuff?</p>
<p> </p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/show-tell/">Show &amp; Tell</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/show-tell/inqbee-lora-battery-powered-remote-sensor-station/paged/3/#post-44083</guid>
                    </item>
				                    <item>
                        <title>RE: InqBee - LoRa, Battery Powered, Remote Sensor Station</title>
                        <link>https://forum.dronebotworkshop.com/show-tell/inqbee-lora-battery-powered-remote-sensor-station/paged/3/#post-44080</link>
                        <pubDate>Fri, 24 Nov 2023 21:59:00 +0000</pubDate>
                        <description><![CDATA[@inq What a coincidence. Our main data structure also looked wrong because it was preceded by &#039;hdr&#039; data. Every time we got a new hire they would trip over it.]]></description>
                        <content:encoded><![CDATA[@inq What a coincidence. Our main data structure also looked wrong because it was preceded by 'hdr' data. Every time we got a new hire they would trip over it.]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/show-tell/">Show &amp; Tell</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/show-tell/inqbee-lora-battery-powered-remote-sensor-station/paged/3/#post-44080</guid>
                    </item>
							        </channel>
        </rss>
		