EasyManua.ls Logo

Keyestudio 4WD - Page 128

Keyestudio 4WD
369 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
128
www.keyestudio.com
It uses FreescaleMAG3110 three-axis magnetometer. Its I2C interface
communicates with the outside, the range is ±1000µT, the maximum data
update rate is 80Hz. Combined with accelerometer, it can calculate the
position. Additionally, it is applied to magnetic detection and compass
blocks.
Then we could read the value detected by it to determine the location. We
need to calibrate the Micro:bit board when magnetic sensor works.
The correct calibration method is to rotate the Micro:bit board.
In addition, the objects nearby may affect the accuracy of readings and
calibration.
(2)Experimental Preparation:
Connect micro:bit to computer with the USB cable
Open online Makecode editor
Import Hex profile (How to import?)
Or click“New Project”and drag blocks step by step
(3)Test Code
Code 1:
Press A on micro:bit, the value of compass is shown.
The route to get test code(How to load?

Related product manuals