Uploaded July 2024 | Updated September 2026, 1 day ago
Basic library structure and sending/receiving NOP (no operation) commands …
↓↓↓ Complete description, time index and links below ↓↓↓
Three weeks ago we had a fist look at the Melaxis MLX90363 Triaxis® magnetometer (link below). While the chip supports a wide range of applications, the existing Arduino code for it does not. So it’s time to start writing our own library for it.
We’ll first go through the datasheet and the getting started guide (links below), figuring out how to establish SPI communication in an elegant and efficient way. Then we’ll code our library framework implementing the NOP command.
00:00 Intro – just implementing NOP, this will be boring
01:18 Message structure – all eight bytes with few similarities
03:12 CRC – fancy polynomial CRC-8 using a table
08:58 Markers – identifying regular and other messages
10:48 OpCodes – determining the type of operation
13:06 NOP messages – but for echoing a key doing nothing
14:56 C++ unions – elegant & efficient way to model messages
24:22 Code – walkthrough through the rest of the code
34:53 Test – works, but of course kinda boring
36:02 Wrap-up – handling more OpCodes is next, bye
Tutorials youtube.com/playlist?list=PLwq-2MnM58FKn3920rc1V0qoTsQDheTIw
Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Basics youtu.be/XAbHbonRWEk
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
Sunshine’s Homepage – Understanding CRC sunshine2k.de/articles/coding/crc/understanding_crc.html
#arduino #magnetometer #microcontroller #spi #tutorials #tutorial #how-to #robertssmorgasbord
Basic library structure and sending/receiving NOP (no operation) commands …
↓↓↓ Complete description, time index and links below ↓↓↓
Three weeks ago we had a fist look at the Melaxis MLX90363 Triaxis® magnetometer (link below). While the chip supports a wide range of applications, the existing Arduino code for it does not. So it’s time to start writing our own library for it.
We’ll first go through the datasheet and the getting started guide (links below), figuring out how to establish SPI communication in an elegant and efficient way. Then we’ll code our library framework implementing the NOP command.
00:00 Intro – just implementing NOP, this will be boring
01:18 Message structure – all eight bytes with few similarities
03:12 CRC – fancy polynomial CRC-8 using a table
08:58 Markers – identifying regular and other messages
10:48 OpCodes – determining the type of operation
13:06 NOP messages – but for echoing a key doing nothing
14:56 C++ unions – elegant & efficient way to model messages
24:22 Code – walkthrough through the rest of the code
34:53 Test – works, but of course kinda boring
36:02 Wrap-up – handling more OpCodes is next, bye
Tutorials youtube.com/playlist?list=PLwq-2MnM58FKn3920rc1V0qoTsQDheTIw
Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Basics youtu.be/XAbHbonRWEk
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
Sunshine’s Homepage – Understanding CRC sunshine2k.de/articles/coding/crc/understanding_crc.html
#arduino #magnetometer #microcontroller #spi #tutorials #tutorial #how-to #robertssmorgasbord








![Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Details (13)
Covering the parameters ORTH_B1B2, ORTH_SEL and FILTER …
↓↓↓ Complete description, time index and links below ↓↓↓
In the previous video we’ve successfully used the SEL_SMISM and SMISM parameters, but couldn’t make sense of the FHYST parameter (link below). Well, there’s no rest for the wicked, so let’s churn through the next parameters.
First we revisit the orthogonality parameters, focusing on ORTH_B1B2. But in the following experiment ORTH_B1B2, like ORTH_XY before, seems to do absolutely nothing. Finally we have a look at the FILTER parameter and it actually works.
00:00 Intro – we’ll start with ORTH_B1B2 and go from there
00:45 ORTH_[SEL|XY|B1B2] – recap focused on ORTH_B1B2
03:53 Experimenting 1 – effect of ORTH_B1B2 (there’s none)
07:08 FILTER – according to the datasheet
09:03 Experimenting 2 – FILTER works as expected
13:01 Preview – 3D, KALPHA, KBETA, KT and FHYST (again)
16:10 Wrap up – some math and geometry ahead, bye
Tutorials https://www.youtube.com/playlist?list=PLwq-2MnM58FKn3920rc1V0qoTsQDheTIw
Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Basics https://youtu.be/XAbHbonRWEk
Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Details (1) https://youtu.be/w1Tx66HK83Q
Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Details (2) https://youtu.be/HDymx1VU_a8
Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Details (3) https://youtu.be/6rkxCzaH1hQ
Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Details (4) https://youtu.be/8s34R9XDqzk
Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Details (5) https://youtu.be/MrlVVu7uIHg
Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Details (6) https://youtu.be/5g_6NYy5Qcg
Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Details (7) https://youtu.be/0tTG7peMkSI
Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Details (8) https://youtu.be/xaL3Or_DVjI
Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Details (9) https://youtu.be/JhSwvkAOEUc
Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Details (10) https://youtu.be/YmZj0D8PAvE
Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Details (11) https://youtu.be/HtG6XRlLfJg
Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Details (12) https://youtu.be/lx8CAS7Sqfo
My code https://drive.google.com/drive/folders/1CLvym6ytoPLXkoji6DU-rJKnTpFYmiu6?usp=sharing
Melexis MLX90636 Datasheet https://media.melexis.com/-/media/files/documents/datasheets/mlx90363-datasheet-melexis.pdf
Getting Started Guide for MLX90363 | Melexis https://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 Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Details (13)](https://i.ytimg.com/vi/zKj6MQiQBz4/mqdefault.jpg)