Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Details (1) @robertssmorgasbord
Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Details (1)  @robertssmorgasbord
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
Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Details (1)Haswing Protruar 2.0 24V Trolling Motor – Reverse Engineering ErrataFull Fly-by-Wire Electric Outboard (31): RS-485 Bus Protocol (2)Arduino megaAVR Watchdog & Resets, e.g. Nano Every ATmega4809 – ErrataHow Much Solar Power Do You Need to Generate 1 kWh Per Day on a Boat?WMF Lono Milk & Choc (Partial) Teardown, Test and (No) Repair (It’s Working)Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Details (8)Full Fly-by-Wire Electric Outboard (4): Throttle Circuit & Code TestElectronic Steering Wheel / Rudder Jog IP68 (18): BackplateMelexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Details (13)
Roberts Smorgasbord |

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

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER