Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Details (2) @robertssmorgasbord
Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Details (2)  @robertssmorgasbord
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
Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Details (2)MEMSIC MMC5983MA 3-Axis Digital Compass & Arduino MCU – The Details (6)Full Fly-by-Wire Electric Outboard (36): Power Architecture OverviewChannel Announcement: Sorry, No Video Today – It’s Too Hot, so I’m Going SailingMelexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Details (11)Haswing Protruar 2.0 24V Trolling Motor – Teardown & Reverse EngineeringRS-485 – The Details (2/4): Failsafe Biasing, Associated Protocol SimplificationsMicrosoft Razor Habu Gaming Mouse TeardownArduino megaAVR ADC Oversampling, e.g. Nano Every ATmega4809Electronic Steering Wheel / Rudder Jog IP68 (10): Round Table Center ShaftMelexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Details (9)Arduino Nano Every – Power Supply Architecture and Brownouts
Roberts Smorgasbord |

Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Details (2)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER