Uploaded August 2024 | Updated September 2026, 5 minutes ago
Implementing more messages and getting the startup sequence right …
↓↓↓ Complete description, time index and links below ↓↓↓
Last time we’ve established the basic library structure based on C++ unions and got the MLX90363 up and running using no operation messages (link below). However, during power on startups our library threw some errors. It’s time to fix that.
We’ll first implement three more messages to eliminate the errors. Then we’ll come up with a working reboot sequence for the MLX90363, to get it reliably into a defined state. For reasons that will become clear, this will include standby messages.
00:00 Intro – implementing more OpCodes to avoid errors
01:31 OpCodes – we might see after power on
03:08 Interleave – of MOSI commands and MISO responses
05:23 Ready message – first MISO messages after a reset
06:40 Error message – slave throwing some kind of error
07:48 NTT message – slave has nothing to transmit (NTT)
09:18 Code 1 – ready, error and NTT MISO messages
17:27 Test 1 – no library error, but inconsistent behavior
20:04 Reboot message – resetting the slave
21:50 Code 2 – reboot message and reboot during begin()
26:05 Test 2 – consistent startup behavior, but it’s an error
27:18 Standby message – putting the slave into standby
29:00 Startup sequence – the right messages in order
33:55 Code 3 – standby message and extended begin()
39:02 Test 3 – consistent startup behavior, no error
40:13 Wrap-up – getting magnetic data is next, 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
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
Implementing more messages and getting the startup sequence right …
↓↓↓ Complete description, time index and links below ↓↓↓
Last time we’ve established the basic library structure based on C++ unions and got the MLX90363 up and running using no operation messages (link below). However, during power on startups our library threw some errors. It’s time to fix that.
We’ll first implement three more messages to eliminate the errors. Then we’ll come up with a working reboot sequence for the MLX90363, to get it reliably into a defined state. For reasons that will become clear, this will include standby messages.
00:00 Intro – implementing more OpCodes to avoid errors
01:31 OpCodes – we might see after power on
03:08 Interleave – of MOSI commands and MISO responses
05:23 Ready message – first MISO messages after a reset
06:40 Error message – slave throwing some kind of error
07:48 NTT message – slave has nothing to transmit (NTT)
09:18 Code 1 – ready, error and NTT MISO messages
17:27 Test 1 – no library error, but inconsistent behavior
20:04 Reboot message – resetting the slave
21:50 Code 2 – reboot message and reboot during begin()
26:05 Test 2 – consistent startup behavior, but it’s an error
27:18 Standby message – putting the slave into standby
29:00 Startup sequence – the right messages in order
33:55 Code 3 – standby message and extended begin()
39:02 Test 3 – consistent startup behavior, no error
40:13 Wrap-up – getting magnetic data is next, 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
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



![Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Details (11)
Covering the parameters ORTH_SEL, ORTH_XY and MAPXYZ …
↓↓↓ Complete description, time index and links below ↓↓↓
In the previous video we’ve improved the oscillator frequency measurement, determined/verified the axes of the chip and tackled the first two parameters – VIRTUALGAINMIN/-MAX (link below). Now we’ll have a look at the next parameters.
We start with some errata regarding VIRTUALGAINMIN/-MAX. Then we read up on the ORTH_[SEL|XY|B1B2] parameters in the datasheet and experiment with ORTH_SEL and ORTH_XY. We also look at MAPXYZ and do some housekeeping.
00:00 Intro – we’ll be going through more parameters
00:45 Errata – VIRTUALGAINMIN/-MAX application
03:24 ORTH_[SEL|XY|B1B2] – according to the datasheet
09:02 Housekeeping 1 – active/updateOrth…() methods
11:53 Experimenting – effect of ORTH_SEL and ORTH_XY
25:16 MAPXYZ – mapping X/Y/Z to B1/B2/B3 channels
28:21 Houskeeping 2 – renaming MapXYZ enumerators
30:08 Wrap-up – more config parameters to follow, 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
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 (11)](https://i.ytimg.com/vi/HtG6XRlLfJg/mqdefault.jpg)






