<?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[Voltage divider resistors - using different resistor values]]></title><description><![CDATA[<p dir="auto">Hi everyone - Okay this is my first time with mysensors and really excited to get started. I’ve built a gateway with an ESP which seems to be working fine. It’s recognised in the Mozilla Webthings controller and the serial output all seems okay.</p>
<p dir="auto">I am making a sensor test board with which i can try out different sensors before building into standalone devices and just needing a bit of help with measuring the battery voltage using a voltage divider. The mysensors sketch uses a 1m and 470k resistors for the voltage divider.</p>
<p dir="auto">My issue is that I only have a 1m resistor and a 480k rather than the 470k and want to know if the sketch can be modified to work with this 480k resistor.</p>
<p dir="auto">My sensor will be powered with a single 18560 cell as I have lots freely available and boosted to 5v for my mini pro (again because i have quite a few of these). So max battery voltage will be 4.2v and minimum voltage around 2.7v.</p>
<p dir="auto">Divider using 470k resistor: 1.343v (Vbatt=4.2v) and 0.863v (Vbatt=2.7v)<br />
Divider using 480k resistor: 1.362v (Vbat=4.2v) and 0.876v (Vbatt=2.7v)</p>
<p dir="auto">Is as simple as altering the math in the sketch to account for the different readings?</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.mysensors.org/topic/11537/voltage-divider-resistors-using-different-resistor-values</link><generator>RSS for Node</generator><lastBuildDate>Tue, 17 Mar 2026 00:55:59 GMT</lastBuildDate><atom:link href="https://forum.mysensors.org/topic/11537.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 20 Jan 2021 15:23:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Voltage divider resistors - using different resistor values on Wed, 20 Jan 2021 19:25:25 GMT]]></title><description><![CDATA[<p dir="auto">Welcome to the forum <a class="plugin-mentions-user plugin-mentions-a" href="/user/mitchdes" aria-label="Profile: mitchdes">@<bdi>mitchdes</bdi></a></p>
<p dir="auto">Yes, you are correct.</p>
]]></description><link>https://forum.mysensors.org/post/108863</link><guid isPermaLink="true">https://forum.mysensors.org/post/108863</guid><dc:creator><![CDATA[mfalkvidd]]></dc:creator><pubDate>Wed, 20 Jan 2021 19:25:25 GMT</pubDate></item></channel></rss>