Skip to content

Change the Serial baud rate from 9600 to 115200 #44

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/Example10-PrintPacket/Example10-PrintPacket.ino
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
Hardware Connections:
Attach the Qwiic Shield to your Arduino/Photon/ESP32 or other
Plug the sensor onto the shield
Serial.print it out at 9600 baud to serial monitor.
Serial.print it out at 115200 baud to serial monitor.
*/

#include <Wire.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
Hardware Connections:
Attach the Qwiic Shield to your Arduino/Photon/ESP32 or other
Plug the sensor onto the shield
Serial.print it out at 9600 baud to serial monitor.
Serial.print it out at 115200 baud to serial monitor.
*/

#include <Wire.h>
Expand All @@ -26,15 +26,15 @@ BNO080 myIMU;

void setup()
{
Serial.begin(9600);
Serial.begin(115200);
Serial.println();
Serial.println("BNO080 Read Example");

Wire1.begin();

//The first argument is the I2C address of the sensor, either 0x4B (default) or 0x4A
//The second is the I2C port to use. Wire, Wire1, softWire, etc.
myIMU.begin(0x4A, Wire1);
myIMU.begin(0x4A, Wire1);

Wire1.setClock(400000); //Increase I2C data rate to 400kHz

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
Hardware Connections:
Attach the Qwiic Shield to your Arduino/Photon/ESP32 or other
Plug the sensor onto the shield
Serial.print it out at 9600 baud to serial monitor.
Serial.print it out at 115200 baud to serial monitor.
*/

#include <Wire.h>
Expand All @@ -23,7 +23,7 @@ BNO080 myIMU;

void setup()
{
Serial.begin(9600);
Serial.begin(115200);
Serial.println();
Serial.println("BNO080 Read Example");

Expand Down
4 changes: 2 additions & 2 deletions examples/Example13-TimeStamp/Example13-TimeStamp.ino
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
Hardware Connections:
Attach the Qwiic Shield to your Arduino/Photon/ESP32 or other
Plug the sensor onto the shield
Serial.print it out at 9600 baud to serial monitor.
Serial.print it out at 115200 baud to serial monitor.
*/

#include <Wire.h>
Expand All @@ -26,7 +26,7 @@ BNO080 myIMU;

void setup()
{
Serial.begin(9600);
Serial.begin(115200);
Serial.println();
Serial.println("BNO080 Read Example");

Expand Down
4 changes: 2 additions & 2 deletions examples/Example14-TwoSensors/Example14-TwoSensors.ino
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
Hardware Connections:
Attach the Qwiic Shield to your Arduino/Photon/ESP32 or other
Plug the sensor onto the shield
Serial.print it out at 9600 baud to serial monitor.
Serial.print it out at 115200 baud to serial monitor.
*/

#include <Wire.h>
Expand All @@ -28,7 +28,7 @@ BNO080 myIMU2; //Closed I2C ADR jumper - goes to address 0x4A

void setup()
{
Serial.begin(9600);
Serial.begin(115200);
Serial.println();
Serial.println("BNO080 Read Example");

Expand Down
6 changes: 3 additions & 3 deletions examples/Example15-RawReadings/Example15-RawReadings.ino
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
Hardware Connections:
Attach the Qwiic Shield to your Arduino/Photon/ESP32 or other
Plug the sensor onto the shield
Serial.print it out at 9600 baud to serial monitor.
Serial.print it out at 115200 baud to serial monitor.
*/

#include <Wire.h>
Expand All @@ -23,7 +23,7 @@ BNO080 myIMU;

void setup()
{
Serial.begin(9600);
Serial.begin(115200);
Serial.println();
Serial.println("BNO080 Read Example");

Expand Down Expand Up @@ -84,4 +84,4 @@ void loop()

Serial.println();
}
}
}
4 changes: 2 additions & 2 deletions examples/Example2-Accelerometer/Example2-Accelerometer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
Hardware Connections:
Attach the Qwiic Shield to your Arduino/Photon/ESP32 or other
Plug the sensor onto the shield
Serial.print it out at 9600 baud to serial monitor.
Serial.print it out at 115200 baud to serial monitor.
*/

#include <Wire.h>
Expand All @@ -23,7 +23,7 @@ BNO080 myIMU;

void setup()
{
Serial.begin(9600);
Serial.begin(115200);
Serial.println();
Serial.println("BNO080 Read Example");

Expand Down
4 changes: 2 additions & 2 deletions examples/Example3-Gyro/Example3-Gyro.ino
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
Hardware Connections:
Attach the Qwiic Shield to your Arduino/Photon/ESP32 or other
Plug the sensor onto the shield
Serial.print it out at 9600 baud to serial monitor.
Serial.print it out at 115200 baud to serial monitor.
*/

#include <Wire.h>
Expand All @@ -26,7 +26,7 @@ BNO080 myIMU;

void setup()
{
Serial.begin(9600);
Serial.begin(115200);
Serial.println();
Serial.println("BNO080 Read Example");

Expand Down
4 changes: 2 additions & 2 deletions examples/Example4-Magnetometer/Example4-Magnetometer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
Hardware Connections:
Attach the Qwiic Shield to your Arduino/Photon/ESP32 or other
Plug the sensor onto the shield
Serial.print it out at 9600 baud to serial monitor.
Serial.print it out at 115200 baud to serial monitor.
*/

#include <Wire.h>
Expand All @@ -26,7 +26,7 @@ BNO080 myIMU;

void setup()
{
Serial.begin(9600);
Serial.begin(115200);
Serial.println();
Serial.println("BNO080 Read Example");

Expand Down
4 changes: 2 additions & 2 deletions examples/Example5-StepCounter/Example5-StepCounter.ino
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
Hardware Connections:
Attach the Qwiic Shield to your Arduino/Photon/ESP32 or other
Plug the sensor onto the shield
Serial.print it out at 9600 baud to serial monitor.
Serial.print it out at 115200 baud to serial monitor.
*/

#include <Wire.h>
Expand All @@ -26,7 +26,7 @@ BNO080 myIMU;

void setup()
{
Serial.begin(9600);
Serial.begin(115200);
Serial.println();
Serial.println("BNO080 Read Example");

Expand Down
4 changes: 2 additions & 2 deletions examples/Example6-MetaData/Example6-MetaData.ino
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
Hardware Connections:
Attach the Qwiic Shield to your Arduino/Photon/ESP32 or other
Plug the sensor onto the shield
Serial.print it out at 9600 baud to serial monitor.
Serial.print it out at 115200 baud to serial monitor.
*/

#include <Wire.h>
Expand All @@ -26,7 +26,7 @@ BNO080 myIMU;

void setup()
{
Serial.begin(9600);
Serial.begin(115200);
Serial.println();
Serial.println("BNO080 Reading Metadata Example");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
Hardware Connections:
Attach the Qwiic Shield to your Arduino/Photon/ESP32 or other
Plug the sensor onto the shield
Serial.print it out at 9600 baud to serial monitor.
Serial.print it out at 115200 baud to serial monitor.
*/

#include <Wire.h>
Expand All @@ -27,7 +27,7 @@ BNO080 myIMU;

void setup()
{
Serial.begin(9600);
Serial.begin(115200);
Serial.println();
Serial.println("BNO080 Read Example");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
Hardware Connections:
Attach the Qwiic Shield to your Arduino/Photon/ESP32 or other
Plug the sensor onto the shield
Serial.print it out at 9600 baud to serial monitor.
Serial.print it out at 115200 baud to serial monitor.
*/

#include <Wire.h>
Expand All @@ -37,7 +37,7 @@ byte activityConfidences[9]; //This array will be filled with the confidence lev

void setup()
{
Serial.begin(9600);
Serial.begin(115200);
Serial.println();
Serial.println("BNO080 Read Example");

Expand All @@ -54,7 +54,7 @@ void setup()

//Send data update every 50ms, with sensor specific config word
//Pass in a pointer to our activityConfidences array as well
myIMU.enableActivityClassifier(50, enableActivities, activityConfidences);
myIMU.enableActivityClassifier(50, enableActivities, activityConfidences);

Serial.println(F("Activity Classifier enabled"));
}
Expand All @@ -66,7 +66,7 @@ void loop()
{
//getActivityClassifier will modify our activityConfidences array
//It will return the most likely activity as well.
byte mostLikelyActivity = myIMU.getActivityClassifier();
byte mostLikelyActivity = myIMU.getActivityClassifier();

Serial.print("Most likely activity: ");
printActivityName(mostLikelyActivity);
Expand Down
6 changes: 3 additions & 3 deletions examples/Example9-Calibrate/Example9-Calibrate.ino
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
Hardware Connections:
Attach the Qwiic Shield to your Arduino/Photon/ESP32 or other
Plug the sensor onto the shield
Serial.print it out at 9600 baud to serial monitor.
Serial.print it out at 115200 baud to serial monitor.
*/

#include <Wire.h>
Expand All @@ -26,7 +26,7 @@ BNO080 myIMU;

void setup()
{
Serial.begin(9600);
Serial.begin(115200);
Serial.println();
Serial.println("BNO080 Read Example");

Expand Down Expand Up @@ -84,7 +84,7 @@ void loop()
{
Serial.println("Calibration data failed to store. Please try again.");
}

//myIMU.endCalibration(); //Turns off all calibration
//In general, calibration should be left on at all times. The BNO080
//auto-calibrates and auto-records cal data roughly every 5 minutes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
Hardware Connections:
Attach the Qwiic Shield to your Arduino/Photon/ESP32 or other
Plug the sensor onto the shield
Serial.print it out at 9600 baud to serial monitor.
Serial.print it out at 115200 baud to serial monitor.
*/

#include <Wire.h>
Expand All @@ -29,7 +29,7 @@ byte imuRSTPin = 7;

void setup()
{
Serial.begin(9600);
Serial.begin(115200);
Serial.println();
Serial.println("BNO080 Read Example");

Expand Down Expand Up @@ -63,4 +63,3 @@ void loop()
Serial.println();
}
}