<?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[How to wire battery sensor with battery voltage reports...]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">I want to wire a sensor node which runs on battery (2xAA)<br />
I have tried to read alot on the forum...</p>
<p dir="auto">It should rapport battery level and have a decouple capacitor to help the radio.<br />
Also i have read on the forum the radio works better if wired directly to the battery?</p>
<p dir="auto">How about a booster? Is it recommended (I have here only for the ardino - should it go to the radio as well?)</p>
<p dir="auto">Do you think this will work?</p>
<p dir="auto"><img src="/uploads/upload-9808b758-cfac-4a0a-b90a-75f86722bf46.jpg" alt="Namnlös.jpg" class=" img-fluid img-markdown" /><br />
Edit: new setup below - dont wire like this)<br />
(Im not using a breadboard - but will solder it togheter in the squares)</p>
<p dir="auto">Br<br />
Andreas Sundberg</p>
<p dir="auto">(Edit: better picture)</p>
]]></description><link>https://forum.mysensors.org/topic/618/how-to-wire-battery-sensor-with-battery-voltage-reports</link><generator>RSS for Node</generator><lastBuildDate>Sat, 08 Aug 2026 19:34:22 GMT</lastBuildDate><atom:link href="https://forum.mysensors.org/topic/618.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 19 Nov 2014 19:41:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to wire battery sensor with battery voltage reports... on Mon, 24 Apr 2017 06:56:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ronnyandre" aria-label="Profile: ronnyandre">@<bdi>ronnyandre</bdi></a> - hehe! That was a while ago :)<br />
I even made a PCB for everyone to use (including full schematics)!</p>
<p dir="auto">Check it out here: <a href="https://www.openhardware.io/view/4/EasyNewbie-PCB-for-MySensors" rel="nofollow ugc">https://www.openhardware.io/view/4/EasyNewbie-PCB-for-MySensors</a></p>
]]></description><link>https://forum.mysensors.org/post/65151</link><guid isPermaLink="true">https://forum.mysensors.org/post/65151</guid><dc:creator><![CDATA[sundberg84]]></dc:creator><pubDate>Mon, 24 Apr 2017 06:56:39 GMT</pubDate></item><item><title><![CDATA[Reply to How to wire battery sensor with battery voltage reports... on Sun, 23 Apr 2017 19:32:10 GMT]]></title><description><![CDATA[<p dir="auto">Would be awesome if you made a fritz sketch of this :)</p>
]]></description><link>https://forum.mysensors.org/post/65122</link><guid isPermaLink="true">https://forum.mysensors.org/post/65122</guid><dc:creator><![CDATA[ronnyandre]]></dc:creator><pubDate>Sun, 23 Apr 2017 19:32:10 GMT</pubDate></item><item><title><![CDATA[Reply to How to wire battery sensor with battery voltage reports... on Sat, 16 May 2015 06:59:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/funky81" aria-label="Profile: funky81">@<bdi>funky81</bdi></a> said:</p>
<blockquote>
<p dir="auto">Hi all, I'm newbie with these libraries.<br />
And I'm a bit confused about the picture.<br />
I'm guessing is that the picture still similar with the battery page in build sites. What makes me confused is that resistor position. And also what is the source to measure in the voltage divider? Is it vcc?</p>
</blockquote>
<p dir="auto">Im a newbie as well, also a bit on and off building...<br />
Yes, i have tried to work from the battery build site. I saw you did a own post about this and worked it out.</p>
<ol>
<li>
<p dir="auto">I have also tried to take power to the radio from the booster - but this seems to drain the battery very fast, annyone else experienced this?</p>
</li>
<li>
<p dir="auto">Also i tried to take power to the radio from the arduino - and it works well, is there any downsides with this?</p>
</li>
<li>
<p dir="auto">Is the radio using any power not used? It seems like the battery last longer with the radio connected to the arduino instread of the battery. When the arduino sleeps - so does the radio i guess, but does the radio sleep any time connected directly to the battery?</p>
</li>
</ol>
]]></description><link>https://forum.mysensors.org/post/14225</link><guid isPermaLink="true">https://forum.mysensors.org/post/14225</guid><dc:creator><![CDATA[sundberg84]]></dc:creator><pubDate>Sat, 16 May 2015 06:59:52 GMT</pubDate></item><item><title><![CDATA[Reply to How to wire battery sensor with battery voltage reports... on Sat, 06 Dec 2014 05:14:08 GMT]]></title><description><![CDATA[<p dir="auto">And also, is it correct to take power directly from the batteries instead from the arduino itself?</p>
]]></description><link>https://forum.mysensors.org/post/7443</link><guid isPermaLink="true">https://forum.mysensors.org/post/7443</guid><dc:creator><![CDATA[funky81]]></dc:creator><pubDate>Sat, 06 Dec 2014 05:14:08 GMT</pubDate></item><item><title><![CDATA[Reply to How to wire battery sensor with battery voltage reports... on Sat, 06 Dec 2014 05:09:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sundberg84" aria-label="Profile: sundberg84">@<bdi>sundberg84</bdi></a></p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sundberg84" aria-label="Profile: sundberg84">@<bdi>sundberg84</bdi></a> said:</p>
<blockquote>
<p dir="auto">Hi!</p>
<p dir="auto">Ok, i wanted to share my "sollution" or atleast current setup if someone else in the future has the same problem.<img src="/uploads/upload-5ed3f6ed-2d8c-4e6e-83bf-407973550c49.jpg" alt="Namnlös.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto">The radio and battery voltage sensor (R1/R2) is not connected to Step up regulator.<br />
Also DHT22 sensor needs atleast 3v to operate so i put the arduino and DHT22 after the voltage regulator.</p>
<p dir="auto">Im sleeping the node for 15min, then sends temp and hum. The Battery status is sent each 8 loop. Now i will have a look how fast the battery is drained. I have not removed the led in the aurdino or step up reg so im guessing quite fast.</p>
<p dir="auto">I have the radio about 15 meter (1 wall) from the gw - 100% seems to be st=ok.</p>
<p dir="auto">Any improvement ideas - let me know,</p>
<p dir="auto">Br<br />
Andreas</p>
</blockquote>
<p dir="auto">Hi all, I'm newbie with these libraries.<br />
And I'm a bit confused about the picture.<br />
I'm guessing is that the picture still similar with the battery page in build sites. What makes me confused is that resistor position. And also what is the source to measure in the voltage divider? Is it vcc?</p>
]]></description><link>https://forum.mysensors.org/post/7442</link><guid isPermaLink="true">https://forum.mysensors.org/post/7442</guid><dc:creator><![CDATA[funky81]]></dc:creator><pubDate>Sat, 06 Dec 2014 05:09:33 GMT</pubDate></item><item><title><![CDATA[Reply to How to wire battery sensor with battery voltage reports... on Sun, 23 Nov 2014 17:49:14 GMT]]></title><description><![CDATA[<p dir="auto">The 0,1uF capacitor is usually put in parallell with the 470k. Unless your battery wires are very long or interfered I think it's useless as it is.</p>
]]></description><link>https://forum.mysensors.org/post/7033</link><guid isPermaLink="true">https://forum.mysensors.org/post/7033</guid><dc:creator><![CDATA[m26872]]></dc:creator><pubDate>Sun, 23 Nov 2014 17:49:14 GMT</pubDate></item><item><title><![CDATA[Reply to How to wire battery sensor with battery voltage reports... on Sun, 23 Nov 2014 16:50:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hek" aria-label="Profile: hek">@<bdi>hek</bdi></a> just let me know if you need any additional designers for the homepage :+1: haha</p>
<p dir="auto">/Andreas</p>
]]></description><link>https://forum.mysensors.org/post/7030</link><guid isPermaLink="true">https://forum.mysensors.org/post/7030</guid><dc:creator><![CDATA[sundberg84]]></dc:creator><pubDate>Sun, 23 Nov 2014 16:50:49 GMT</pubDate></item><item><title><![CDATA[Reply to How to wire battery sensor with battery voltage reports... on Sun, 23 Nov 2014 12:09:58 GMT]]></title><description><![CDATA[<p dir="auto">picasso ..</p>
]]></description><link>https://forum.mysensors.org/post/7027</link><guid isPermaLink="true">https://forum.mysensors.org/post/7027</guid><dc:creator><![CDATA[dzairo]]></dc:creator><pubDate>Sun, 23 Nov 2014 12:09:58 GMT</pubDate></item><item><title><![CDATA[Reply to How to wire battery sensor with battery voltage reports... on Sun, 23 Nov 2014 12:04:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sundberg84" aria-label="Profile: sundberg84">@<bdi>sundberg84</bdi></a></p>
<p dir="auto">Just love your pictures :)</p>
]]></description><link>https://forum.mysensors.org/post/7026</link><guid isPermaLink="true">https://forum.mysensors.org/post/7026</guid><dc:creator><![CDATA[hek]]></dc:creator><pubDate>Sun, 23 Nov 2014 12:04:07 GMT</pubDate></item><item><title><![CDATA[Reply to How to wire battery sensor with battery voltage reports... on Sun, 23 Nov 2014 11:48:46 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">Ok, i wanted to share my "sollution" or atleast current setup if someone else in the future has the same problem.<img src="/uploads/upload-5ed3f6ed-2d8c-4e6e-83bf-407973550c49.jpg" alt="Namnlös.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto">The radio and battery voltage sensor (R1/R2) is not connected to Step up regulator.<br />
Also DHT22 sensor needs atleast 3v to operate so i put the arduino and DHT22 after the voltage regulator.</p>
<p dir="auto">Im sleeping the node for 15min, then sends temp and hum. The Battery status is sent each 8 loop. Now i will have a look how fast the battery is drained. I have not removed the led in the aurdino or step up reg so im guessing quite fast.</p>
<p dir="auto">I have the radio about 15 meter (1 wall) from the gw - 100% seems to be st=ok.</p>
<p dir="auto">Any improvement ideas - let me know,</p>
<p dir="auto">Br<br />
Andreas</p>
]]></description><link>https://forum.mysensors.org/post/7025</link><guid isPermaLink="true">https://forum.mysensors.org/post/7025</guid><dc:creator><![CDATA[sundberg84]]></dc:creator><pubDate>Sun, 23 Nov 2014 11:48:46 GMT</pubDate></item><item><title><![CDATA[Reply to How to wire battery sensor with battery voltage reports... on Sat, 22 Nov 2014 11:39:19 GMT]]></title><description><![CDATA[<p dir="auto">Yes - moving it closer to the gateway improves numbers of st=ok but still not 100% (not even close) even if i only have a fem meters between. Needs to check my soldering and wiring.</p>
<p dir="auto">Thank you for answers - will upload new image when ready and it works.</p>
]]></description><link>https://forum.mysensors.org/post/6987</link><guid isPermaLink="true">https://forum.mysensors.org/post/6987</guid><dc:creator><![CDATA[sundberg84]]></dc:creator><pubDate>Sat, 22 Nov 2014 11:39:19 GMT</pubDate></item><item><title><![CDATA[Reply to How to wire battery sensor with battery voltage reports... on Fri, 21 Nov 2014 11:18:23 GMT]]></title><description><![CDATA[<p dir="auto">Ok, tHanks! Will try to move closer to gw and see what happens.</p>
]]></description><link>https://forum.mysensors.org/post/6970</link><guid isPermaLink="true">https://forum.mysensors.org/post/6970</guid><dc:creator><![CDATA[sundberg84]]></dc:creator><pubDate>Fri, 21 Nov 2014 11:18:23 GMT</pubDate></item><item><title><![CDATA[Reply to How to wire battery sensor with battery voltage reports... on Fri, 21 Nov 2014 10:20:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sundberg84" aria-label="Profile: sundberg84">@<bdi>sundberg84</bdi></a> said:</p>
<blockquote>
<p dir="auto">It Seems to be a power issue-it works better with usb power supply. Ill check more when i get home.</p>
<p dir="auto">What does st-fail means? Is it some missing/failed axcknowledge message from gw?</p>
</blockquote>
<p dir="auto">I think, that it means that the radio didn't receive an acknowledge from the receiving part. There are multiple ACK's in the system. both inter radio (from point to point, which is the one st=ok /st=fail is about). If there are repeaters between the sensor node, and the gw, then this ACK is only for the direct next uplink (repeater).</p>
<p dir="auto">But also you can ask mysensor to send an ack for each message, this travels across repeaters from GW to sensor (or the other way arround).</p>
<p dir="auto">So in this case, it means that the radio transmits, but there is no receiver ack'ing that it has heard the broadcast.</p>
]]></description><link>https://forum.mysensors.org/post/6964</link><guid isPermaLink="true">https://forum.mysensors.org/post/6964</guid><dc:creator><![CDATA[tbowmo]]></dc:creator><pubDate>Fri, 21 Nov 2014 10:20:06 GMT</pubDate></item><item><title><![CDATA[Reply to How to wire battery sensor with battery voltage reports... on Fri, 21 Nov 2014 09:16:59 GMT]]></title><description><![CDATA[<p dir="auto">It Seems to be a power issue-it works better with usb power supply. Ill check more when i get home.</p>
<p dir="auto">What does st-fail means? Is it some missing/failed axcknowledge message from gw?</p>
]]></description><link>https://forum.mysensors.org/post/6963</link><guid isPermaLink="true">https://forum.mysensors.org/post/6963</guid><dc:creator><![CDATA[sundberg84]]></dc:creator><pubDate>Fri, 21 Nov 2014 09:16:59 GMT</pubDate></item><item><title><![CDATA[Reply to How to wire battery sensor with battery voltage reports... on Fri, 21 Nov 2014 08:57:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sundberg84" aria-label="Profile: sundberg84">@<bdi>sundberg84</bdi></a></p>
<p dir="auto">What is the distance to the gateway? if it's to big, then it might be the problem. Also, I have seen some reports on the forum, that some have better luck, if they try another radio module (in GW / sensor nodes) So that could also be experimented with.</p>
<p dir="auto">/ Thomas</p>
]]></description><link>https://forum.mysensors.org/post/6962</link><guid isPermaLink="true">https://forum.mysensors.org/post/6962</guid><dc:creator><![CDATA[tbowmo]]></dc:creator><pubDate>Fri, 21 Nov 2014 08:57:49 GMT</pubDate></item><item><title><![CDATA[Reply to How to wire battery sensor with battery voltage reports... on Fri, 21 Nov 2014 05:57:54 GMT]]></title><description><![CDATA[<p dir="auto">well, i have wired it all up and it seems to be almost working, i get humidity and temp from sensor but serial debugging sensor shows "st=fail" on all lines (almost). I think im loosing about 95% of all sent messages.</p>
<p dir="auto">I have capasitor over Radio., Measuring batteri is current 3.1 volts. Debug shows values from DHT is fine.</p>
<p dir="auto">Any ideas?</p>
]]></description><link>https://forum.mysensors.org/post/6960</link><guid isPermaLink="true">https://forum.mysensors.org/post/6960</guid><dc:creator><![CDATA[sundberg84]]></dc:creator><pubDate>Fri, 21 Nov 2014 05:57:54 GMT</pubDate></item><item><title><![CDATA[Reply to How to wire battery sensor with battery voltage reports... on Thu, 20 Nov 2014 19:19:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sundberg84" aria-label="Profile: sundberg84">@<bdi>sundberg84</bdi></a> said:</p>
<blockquote>
<p dir="auto">Ahh i see the instructions for capacitor over tappoint now.</p>
<p dir="auto">Well I have a dht22 and it needs min 3v but doesnt arduino have a booster if i connect dht22 to VCC? (PRO mini 3.3 8mhz).</p>
</blockquote>
<p dir="auto">No, there is no booster on the arduinos, only step-down regulators.</p>
<p dir="auto">There are other sensors out there (Si7021, SHU21 etc) that are capable of operating down to 1.9V. And the price difference to the DHT22 is not that big.</p>
<p dir="auto">Anyway, if you stick with the DHT22, then yes.. a booster is necessary to operate from a battery, and also a voltage divider for battery measurement. Or power the arduino with 4xAA to RAW input, and then use the 3.3V output from the arduino to power the radio..</p>
]]></description><link>https://forum.mysensors.org/post/6952</link><guid isPermaLink="true">https://forum.mysensors.org/post/6952</guid><dc:creator><![CDATA[tbowmo]]></dc:creator><pubDate>Thu, 20 Nov 2014 19:19:04 GMT</pubDate></item><item><title><![CDATA[Reply to How to wire battery sensor with battery voltage reports... on Thu, 20 Nov 2014 18:57:06 GMT]]></title><description><![CDATA[<p dir="auto">ehm.. just small idea.. I checked capacitor .. I use 330uF ..not 47uF  .. but in fact gateway use 47uF..</p>
]]></description><link>https://forum.mysensors.org/post/6951</link><guid isPermaLink="true">https://forum.mysensors.org/post/6951</guid><dc:creator><![CDATA[dzairo]]></dc:creator><pubDate>Thu, 20 Nov 2014 18:57:06 GMT</pubDate></item><item><title><![CDATA[Reply to How to wire battery sensor with battery voltage reports... on Thu, 20 Nov 2014 17:32:13 GMT]]></title><description><![CDATA[<p dir="auto">Ahh i see the instructions for capacitor over tappoint now.</p>
<p dir="auto">Well I have a dht22 and it needs min 3v but doesnt arduino have a booster if i connect dht22 to VCC? (PRO mini 3.3 8mhz).</p>
]]></description><link>https://forum.mysensors.org/post/6947</link><guid isPermaLink="true">https://forum.mysensors.org/post/6947</guid><dc:creator><![CDATA[sundberg84]]></dc:creator><pubDate>Thu, 20 Nov 2014 17:32:13 GMT</pubDate></item><item><title><![CDATA[Reply to How to wire battery sensor with battery voltage reports... on Thu, 20 Nov 2014 10:05:57 GMT]]></title><description><![CDATA[<p dir="auto">Hi all...<br />
Right now I tested my node and serial gateway ..<br />
ATmega328P DIP 28 , Internal 8Mhz RC oscillator , TIMER2 with 32Khz crystal .<br />
powered 2xAA , 47uF tantalum capacitor .<br />
VBAT measure by resistor divider 1M and 390k with 220nF capacitor .<br />
I try if working down to 2V .. then I setting my regulated power source to 1.9V ..and use serial terminal for debugging message .. I use FT232R with 3.3V setting .. and working .. working good ... serial gateway and sensor node .. I send command to gateway from node also powered from 2V.<br />
I don't know how many it's safe .. but in my solution works..</p>
<p dir="auto">regards</p>
]]></description><link>https://forum.mysensors.org/post/6932</link><guid isPermaLink="true">https://forum.mysensors.org/post/6932</guid><dc:creator><![CDATA[dzairo]]></dc:creator><pubDate>Thu, 20 Nov 2014 10:05:57 GMT</pubDate></item><item><title><![CDATA[Reply to How to wire battery sensor with battery voltage reports... on Thu, 20 Nov 2014 06:08:12 GMT]]></title><description><![CDATA[<p dir="auto">Hi!<br />
Thank you for great answers and links!</p>
<p dir="auto">What kind fo capasitor (in uF) is recommenden for paralell with R2?</p>
<p dir="auto">I have heard that the radio is sensitive to power ups/downs but it current not volts its sensitive to? - since you say it can opperate down to 1.9V ?</p>
<p dir="auto">Br<br />
Andreas</p>
]]></description><link>https://forum.mysensors.org/post/6927</link><guid isPermaLink="true">https://forum.mysensors.org/post/6927</guid><dc:creator><![CDATA[sundberg84]]></dc:creator><pubDate>Thu, 20 Nov 2014 06:08:12 GMT</pubDate></item><item><title><![CDATA[Reply to How to wire battery sensor with battery voltage reports... on Wed, 19 Nov 2014 23:30:34 GMT]]></title><description><![CDATA[<p dir="auto">Looks ok, but R2 should be 470k not 4.7k. And a capacitor in parallell to R2 would increase your accuracy. It's also common that you need a pullup resistor between red and green Arduino-Sensor lines.</p>
]]></description><link>https://forum.mysensors.org/post/6921</link><guid isPermaLink="true">https://forum.mysensors.org/post/6921</guid><dc:creator><![CDATA[m26872]]></dc:creator><pubDate>Wed, 19 Nov 2014 23:30:34 GMT</pubDate></item><item><title><![CDATA[Reply to How to wire battery sensor with battery voltage reports... on Wed, 19 Nov 2014 21:54:34 GMT]]></title><description><![CDATA[<p dir="auto">hi ..<br />
My idea is .. atmega328p can run in 8Mhz down to 2V then you don't need booster..<br />
I use 2xAA .. with big capacitor 100uF with low ESR connected close to nRF24L01+ power  pin..<br />
but .. I not tested it .. I do this test .. I try my sensor node with 2V power ..<br />
if failure then sorry .. need booster..</p>
<p dir="auto">about battery voltage measure .. yes .. there are two way .. one is used internal reference 1.1V as reference and resistor divider connect to any analog pin input or .. ( I not tested ) is possible to set reference from AVCC (is connected to VCC) and ADMUX select to 1.1V reference .. and calculate .. then you can measure battery voltage .. I must test it self..</p>
<p dir="auto">regards.</p>
]]></description><link>https://forum.mysensors.org/post/6917</link><guid isPermaLink="true">https://forum.mysensors.org/post/6917</guid><dc:creator><![CDATA[dzairo]]></dc:creator><pubDate>Wed, 19 Nov 2014 21:54:34 GMT</pubDate></item><item><title><![CDATA[Reply to How to wire battery sensor with battery voltage reports... on Wed, 19 Nov 2014 20:36:47 GMT]]></title><description><![CDATA[<p dir="auto">It depends on what kind of sensor you want to use. If you are able to find sensors that can operate down to 1.9V, then it's not necessary to use the booster. As both the arduino (8Mhz variant) and the radio can operate down to that supply level.<br />
For a hint on a design, you could take a look at <a href="http://forum.mysensors.org/topic/510/minimal-design-thoughts/49" rel="nofollow ugc">http://forum.mysensors.org/topic/510/minimal-design-thoughts/49</a></p>
<p dir="auto">Also, for battery voltage measurement, if the arduino is supplied directly from the battery, you can use a method to measure the voltage, where the internal Vref is meassured against the Vcc, and then you calculate Vcc from that. In this case you can skip the 2 resistors for voltage measurements</p>
<p dir="auto"><a href="http://provideyourown.com/2012/secret-arduino-voltmeter-measure-battery-voltage/" rel="nofollow ugc">http://provideyourown.com/2012/secret-arduino-voltmeter-measure-battery-voltage/</a></p>
]]></description><link>https://forum.mysensors.org/post/6911</link><guid isPermaLink="true">https://forum.mysensors.org/post/6911</guid><dc:creator><![CDATA[tbowmo]]></dc:creator><pubDate>Wed, 19 Nov 2014 20:36:47 GMT</pubDate></item></channel></rss>