Hi there!
I'm starting to play with my new Arduino 33 BLE Sense. Running the examples offered by the IDE I discovered that the first twenty or so seconds there is only garbage in the serial monitor.
The following is a slightly changed example of the IDE:
// Nano BLE LPS22HB Test
// Luftdruck
// Der Sensor
#include <Arduino_LPS22HB.h>
//----------------------------- 80 Zeichen ------------------------------------|
void setup()
{
Serial.begin(9600);
Serial.println("LPS22HB Test gestartet.");
for(byte n=30; n>0; n--)
{
Serial.print(n);
Serial.print(" ");
delay(1000);
}
if(!BARO.begin())
{
Serial.println("Barometer nicht bereit!");
while(1);
}
}
void loop()
{
Serial.print("Luftdruck: ");
Serial.print(BARO.readPressure(MILLIBAR));
Serial.println(" millibar");
delay(3000);
}
And this is its output:
24 20 110 9 8 7 6 5 4 3 2 1 Luftdruck: 757.93 millibar
Luftdruck: 995.81 millibar
Luftdruck: 995.77 millibar
Luftdruck: 995.78 millibar
Luftdruck: 995.77 millibar
Luftdruck: 995.78 millibar
...
So the first 20 seconds are completely unusable.
There is no USB hub and this doesn't change on another USB port or at a different baud rate (9600, 300).
Is my Arduino some kind of bricked? Is this „normal“? I'm used to believe that Arduino produces things I can rely on a 100 percent. So ... wtf?
TIA
Gregor