Project tutorial
DIY Gauss Meter

DIY Gauss Meter

Cheap and Simple 3-Axis Gauss Meter

  • 4,065 views
  • 0 comments
  • 9 respects

Components and supplies

Necessary tools and machines

Apps and online services

About this project


if (typeof(lightBoxImages) == 'undefined') { lightBoxImages = {}; } lightBoxImages['df68d6287d'] = [{ URL: 'https://hackster.imgix.net/uploads/attachments/1180729/FC7UXPOKED4WHI1.png?auto=compress%2Cformat&w=1280&h=960&fit=max', caption: '', type: 'image' },{ URL: 'https://hackster.imgix.net/uploads/attachments/1180730/F53G3L9KED4WE2V.jpg?auto=compress%2Cformat&w=1280&h=960&fit=max', caption: '', type: 'image' }];

Gaussmeter is a scientific instrument that is used to measure the magnetic field strength and direction, it is really a handy tool for every hobbyist and quite a fun to tinker with.

The key component is the MLX90393 this is 3-Axis magnetic field sensor and is quite capable of what it does.

I have also made a complete video tutorial for the same project and is the following:

Step 1: Things Needed
if (typeof(lightBoxImages) == 'undefined') { lightBoxImages = {}; } lightBoxImages['a1c75c653a'] = [{ URL: 'https://hackster.imgix.net/uploads/attachments/1180731/FP2HL2OKED4WGY1.png?auto=compress%2Cformat&w=1280&h=960&fit=max', caption: '', type: 'image' },{ URL: 'https://hackster.imgix.net/uploads/attachments/1180732/FDU9RLUKED4WGRE.png?auto=compress%2Cformat&w=1280&h=960&fit=max', caption: '', type: 'image' },{ URL: 'https://hackster.imgix.net/uploads/attachments/1180733/FASQWLXKED4WGMI.png?auto=compress%2Cformat&w=1280&h=960&fit=max', caption: '', type: 'image' },{ URL: 'https://hackster.imgix.net/uploads/attachments/1180734/FRP7HOUKED4WGI8.png?auto=compress%2Cformat&w=1280&h=960&fit=max', caption: '', type: 'image' },{ URL: 'https://hackster.imgix.net/uploads/attachments/1180735/F415PSBKED4WGF9.png?auto=compress%2Cformat&w=1280&h=960&fit=max', caption: '', type: 'image' },{ URL: 'https://hackster.imgix.net/uploads/attachments/1180736/FKF606AKED4WGA7.png?auto=compress%2Cformat&w=1280&h=960&fit=max', caption: '', type: 'image' }];

Arduino Nano R3

MLX90393

Soldering iron

Solder Wire

Female/Male Extension Jumper Wires

Software- Arduino IDE

Step 2: Connections
if (typeof(lightBoxImages) == 'undefined') { lightBoxImages = {}; } lightBoxImages['57cc9e0013'] = [{ URL: 'https://hackster.imgix.net/uploads/attachments/1180737/FGRO10LKED4WH7S.png?auto=compress%2Cformat&w=1280&h=960&fit=max', caption: '', type: 'image' }];

Make the connection from module to Arduino for I2C, that is

SDA to A4

SCL to A5

GND to GND

3.3V to 3V3.

Pretty straightforward innit?

Step 3: Code
if (typeof(lightBoxImages) == 'undefined') { lightBoxImages = {}; } lightBoxImages['3823c6d36c'] = [{ URL: 'https://hackster.imgix.net/uploads/attachments/1180738/FR1D2F0KED4WHCN.png?auto=compress%2Cformat&w=1280&h=960&fit=max', caption: '', type: 'image' },{ URL: 'https://hackster.imgix.net/uploads/attachments/1180739/F1W95NAKED4WHC3.png?auto=compress%2Cformat&w=1280&h=960&fit=max', caption: '', type: 'image' },{ URL: 'https://hackster.imgix.net/uploads/attachments/1180740/F4BLB4QKED4WHC2.png?auto=compress%2Cformat&w=1280&h=960&fit=max', caption: '', type: 'image' },{ URL: 'https://hackster.imgix.net/uploads/attachments/1180741/FL2OGJSKED4WHBI.png?auto=compress%2Cformat&w=1280&h=960&fit=max', caption: '', type: 'image' },{ URL: 'https://hackster.imgix.net/uploads/attachments/1180742/FR12PKPKED4WHBH.png?auto=compress%2Cformat&w=1280&h=960&fit=max', caption: '', type: 'image' }];

Connect the Arduino to the PC and open the Arduino IDE.

Go to Sketch, Include libraries, and then manage libraries. Type in the search MLX90393 you will see the library by Aafruit, Download it.

Go to files examples then Adafruit MLX90393, open the basic demo sketch. Now as the sensor is 3-axis one, but we are only interested in the axis that is perpendicular to the plane, that according to its datasheet is Z, so in the sketch, I would recommend commenting the Serial print line of x and y-axis.

Upload the sketch, after the upload completes open the serial monitor at 9600 baud rate.

Step 4: Voila!
if (typeof(lightBoxImages) == 'undefined') { lightBoxImages = {}; } lightBoxImages['5fa02190e7'] = [{ URL: 'https://hackster.imgix.net/uploads/attachments/1180743/FVODGFBKED4WHE6.png?auto=compress%2Cformat&w=1280&h=960&fit=max', caption: '', type: 'image' }];

You should see the magnetic field on the axis you did not comment out, to measure the magnetic field strength and direction in teslas bring magnet closer and perpendicular to the sensor on the breakout board.

I hope you liked it!

If you want to make your prototype PCBs cheap and with amazing tolerance and quality control, check out www.PCBWay.com where you can get 10 double layer PCBs for just 5$, and not only that, they also offer PCB Assembly service starting at 30$, so be it flexible PCBs or multilayered high-quality circuits, you can get them made at an unbelievable price from PCBWay

Thanks for the read, please subscribe to my youtube channel and follow my tutorials account for more awesome projects.


Comments

Similar projects you might like

DIY Universal CNC Machine

Project tutorial by Arduino “having11” Guy

  • 43,135 views
  • 8 comments
  • 98 respects

DIY 8800W Arduino AC Dimmer

Project tutorial by Tanishq Jaiswal

  • 5,615 views
  • 1 comment
  • 1 respect

Arduino DIY Light Meter With BH1750 Sensor

Project tutorial by Nick Koumaris

  • 13,770 views
  • 2 comments
  • 7 respects

DIY Distance Meter with Arduino and a Nokia 5110 Display

Project tutorial by Nick Koumaris

  • 12,571 views
  • 0 comments
  • 23 respects

DIY Simple Frequency Meter Up to 6.5MHz

Project tutorial by Mirko Pavleski

  • 12,327 views
  • 6 comments
  • 19 respects

DIY Simple Autorange Capacitance Meter (10pF-10000microF)

Project tutorial by Mirko Pavleski

  • 10,864 views
  • 9 comments
  • 20 respects
Add projectSign up / Login