MLX90393 experiments [140555]
This is a support page for the Elektor October 2015 article about the MLX90393 Triaxis Micropower Magnetometer from Melexis.Buy it here.
This is a support page for the Elektor October 2015 article about the MLX90393 Triaxis Micropower Magnetometer from Melexis.
Interesting but technical article about how these sensors work.
To test your mbed setup without CherryStone you can use a serial terminal and send ASCII commands like these:
- Exit Mode (I2C): 5,0,0,0<CR><LF>
- Exit Mode (SPI): 5,1,0,0<CR><LF>
- Single Measurement Mode (I2C, X & Y): 6,6,0,0<CR><LF>
- Single Measurement Mode (SPI, X & Y): 6,6,1,0<CR><LF>
- Read Measurement (I2C, X & Y): 7,6,0,0<CR><LF>
- Read Measurement (SPI, X & Y): 7,6,1,0<CR><LF>
This should get you some data that you can influence with a magnet. For more commands check the mbed demo program's main.cpp (you can download the project's source code from the mbed website)
The second '6' in the last four commands is the ZYXT value where each letter is a bit field. To activate Z you would send '14' instead of '6', T only would be '1'. Get it?
Build This Project
Bring this design to life with the Elektor PCB Service, powered by Eurocircuits. Upload the project files and order professionally manufactured PCBs or assembled boards through a proven European production platform.
Supporting KiCad, Eagle, Gerber, and ODB++ formats, the service is suitable for everything from prototypes and validation builds to series production and volume manufacturing.
Made in Europe. Fast. Reliable. Professional.

Updates from the author