PAC1934 currents from the shunt values (R72 to R75, Project-Okapi #21)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- arduino, cpp
- Ambito
- embedded-iot
Direzione di ricerca
Read Okapi.cpp around the comments at lines 182 and 237–239 to trace the PAC1934 voltage reads and current logging row. Check how the existing ADS1115 path populates IBeta and ISolar, then compare the PAC1934 setup with the shunt table and DS20005850B. Completion includes choosing snapshot or accumulated energy and verifying the stated zero-load and 1 A readings on a board.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
The PAC1934 (U32) reads its four VBUS voltages today, but not its currents: Okapi.cpp says they wait on the shunt values (line 182, and the comment at lines 237–239). The values are now on the KiCad board (NorthernWidget/Project-Okapi#21, closed as the hardware half of this issue):
| Channel | Rail | Shunt | Full scale | LSB |
|---|---|---|---|---|
| 1 | V_PRIME (alkaline backup) | R73, 20 mΩ | 5 A | 76 µA |
| 2 | V_LI (the LiPo cell) | R72, 20 mΩ | ±5 A | 153 µA (bipolar) |
| 3 | V_BETA (the LiPo rail) | R75, 20 mΩ | 5 A | 76 µA |
| 4 | V_SOLAR_IN | R74, 50 mΩ | 2 A | 31 µA |
The current is VSENSE / R, with VSENSE at 100 mV full scale over 16 bits (DS20005850B). Channel 2 sits across the cell's protection FET with SENSE+ on the board side, so it reads charging as positive when set bipolar.
To do:
- Read VSENSE per channel and convert with the table above; replace the two comments.
- Decide which currents the row carries. It logs IBeta and ISolar today, from the ADS1115 path that the 2024 board does not have.
- Snapshot or accumulated energy: the chip can do either, and the choice is open (NW-Status DECISIONS, B7).
Accept on a board, from Project-Okapi/docs/v0.7-pre-build-checks.md step 5: with no load, each channel within the chip's ±0.02 mV offset (±1 mA on 20 mΩ, ±0.4 mA on 50 mΩ); with a known 1 A through a channel, 20 mV on a 20 mΩ shunt and 50 mV on the 50 mΩ one.
🤖 Generated with Claude Code
- Lingua principale
- C++
- Stelle
- 1
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di NorthernWidget/Okapi_Library
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
-
bug
Difficoltà 5/5 Più di una settimana Idoneità per principianti 28/100
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
Tutte le issue di NorthernWidget/Okapi_Library
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 2 giorni
-
ai_p2
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
ClickHouse/ClickHouse#130006 ·
I maintainer di solito rispondono entro 1 giorno
-
RebuildGeom rebuilds vertex buffers needlesslyForse già presa @trish-sl l’ha presa oggi. Apertatriage
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
secondlife/viewer#6653 ·
I maintainer di solito rispondono entro 1 giorno
-
DepotMaintain: EN longer string moves the hint popup buttons out of reach // WpfGUI English LanguageApertaclient: WpfGui module: depot question
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
MaaAssistantArknights/MaaAssistantArknights#19169 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Spark: arrays_overlap returns false for -0.0 and 0.0, Spark returns true since 4.0.5 / 4.1.4 / 4.2.0Forse già presa @rdtr l’ha presa oggi. Apertabug triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
facebookincubator/velox#20179 ·
I maintainer di solito rispondono entro 1 giorno