Hardware Reference
In-Depth Information
tice, by the way, that there is a duplicate of the HMC5883L library you installed
earlier, so you can decide to merge these directories.
4. Once you have these directories installed, bring up the Arduino IDE. Before you
bring up the example program for the device, open the Serial Monitor and set the
baud rate to 38400 . Now, bring up the example program that reads the raw val-
ues of the accelerometer and gyro by navigating to Examples | MPU6050 |
Examples | MPU6050_raw , as shown in the following screenshot:
This will open a sketch that provides the code to read the raw data from your sensor.
When you upload the code and open the Serial Monitor, you should see something similar
to the following screenshot:
Search WWH ::




Custom Search