Work in progress:
https://wokwi.com/projects/393060272467423233
Lettura e scrittura sembra ok, manca tutto il resto:
- cursori ? Quanti ? Quali ?
- HMC5883 modo test
- pin READY
- aggiunta di un pin che se low modifica x, y e z (solo per test)
Ora io a lezione di magnetometria non ci andavo per cui sono gnurante. ![]()
Vedo solo che x, y e z possono variare nel range -2048 ÷ +2047.
Se c'è un overflow o underflow x, y e z dovrebbero assumere il valore -4096.
In the event the ADC reading overflows or underflows for the given channel, or if there is a math overflow during the bias
measurement, this data register will contain the value -4096. This register value will clear when after the next valid
measurement is made.
Si accettano suggerimenti al fine di accelerare lo sviluppo.
Ciao.