Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Details (7) @robertssmorgasbord
Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Details (7)  @robertssmorgasbord
Uploaded September 2024 | Updated September 2026, 7 hours ago
Writing a word to the EEPROM, quite a complex process …
↓↓↓ Complete description, time index and links below ↓↓↓

In the last video we’ve read the whole configuration from the EEPROM into the memory and decoded each and every parameter (link below). That’s well and good, but to change any of these parameters we’ll have to write to the EEPROM.

We start with an overview over the whole process. Then we look at the details of the six required messages and implement them. After that we’re able to code a method to write to the EEPROM. Of course we test at the end if everything works.

00:00 Intro – we will write a word to the EEPROM
00:53 Overview – 6 messages and 4 SPI transactions
07:59 OpCodes – 6 of them with inconsistent names
10:23 Code 1 –adding the OpCodes & housekeeping
12:38 EEWrite message – send address, data and a key
14:14 Code 2 – new/extended data structures & EEWrite
18:48 EERequest message – asking to be challenged
19:16 Code 3 – just EERequest
19:47 EEChallenge message – challenging the master
20:09 Code 4 – MISOMessage extended & EEChallenge
21:06 EEResponse – answering the challenge
21:56 Code 5 – MOSIMessage extended & EEResponse
23:23 EEWriting message – the EEPROM is written to
24:00 EEStatus message – learning how things went
24:48 Code 6 – MISOMessage, new enum & EEStatus
26:52 Sequence – all the messages in the right order
28:59 Code 7 – eepromWrite method doing all the work
33:01 Code 8 – a sketch to test the whole thing
34:36 Test – hard to demonstrate, but it works
36:37 Wrap-up – next we write config parameters, 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
Melexis MLX90363 Triaxis® Magnetometer & Arduino MCU – The Details (6) youtu.be/5g_6NYy5Qcg
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 (7)Full Fly-by-Wire Electric Outboard (33): Detection of Motor Driver Beep Codes (3)Channel Announcement: 10000 Subscribers – A Big Thank You!Full Fly-by-Wire Electric Outboard (7): Current Measurement Circuit & Code (2)Outdoor: Italy, June 2025 – Domaso, Lake ComoCanon ImageFORMULA ScanFront 300 Sheetfed Scanner Teardown (All the Chips)Full Fly-by-Wire Electric Outboard (38): Steering Torque MeasurementDual Electronic Engine Control Lever IP68 (10): Side Parts (2)LEGO® Nutcracker 40640 – Unboxing and Build (ANfSCD)Channel Announcement: Happy Holidays, Thank You All and a FarewellMEMSIC MMC5983MA 3-Axis Digital Compass & Arduino MCU – The Details (3)USB-C to HDMI Converter Teardown (All the Chips)
Roberts Smorgasbord |

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

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER