Introduction: Magnetic Sensor (lis3mdl) With Dexter
Dexter board is an educational trainer kit that makes learning
electronics fun and easy. The board brings together all the necessary parts a beginner requires to change an idea to a successful prototype. With Arduino at its heart, a huge number of open source projects can be easily implemented directly on this board. Interactive features like on board LCD display, switches, motor drivers and LED's' help make development faster and debugging easier. Together with I2C and SPI pin outs, we have also integrated wireless protocols like Bluetooth on the board itself. This opens a whole spectrum of ideas to build creative IoT projects. Most importantly all these features are implemented on a single board thus all your projects are now portable, mobile and wireless. Dexter Board can be used in wide variety of applications for training and development in domains such as embedded systems, robotics, practical electronics education, electronic hardware development and more...
In this project we Display the magnetic values in LCD using a lis3mdl module and our own Dexter Board.
Supplies
Dexter
lis3mdl
Connecting wires
Step 1: Connect the Pins As in the Diagram
Here we use i2c protocol to obtain the value from the sensor. if you want to learn more about i2c go to Learn I2C.
Connect
Dexter lis3mdl
------------ --------------
Vin-+5V
GND-GND
SDA-SDA on Dexter
SCL-SCLon Dexter
Step 2: Adding CH340G Driver
If you are using Arduino first time with Dexter then please install ch340g driver. Go to the link and follow the instructions
Step 3: Compile and Upload Your Program to Dexter
Now Download this given Arduino code to your IDE.
Now, From tools select the board as Arduino Uno, and also select the your port at tools-->port Now compile and Upload the program
Attachments
Step 4: Adjust Potentiometer
If your LCD display shows nothing,adjust your LCD’s potentiometer You will get the output as in the picture