Docs: power calculator -- solar by month (December first), board battery/panel, I2C sensors
Changelog: - Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d23beff8ac
commit
6a1d87679d
4 files changed
+216
-29
No files matched your search
@@ -22,10 +22,14 @@
|
||||
preamble: 'preamble (symbols)', tx_dbm: 'TX power (dBm)',
|
||||
tx_ma: 'TX current (mA), estimate', rx_extra: 'extra current while receiving (mA), estimate',
|
||||
usable_pct: 'usable capacity (%)', voltage: 'battery voltage (V)',
|
||||
sun_h: 'full-sun hours per day', charge_eff_pct: 'charging efficiency (%), estimate',
|
||||
charge_eff_pct: 'charging efficiency (%), estimate', month: 'Month', orient: 'Panel faces',
|
||||
sensors: 'I2C sensors', sensors_hint: 'datasheet estimate for how this firmware reads them',
|
||||
covers: 'panel covers it', emptyafter: 'battery empty after {n} days in {m} (starting full)',
|
||||
night: 'the battery does not carry the {h} h night of {m}: it lasts {x} h',
|
||||
nightshort: 'but not through the night', monthbal: 'balance per month (mAh/day)', bal_in: 'balance in', perdayu: 'mAh/day',
|
||||
unavailable: 'not in this firmware',
|
||||
avg: 'average current', autonomy: 'autonomy', days: 'days', perday: 'per day',
|
||||
indefinitely: 'indefinitely', balance: 'daily balance', nosun: 'without sun',
|
||||
balance: 'daily balance', nosun: 'without sun', sensorline: 'I2C sensor',
|
||||
measured: 'measured', estimate: 'estimate',
|
||||
part_node: 'node', part_tx: 'TX', part_rx: 'RX',
|
||||
base: 'whole node', borrowed: 'taken from', fwoffset: 'firmware difference measured on',
|
||||
@@ -47,10 +51,14 @@
|
||||
preamble: 'preambule (symboly)', tx_dbm: 'vysílací výkon (dBm)',
|
||||
tx_ma: 'proud při vysílání (mA), odhad', rx_extra: 'proud navíc při příjmu (mA), odhad',
|
||||
usable_pct: 'využitelná kapacita (%)', voltage: 'napětí baterie (V)',
|
||||
sun_h: 'hodin plného slunce za den', charge_eff_pct: 'účinnost nabíjení (%), odhad',
|
||||
charge_eff_pct: 'účinnost nabíjení (%), odhad', month: 'Měsíc', orient: 'Panel míří na',
|
||||
sensors: 'Čidla na I2C', sensors_hint: 'odhad z datasheetu podle toho, jak je tento firmware čte',
|
||||
covers: 'panel stačí', emptyafter: 'baterie prázdná po {n} dnech, měsíc {m} (z plné)',
|
||||
night: 'baterie neutáhne {h} h noci (měsíc {m}): vydrží {x} h',
|
||||
nightshort: 'ale noc nevydrží', monthbal: 'bilance po měsících (mAh/den)', bal_in: 'bilance, měsíc', perdayu: 'mAh/den',
|
||||
unavailable: 'tento firmware nemá',
|
||||
avg: 'průměrný proud', autonomy: 'výdrž', days: 'dní', perday: 'za den',
|
||||
indefinitely: 'nekonečno', balance: 'denní bilance', nosun: 'bez slunce',
|
||||
balance: 'denní bilance', nosun: 'bez slunce', sensorline: 'čidlo na I2C',
|
||||
measured: 'změřeno', estimate: 'odhad',
|
||||
part_node: 'uzel', part_tx: 'TX', part_rx: 'RX',
|
||||
base: 'celý uzel', borrowed: 'převzato z', fwoffset: 'rozdíl firmwarů změřený na',
|
||||
@@ -102,10 +110,11 @@
|
||||
sf: td.sf, bw: td.bw, cr: td.cr, preamble: td.preamble, tx_dbm: td.tx_dbm,
|
||||
rx_extra: d.traffic.rx_extra.value,
|
||||
mah: b.mah, usable_pct: b.usable_pct, voltage: b.voltage,
|
||||
panel_w: b.panel_w, sun_h: b.sun_h, charge_eff_pct: b.charge_eff_pct
|
||||
panel_w: b.panel_w, charge_eff_pct: b.charge_eff_pct,
|
||||
month: d.solar.default_month, orient: d.solar.orientation[0].id, sensors: {}
|
||||
};
|
||||
this.s.tx_ma = this.txCurrent(this.s.tx_dbm);
|
||||
this.applyDefaults();
|
||||
this.applyDefaults(true);
|
||||
this.build();
|
||||
}
|
||||
|
||||
@@ -127,8 +136,12 @@
|
||||
};
|
||||
|
||||
// board defaults, then what the firmware ships with; options it lacks are pinned off
|
||||
P.applyDefaults = function () {
|
||||
// boardChanged: also the battery and panel the board ships with
|
||||
P.applyDefaults = function (boardChanged) {
|
||||
var self = this, def = Object.assign({}, this.board().defaults, this.fw().defaults);
|
||||
if (boardChanged) ['mah', 'panel_w'].forEach(function (k) {
|
||||
self.s[k] = def[k] != null ? def[k] : self.d.battery[k];
|
||||
});
|
||||
Object.keys(this.d.settings).forEach(function (k) {
|
||||
var vals = self.d.settings[k];
|
||||
if (!self.available(k)) self.s[k] = vals.indexOf('off') >= 0 ? 'off' : vals[0];
|
||||
@@ -169,18 +182,30 @@
|
||||
};
|
||||
};
|
||||
|
||||
// solar gain in mAh per day in month m (1..12)
|
||||
P.solarGain = function (m) {
|
||||
var s = this.s, so = this.d.solar;
|
||||
var f = so.orientation.filter(function (o) { return o.id === s.orient; })[0].factor;
|
||||
return s.panel_w * so.sun_h[m - 1] * f * (s.charge_eff_pct / 100) / s.voltage * 1000;
|
||||
};
|
||||
P.monthName = function (m) {
|
||||
return new Date(2026, m - 1, 15).toLocaleString(this.lang === 'cs' ? 'cs-CZ' : 'en-GB', { month: 'long' });
|
||||
};
|
||||
|
||||
P.range = function (v) { return Array.isArray(v) ? [Math.min(v[0], v[1]), Math.max(v[0], v[1])] : [v, v]; };
|
||||
|
||||
P.pickBaseline = function () {
|
||||
var s = this.s, keys = Object.keys(this.d.settings);
|
||||
var rows = this.d.values.filter(function (v) { return v.kind === 'baseline' && v.board === s.board; });
|
||||
var bid = s.board, like = this.board().like;
|
||||
var rows = this.d.values.filter(function (v) { return v.kind === 'baseline' && v.board === bid; });
|
||||
if (!rows.length && like) rows = this.d.values.filter(function (v) { return v.kind === 'baseline' && v.board === like; });
|
||||
var same = rows.filter(function (v) { return v.firmware === s.firmware; });
|
||||
var pool = same.length ? same : rows;
|
||||
function diff(v) { return keys.filter(function (k) { return v.settings[k] !== s[k]; }).length; }
|
||||
pool.sort(function (a, b) {
|
||||
return diff(a) - diff(b) || (b.measured - a.measured) || (a.firmware === 'tth' ? -1 : 1);
|
||||
});
|
||||
return { row: pool[0], borrowed: !same.length };
|
||||
return { row: pool[0], borrowed: !same.length, boardBorrowed: pool[0].board !== bid };
|
||||
};
|
||||
|
||||
// delta rows of one option between two values, best match first:
|
||||
@@ -226,8 +251,9 @@
|
||||
P.compute = function () {
|
||||
var self = this, s = this.s, d = this.d, lines = [];
|
||||
var pb = this.pickBaseline(), b = pb.row;
|
||||
var u = b.uncertainty || 0, bmeas = b.measured && !pb.borrowed;
|
||||
var bnote = b.firmware !== s.firmware ? this.t('borrowed') + ' ' + this.n(this.fwById(b.firmware)) : null;
|
||||
var u = b.uncertainty || 0, bmeas = b.measured && !pb.borrowed && !pb.boardBorrowed;
|
||||
var bnote = pb.boardBorrowed ? this.t('borrowed') + ' ' + this.n(this.boardById(b.board)) :
|
||||
b.firmware !== s.firmware ? this.t('borrowed') + ' ' + this.n(this.fwById(b.firmware)) : null;
|
||||
lines.push({ part: 'node', label: this.t('base') + ' (' + this.settingsText(b) + ')', lo: b.value - u, hi: b.value + u,
|
||||
approx: b.approx, measured: bmeas, row: b, note: bnote || (b['note_' + this.lang] || b.note_en) });
|
||||
|
||||
@@ -262,6 +288,13 @@
|
||||
});
|
||||
});
|
||||
|
||||
d.sensors.list.forEach(function (x) {
|
||||
if (!s.sensors[x.id]) return;
|
||||
var v = x[s.firmware] != null ? x[s.firmware] : x['*'];
|
||||
lines.push({ part: 'node', label: self.t('sensorline') + ': ' + x.name, lo: v, hi: v, measured: false,
|
||||
row: { source: d.sensors.source }, note: x.how });
|
||||
});
|
||||
|
||||
var at = this.airtime(), tr = this.traffic();
|
||||
var tx = tr.tx * at / 3600 * s.tx_ma, rx = tr.rx * at / 3600 * s.rx_extra;
|
||||
var ms = this.fmt(at * 1000, 0);
|
||||
@@ -370,6 +403,20 @@
|
||||
this.field(this.t('mah'), this.num('mah', { step: 100 })),
|
||||
this.field(this.t('panel_w'), this.num('panel_w', { step: 0.5 }), this.t('panel_hint'))
|
||||
]));
|
||||
var months = [];
|
||||
for (var m = 1; m <= 12; m++) months.push({ v: m, t: this.monthName(m) });
|
||||
form.appendChild(el('div', { 'class': 'pc-two pc-sel' }, [
|
||||
this.field(this.t('month'), this.select('month', months)),
|
||||
el('div', { 'class': 'pc-field' }, [el('span', { 'class': 'pc-label', text: this.t('orient') }),
|
||||
this.seg('orient', d.solar.orientation.map(function (o) { return { v: o.id, t: self.n(o) }; }))])
|
||||
]));
|
||||
var chips = el('div', { 'class': 'pc-chips' }, d.sensors.list.map(function (x) {
|
||||
var cb = el('input', { type: 'checkbox', 'data-sensor': x.id });
|
||||
cb.checked = !!s.sensors[x.id];
|
||||
return el('label', { 'class': 'pc-chip', title: x.how }, [cb, x.name]);
|
||||
}));
|
||||
form.appendChild(el('div', { 'class': 'pc-field' }, [el('span', { 'class': 'pc-label', text: this.t('sensors') }), chips,
|
||||
el('div', { 'class': 'pc-hint' }, [this.t('sensors_hint') + ' ', this.badge(false)])]));
|
||||
|
||||
// advanced
|
||||
var adv = el('details', { 'class': 'pc-adv', 'data-open': 'adv' });
|
||||
@@ -389,7 +436,6 @@
|
||||
grid.appendChild(this.field(this.t('rx_extra'), this.num('rx_extra')));
|
||||
grid.appendChild(this.field(this.t('usable_pct'), this.num('usable_pct', { step: 5 })));
|
||||
grid.appendChild(this.field(this.t('voltage'), this.num('voltage', { step: 0.1 })));
|
||||
grid.appendChild(this.field(this.t('sun_h'), this.num('sun_h', { step: 0.5 })));
|
||||
grid.appendChild(this.field(this.t('charge_eff_pct'), this.num('charge_eff_pct', { step: 5 })));
|
||||
adv.appendChild(grid);
|
||||
adv.appendChild(el('p', { 'class': 'pc-hint', text: this.t('override_hint') }));
|
||||
@@ -397,10 +443,11 @@
|
||||
|
||||
form.addEventListener('input', function (ev) {
|
||||
var t = ev.target, k = t.name;
|
||||
if (t.hasAttribute('data-sensor')) { s.sensors[t.getAttribute('data-sensor')] = t.checked; self.render(); return; }
|
||||
if (!k) return;
|
||||
if (t.tagName === 'SELECT') {
|
||||
s[k] = isNaN(+t.value) ? t.value : +t.value;
|
||||
if (k === 'board' || k === 'firmware') self.applyDefaults();
|
||||
if (k === 'board' || k === 'firmware') self.applyDefaults(k === 'board');
|
||||
self.build();
|
||||
return;
|
||||
}
|
||||
@@ -461,13 +508,27 @@
|
||||
|
||||
// the two big numbers
|
||||
var rng = r.hi - r.lo > 0.005 ? this.fmt(r.lo) + ' … ' + this.fmt(r.hi) + ' mA' : '';
|
||||
var autoBig, autoSub;
|
||||
var autoBig, autoSub, autoLabel = this.t('autonomy'), warnNight = null, strip = null, autoBad = false;
|
||||
if (s.panel_w > 0) {
|
||||
var gain = s.panel_w * s.sun_h * (s.charge_eff_pct / 100) / s.voltage * 1000, bal = gain - perDay;
|
||||
var balTxt = this.t('balance') + ' ' + (bal >= 0 ? '+' : '−') + this.fmt(Math.abs(bal), 0) + ' mAh';
|
||||
if (bal >= 0) { autoBig = '∞'; autoSub = this.t('indefinitely') + ' · ' + balTxt; }
|
||||
else { autoBig = this.fmt(usable / -bal, 1); autoSub = this.t('days') + ' · ' + balTxt; }
|
||||
autoSub += ' · ' + this.t('nosun') + ' ' + this.fmt(usable / perDay, 1) + ' ' + this.t('days');
|
||||
var mn = this.monthName(s.month), bal = this.solarGain(s.month) - perDay;
|
||||
autoLabel = this.t('bal_in') + ' ' + mn;
|
||||
autoBig = (bal >= 0 ? '+' : '−') + this.fmt(Math.abs(bal), 0);
|
||||
autoBad = bal < 0;
|
||||
autoSub = this.t('perdayu') + ' · ' + (bal >= 0 ? this.t('covers') :
|
||||
this.t('emptyafter').replace('{n}', this.fmt(usable / -bal, 1)).replace('{m}', mn)) +
|
||||
' · ' + this.t('nosun') + ' ' + this.fmt(usable / perDay, 1) + ' ' + this.t('days');
|
||||
strip = el('div', { 'class': 'pc-strip' });
|
||||
for (var m = 1; m <= 12; m++) {
|
||||
var bm = this.solarGain(m) - perDay, ab = Math.abs(bm);
|
||||
var txt = (bm >= 0 ? '+' : '−') + (ab >= 1000 ? this.fmt(ab / 1000, 1) + 'k' : this.fmt(ab, 0));
|
||||
strip.appendChild(el('span', { 'class': (bm < 0 ? 'pc-neg' : 'pc-pos') + (m === +s.month ? ' pc-cur' : ''),
|
||||
title: this.monthName(m) + ': ' + txt + ' ' + this.t('perdayu') }, [
|
||||
el('b', { text: this.monthName(m).slice(0, 3) }), el('span', { text: txt })]));
|
||||
}
|
||||
// the cell must carry the night of that month (said only when it does not)
|
||||
var nh = this.d.solar.night_h[s.month - 1], lasts = usable / mid;
|
||||
if (lasts < nh) warnNight = this.t('night').replace('{h}', this.fmt(nh, 0)).replace('{m}', mn).replace('{x}', this.fmt(lasts, 1));
|
||||
if (warnNight) { autoBad = true; autoSub = autoSub.replace(this.t('covers'), '⚠ ' + this.t('nightshort')); }
|
||||
} else {
|
||||
autoBig = this.fmt(usable / perDay, 1);
|
||||
autoSub = this.t('days') + ' · ' + this.fmt(perDay, 0) + ' mAh ' + this.t('perday');
|
||||
@@ -476,11 +537,21 @@
|
||||
el('div', {}, [el('div', { 'class': 'pc-label', text: this.t('avg') }),
|
||||
el('div', { 'class': 'pc-bignum' }, [this.fmt(mid, mid >= 10 ? 1 : 2), el('span', { 'class': 'pc-unit', text: ' mA' })]),
|
||||
el('div', { 'class': 'pc-sub', text: rng || ' ' })]),
|
||||
el('div', {}, [el('div', { 'class': 'pc-label', text: this.t('autonomy') }),
|
||||
el('div', { 'class': 'pc-bignum', text: autoBig }),
|
||||
el('div', {}, [el('div', { 'class': 'pc-label', text: autoLabel }),
|
||||
el('div', { 'class': 'pc-bignum' + (autoBad ? ' pc-bad' : ''), text: autoBig }),
|
||||
el('div', { 'class': 'pc-sub', text: autoSub })])
|
||||
]));
|
||||
|
||||
if (strip) {
|
||||
var so = this.d.solar;
|
||||
out.appendChild(el('div', { 'class': 'pc-label pc-strip-t', text: this.t('monthbal') }));
|
||||
out.appendChild(strip);
|
||||
out.appendChild(el('div', { 'class': 'pc-hint' }, [this.badge(false), ' ', this.srcLink(so.source)]));
|
||||
// the model is optimistic for a real mast: say what one of ours did
|
||||
out.appendChild(el('div', { 'class': 'pc-hint' }, ['⚠ ' + so['field_note_' + this.lang] + ' · ', this.srcLink(so.field_source)]));
|
||||
}
|
||||
if (warnNight) out.appendChild(el('div', { 'class': 'pc-warn', text: '⚠ ' + warnNight }));
|
||||
|
||||
// split node / TX / RX
|
||||
var tot = r.parts.node + r.parts.tx + r.parts.rx || 1, bar = el('div', { 'class': 'pc-bar', role: 'img',
|
||||
'aria-label': ['node', 'tx', 'rx'].map(function (p) { return self.t('part_' + p) + ' ' + self.fmt(r.parts[p]) + ' mA'; }).join(', ') });
|
||||
@@ -511,8 +582,8 @@
|
||||
tb.appendChild(el('tr', {}, [el('td', {}, info), el('td', { 'class': 'pc-num', text: val })]));
|
||||
});
|
||||
if (s.panel_w > 0) {
|
||||
var g = s.panel_w * s.sun_h * (s.charge_eff_pct / 100) / s.voltage * 1000;
|
||||
tb.appendChild(el('tr', {}, [el('td', {}, [this.t('solar') + ' ', this.badge(false)]), el('td', { 'class': 'pc-num', text: this.fmt(g, 0) + ' mAh' })]));
|
||||
var g = this.solarGain(s.month);
|
||||
tb.appendChild(el('tr', {}, [el('td', {}, [this.t('solar') + ' (' + this.monthName(s.month) + ') ', this.badge(false)]), el('td', { 'class': 'pc-num', text: this.fmt(g, 0) + ' mAh' })]));
|
||||
}
|
||||
det.appendChild(el('table', { 'class': 'pc-lines' }, [tb]));
|
||||
det.appendChild(el('p', { 'class': 'pc-hint', text: this.t('foot').replace('{a}', this.fmt(r.airtime * 1000, 0)).replace('{v}', this.fmt(r.voltage, 2)) }));
|
||||
|
||||
@@ -110,3 +110,22 @@
|
||||
.pc-e { color: #f0b429; }
|
||||
.pc-values { margin: 1rem 0; }
|
||||
.pc-scroll { overflow-x: auto; font-size: 0.85rem; }
|
||||
.pc-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
|
||||
.pc-chip { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.8rem; padding: 0.15rem 0.5rem;
|
||||
border: 1px solid #3a3a3a; border-radius: 999px; cursor: pointer; }
|
||||
.pc-chip input { width: auto; margin: 0; accent-color: var(--primary-color); }
|
||||
.pc-chip:has(input:checked) { border-color: var(--primary-color); color: var(--primary-color); }
|
||||
.pc-strip-t { margin-top: 0.9rem; }
|
||||
.pc-strip { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; margin-top: 0.3rem; }
|
||||
.pc-strip > span { display: flex; flex-direction: column; align-items: center; padding: 0.15rem 0;
|
||||
border-radius: 3px; font-family: ui-monospace, monospace; font-size: 0.62rem; line-height: 1.25; }
|
||||
.pc-strip b { font-family: system-ui, sans-serif; font-weight: 400; color: #b8bcc4; }
|
||||
.pc-pos { background: #12301f; color: #8fe0b0; }
|
||||
.pc-neg { background: #3a1414; color: #ff9b9b; }
|
||||
.pc-cur { outline: 2px solid #e8e9ed; outline-offset: -1px; }
|
||||
.pc-lines { table-layout: fixed; }
|
||||
.pc-lines td:last-child { width: 6.5em; white-space: normal; }
|
||||
.pc-bignum.pc-bad { color: #ff8a8a; }
|
||||
.pc-layout > *, .pc-card { min-width: 0; }
|
||||
.pc-strip { grid-template-columns: repeat(12, minmax(0, 1fr)); }
|
||||
@media (max-width: 30em) { .pc-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
|
||||
@@ -23,8 +23,20 @@ power.md.</noscript></div>
|
||||
The presets are 30/10, 120/60 and 600/300 received/transmitted packets per
|
||||
hour; exact numbers, packet length, modulation and the (estimated) TX and RX
|
||||
currents are under *Advanced*.
|
||||
- **Battery:** usable mAh / (mA × 24 h); with a panel, W × sun hours ×
|
||||
efficiency / battery voltage per day.
|
||||
- **I2C sensors:** what the chip draws between reads (telemetry is read only
|
||||
when asked), from its datasheet. This fork puts every sensor to sleep between
|
||||
reads; upstream leaves the INA219/226/260/3221 converting (0.3-0.7 mA each)
|
||||
and a BMP280 in normal mode. Estimates; only the idle bus itself was measured.
|
||||
- **Battery:** usable mAh / (mA × 24 h). A board's choice fills in what it
|
||||
ships with (SenseCAP Solar P1-Pro: 4× 18650, 13 400 mAh, 5 W panel).
|
||||
- **Solar:** W × equivalent full-sun hours of the chosen **month** × orientation
|
||||
× charging efficiency / battery voltage. Sun hours are PVGIS monthly means
|
||||
for Prague at the optimal tilt (December 1.5 h, June 5.6 h a day); the
|
||||
calculator opens on December, the worst month, and shows the balance of all
|
||||
twelve. East/west is taken as 60 %, heavy shade 30 % (estimates). How much
|
||||
that matters: one of our masts (remote-mast, panel facing east) lost ~50 mV a day
|
||||
from mid-November with consumption unchanged
|
||||
([details](power.md#a-mast-that-runs-flat-bootlock-and-cutoff)).
|
||||
|
||||
**rxps is not free:** it saves about 2 mA but loses 13-28 % of weak packets
|
||||
([details](power.md#rx-duty-cycle-rxps)). Never on a mast.
|
||||
|
||||
+89
-4
@@ -56,6 +56,26 @@
|
||||
"en": "SX1262 datasheet (Semtech), not measured",
|
||||
"cs": "datasheet SX1262 (Semtech), neměřeno"
|
||||
},
|
||||
"seeed-wiki": {
|
||||
"url": "https://wiki.seeedstudio.com/meshtastic_solar_node/",
|
||||
"en": "Seeed wiki, SenseCAP Solar Node: 5 W panel, P1-Pro 4x 18650 NMC 3350 mAh",
|
||||
"cs": "Seeed wiki, SenseCAP Solar Node: panel 5 W, P1-Pro 4x 18650 NMC 3350 mAh"
|
||||
},
|
||||
"pvgis": {
|
||||
"url": "https://re.jrc.ec.europa.eu/pvg_tools/en/",
|
||||
"en": "PVGIS, Prague, optimal tilt, monthly mean - estimate",
|
||||
"cs": "PVGIS, Praha, optimální sklon, měsíční průměr - odhad"
|
||||
},
|
||||
"power-flat": {
|
||||
"url": "power.md#a-mast-that-runs-flat-bootlock-and-cutoff",
|
||||
"en": "docs/power.md, a mast that runs flat",
|
||||
"cs": "docs/power.md, stožár, který se vybije"
|
||||
},
|
||||
"sensor-code": {
|
||||
"url": "",
|
||||
"en": "src/helpers/sensors/EnvironmentSensorManager.cpp + datasheet, not measured",
|
||||
"cs": "src/helpers/sensors/EnvironmentSensorManager.cpp + datasheet, neměřeno"
|
||||
},
|
||||
"estimate": {
|
||||
"url": "",
|
||||
"en": "rough estimate, not measured",
|
||||
@@ -68,14 +88,25 @@
|
||||
"en": "XIAO nRF52840 + Wio-SX1262 (fed on 3V3)",
|
||||
"cs": "XIAO nRF52840 + Wio-SX1262 (napájené na 3V3)",
|
||||
"gps": false,
|
||||
"defaults": { "ble": "off", "gps": "off" }
|
||||
"defaults": { "ble": "off", "gps": "off", "mah": 3000, "panel_w": 0 }
|
||||
},
|
||||
{
|
||||
"id": "p1pro",
|
||||
"en": "SenseCAP Solar P1-Pro (nRF52840 + SX1262 + L76K GPS)",
|
||||
"cs": "SenseCAP Solar P1-Pro (nRF52840 + SX1262 + GPS L76K)",
|
||||
"gps": true,
|
||||
"defaults": { "ble": "on", "gps": "duty" }
|
||||
"defaults": { "ble": "on", "gps": "duty", "mah": 13400, "panel_w": 5 },
|
||||
"defaults_source": "seeed-wiki"
|
||||
},
|
||||
{
|
||||
"id": "p1",
|
||||
"en": "SenseCAP Solar P1 (no GPS, own 4x 18650)",
|
||||
"cs": "SenseCAP Solar P1 (bez GPS, vlastní 4x 18650)",
|
||||
"gps": false,
|
||||
"like": "p1pro",
|
||||
"_comment": "not measured: the P1-Pro without its GPS receiver, every number borrowed from the P1-Pro (an estimate); ships without cells",
|
||||
"defaults": { "ble": "on", "gps": "off", "mah": 13400, "panel_w": 5 },
|
||||
"defaults_source": "seeed-wiki"
|
||||
}
|
||||
],
|
||||
"firmwares": [
|
||||
@@ -262,8 +293,62 @@
|
||||
}
|
||||
},
|
||||
"battery": {
|
||||
"_comment": "defaults of the battery and solar inputs; efficiency and voltage are assumptions",
|
||||
"_comment": "defaults of the battery inputs (a board's defaults win); efficiency and voltage are assumptions",
|
||||
"mah": 3000, "usable_pct": 80, "voltage": 3.7,
|
||||
"panel_w": 0, "sun_h": 2, "charge_eff_pct": 70
|
||||
"panel_w": 0, "charge_eff_pct": 70
|
||||
},
|
||||
"solar": {
|
||||
"_comment": [
|
||||
"Equivalent full-sun hours per day (kWh/m2/day on the panel), by month, for a fixed",
|
||||
"panel at the optimal tilt (38 deg, south) in Prague (50.08 N 14.42 E): PVGIS v5.2",
|
||||
"MRcalc, H(i_opt)_m, mean of 2010-2020, divided by the days of the month (queried",
|
||||
"4. 12. 2026). An ESTIMATE for a node: irradiation on the plane, before the losses",
|
||||
"of the charger and cell (charge_eff_pct) and of a worse orientation (orientation).",
|
||||
"night_h: hours without sun on the 15th of the month at 50 N (rounded), for the",
|
||||
"check that the cell carries the night. default_month 12 = the worst month."
|
||||
],
|
||||
"source": "pvgis", "measured": false, "default_month": 12,
|
||||
"sun_h": [1.48, 2.57, 3.88, 5.13, 5.14, 5.57, 5.58, 5.29, 4.33, 2.88, 1.72, 1.47],
|
||||
"night_h": [15.6, 14.2, 12.3, 10.4, 8.7, 7.8, 8.2, 9.7, 11.5, 13.4, 15.1, 16.1],
|
||||
"orientation": [
|
||||
{ "id": "south", "en": "south", "cs": "jih", "factor": 1.0 },
|
||||
{ "id": "eastwest", "en": "east / west", "cs": "východ / západ", "factor": 0.6 },
|
||||
{ "id": "shade", "en": "heavy shade", "cs": "silný stín", "factor": 0.3 }
|
||||
],
|
||||
"orientation_source": "estimate",
|
||||
"field_note_en": "one of our masts (remote-mast, panel facing east) lost ~50 mV a day from mid-November with consumption unchanged",
|
||||
"field_note_cs": "jeden z našich stožárů (remote-mast, panel na východ) ztrácel od poloviny listopadu ~50 mV denně při nezměněné spotřebě",
|
||||
"field_source": "power-flat"
|
||||
},
|
||||
"sensors": {
|
||||
"_comment": [
|
||||
"I2C sensors this firmware probes (src/helpers/sensors/EnvironmentSensorManager.cpp,",
|
||||
"only builds with ENV_INCLUDE_*). Telemetry is read only when someone asks, so the",
|
||||
"average is the chip's current between reads; a read itself (a few ms, rarely) is",
|
||||
"left out. This fork puts every chip to sleep after init and triggers one",
|
||||
"conversion per read; upstream (v1.19.0) leaves INA219/INA226/INA260/INA3221",
|
||||
"converting continuously, BMP280 in normal mode and SHTC3 idle. A row with",
|
||||
"firmware 'tth' is this fork, '*' every other firmware (MeshCore Czech assumed",
|
||||
"to be upstream here). All values are datasheet ESTIMATES, nothing measured; the",
|
||||
"bench measured only an idle I2C bus (TWIM, Wire.end()): +-0.00 mA, 3. 12. 2026.",
|
||||
"Not listed: VL53L0X, BMP085, RAK12035 (not looked at)."
|
||||
],
|
||||
"unit": "mA", "source": "sensor-code", "measured": false,
|
||||
"list": [
|
||||
{ "id": "aht20", "name": "AHT10/AHT20", "tth": 0.00025, "*": 0.00025, "how": "sleep 0.25 uA between reads" },
|
||||
{ "id": "bme280", "name": "BME280", "tth": 0.0001, "*": 0.0001, "how": "forced mode, sleep 0.1 uA" },
|
||||
{ "id": "bmp280", "name": "BMP280", "tth": 0.0001, "*": 0.65, "how": "here forced (sleep 0.1 uA); upstream normal mode, 1 ms standby: converting almost all the time" },
|
||||
{ "id": "bmp3xx", "name": "BMP388/390", "tth": 0.002, "*": 0.002, "how": "forced reads, sleep ~2 uA" },
|
||||
{ "id": "bme680", "name": "BME680", "tth": 0.00015, "*": 0.00015, "how": "performReading per query, sleep 0.15 uA (heater only during a read)" },
|
||||
{ "id": "bme680bsec", "name": "BME680 + BSEC", "tth": 0.9, "*": 0.9, "how": "BSEC low-power mode: gas heater every 3 s, all the time" },
|
||||
{ "id": "shtc3", "name": "SHTC3", "tth": 0.0003, "*": 0.045, "how": "here asleep after init (0.3 uA); upstream idle until the first read (45 uA)" },
|
||||
{ "id": "sht4x", "name": "SHT4x", "tth": 0.0004, "*": 0.0004, "how": "idle 0.4 uA between single-shot reads" },
|
||||
{ "id": "lps22hb", "name": "LPS22HB", "tth": 0.001, "*": 0.001, "how": "one-shot, power-down 1 uA" },
|
||||
{ "id": "ina219", "name": "INA219", "tth": 0.006, "*": 0.7, "how": "here power-down 6 uA; upstream continuous ~0.7 mA" },
|
||||
{ "id": "ina226", "name": "INA226", "tth": 0.002, "*": 0.33, "how": "here shutdown <=2 uA; upstream continuous ~0.33 mA" },
|
||||
{ "id": "ina260", "name": "INA260", "tth": 0.002, "*": 0.31, "how": "here shutdown <=2 uA; upstream continuous ~0.31 mA" },
|
||||
{ "id": "ina3221", "name": "INA3221", "tth": 0.002, "*": 0.35, "how": "here power-down ~2 uA; upstream continuous ~0.35 mA" },
|
||||
{ "id": "mlx90614", "name": "MLX90614", "tth": 1.3, "*": 1.3, "how": "no sleep in the driver, ~1.3 mA" }
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user