Uploaded September 2024 | Updated September 2026, 3 hours ago
Reading the whole configuration from the EEPROM and decoding it …
↓↓↓ Complete description, time index and links below ↓↓↓
Last time we’ve implemented the memory read messages and read the 16-bit words from the EEPROM that contained the configuration (link below). But what we really want is a nicely readable configuration, not some 16-bit unsigned integers.
We start out with some errata regarding our memory map. Then we proceed and read the configuration into an array within a union. Finally we extend that union by a struct to structure the configuration and decode all parameters.
00:00 Intro – errata and making configuration readable
01:18 Errata – corrected and completed Address enum
03:34 Enum parameters – four of them
08:04 Struct parameter – array of free bytes in a struct
09:23 Numeric parameters - 13 including two Booleans
12:18 Code 1 – reading the configuration into memory
18:22 Code 2 – mapping the parameters in a union
23:07 Code 3 – decoding all the parameters
29:08 Code 4 – sketch printing out the parameters
30:39 Test – all verifiable parameters are OK
34:25 Wrap-up – next we’ll write to the EEPROM, bye
Tutorials youtube.com/playlist?list=PLwq-2MnM58FKn3920rc1V0qoTsQDheTIw
Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Basics youtu.be/XAbHbonRWEk
Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Details (1) youtu.be/w1Tx66HK83Q
Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Details (2) youtu.be/HDymx1VU_a8
Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Details (3) youtu.be/6rkxCzaH1hQ
Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Details (4) youtu.be/8s34R9XDqzk
Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Details (5) youtu.be/MrlVVu7uIHg
My code drive.google.com/drive/folders/1CLvym6ytoPLXkoji6DU-rJKnTpFYmiu6?usp=sharing
Melexis MLX90636 Datasheet media.melexis.com/-/media/files/documents/datasheets/mlx90363-datasheet-melexis.pdf
Getting Started Guide for MLX90363 | Melexis media.melexis.com/-/media/files/documents/application-notes/mlx90363-getting-started-guide-application-note-melexis.pdf?la=en
#arduino #magnetometer #microcontroller #spi #tutorials #tutorial #how-to #robertssmorgasbord
Reading the whole configuration from the EEPROM and decoding it …
↓↓↓ Complete description, time index and links below ↓↓↓
Last time we’ve implemented the memory read messages and read the 16-bit words from the EEPROM that contained the configuration (link below). But what we really want is a nicely readable configuration, not some 16-bit unsigned integers.
We start out with some errata regarding our memory map. Then we proceed and read the configuration into an array within a union. Finally we extend that union by a struct to structure the configuration and decode all parameters.
00:00 Intro – errata and making configuration readable
01:18 Errata – corrected and completed Address enum
03:34 Enum parameters – four of them
08:04 Struct parameter – array of free bytes in a struct
09:23 Numeric parameters - 13 including two Booleans
12:18 Code 1 – reading the configuration into memory
18:22 Code 2 – mapping the parameters in a union
23:07 Code 3 – decoding all the parameters
29:08 Code 4 – sketch printing out the parameters
30:39 Test – all verifiable parameters are OK
34:25 Wrap-up – next we’ll write to the EEPROM, bye
Tutorials youtube.com/playlist?list=PLwq-2MnM58FKn3920rc1V0qoTsQDheTIw
Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Basics youtu.be/XAbHbonRWEk
Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Details (1) youtu.be/w1Tx66HK83Q
Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Details (2) youtu.be/HDymx1VU_a8
Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Details (3) youtu.be/6rkxCzaH1hQ
Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Details (4) youtu.be/8s34R9XDqzk
Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Details (5) youtu.be/MrlVVu7uIHg
My code drive.google.com/drive/folders/1CLvym6ytoPLXkoji6DU-rJKnTpFYmiu6?usp=sharing
Melexis MLX90636 Datasheet media.melexis.com/-/media/files/documents/datasheets/mlx90363-datasheet-melexis.pdf
Getting Started Guide for MLX90363 | Melexis media.melexis.com/-/media/files/documents/application-notes/mlx90363-getting-started-guide-application-note-melexis.pdf?la=en
#arduino #magnetometer #microcontroller #spi #tutorials #tutorial #how-to #robertssmorgasbord










