BMA456 accelerometer (U43) has no firmware, so the part on the board has no use yet

Aperta
#12 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
28/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
arduino, cpp
Ambito
embedded-iot

Direzione di ricerca

Read the existing LIS3DH implementation in Apis_Library, especially getPitch() and getRoll(), and the library design rule on sharing code. Then consult the BMA456 datasheet to determine whether plain acceleration reads require Bosch’s feature-engine configuration blob. The work is complete when the driver, shared orientation reduction, data-row and status-snapshot fields are implemented and a hardware test passes.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

The Okapi redesign (Project-Okapi v0.6.0, the KiCad board) carries a BMA456 accelerometer, U43, on the on-board I2C segment at 0x18, powered from 3V3_AUX. Nothing in this library or anywhere else in the workspace talks to it, so a built board would have a part that does nothing.

What it is for (Andy, 2026-11-05): the board's orientation when desired, read at a wake. Not continuous sampling and not motion or impulse events, which is why its INT pin is a no-connect on the board.

What the firmware needs:

  1. A BMA456 driver from its datasheet: power mode, the acceleration registers, and whether Bosch's feature-engine configuration blob is needed for plain acceleration reads (to confirm before writing to the part; the plain registers may not need it).
  2. The orientation reduction, pitch and roll against a stored zero, which Apis_Library already does for its LIS3DH (getPitch(), getRoll()) and which should be shared rather than copied, per the library design's rule on copies.
  3. The reading's place in the data row and in the status snapshot.

A hardware test on a board closes it. No milestone here; the hardware side is Project-Okapi v0.7.0.

🤖 Generated with Claude Code

https://claude.ai/code/session_017F2gr2axqf8HWh46zhsQyY

Lingua principale
C++
Stelle
1
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di NorthernWidget/Okapi_Library

Tutte le issue di NorthernWidget/Okapi_Library

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.