New answers tagged

1

For more context I did ask BOSCH directly about this issue and explained my setup in more detail. https://community.bosch-sensortec.com/t5/MEMS-sensors-forum/BNO055-Outputting-Bad-Linear-Accel-Data/m-p/18976#M5212


1

Integration of acceleration to derive velocity is a difficult task. This is the first step in dead reckoning. Consider some of the following options to improve accuracy: Some IMUs can be adjusted to increase sample speed. If the acceleration is sudden, more samples my improve the accuracy of the calculated velocity. Try aligning just 1 of the axes of the ...


1

Start with the BlinkWithoutDelay example code and make modifications to suit your needs. This is the original code. /* Blink without Delay Turns on and off a light emitting diode (LED) connected to a digital pin, without using the delay() function. This means that other code can run at the same time without being interrupted by the LED code. ...


0

What you're searching for is called "non-blocking programming", a technique in which you frequently test or evaluate whether something needs to be done, and either do it or not, but move on immediately. For one motor, you could block successfully (do nothing else while you wait for something to happen): start/wait/stop/reverse/wait/stop/... etc. ...


0

The simplest approach to include a delay in your sketch is to call the Arduino delay() function. Pass this function a delay value in milliseconds. For example, a 1 second delay is 1000 milliseconds. As simple as this method is, it is not recommended if your sketch is required to accomplish tasks during the delay. This is a common requirement and ...


2

Two problems: When you create an object instance with no parameters you must not have parentheses. You should construct thus: TwoWire mywire; The constructor expects a pointer to an object, not an object. Just take the address of the object with & and pass that: Adafruit_AM2320 am2320 = Adafruit_AM2320(&mywire, -1, -1); // as the default values ...


2

Looking at the library at https://github.com/adafruit/Adafruit_NeoPixel/blob/master/Adafruit_NeoPixel.h, you can see that the Color method is static (see line 307): static uint32_t Color(uint8_t r, uint8_t g, uint8_t b) { return ((uint32_t)r << 16) | ((uint32_t)g << 8) | b; This means instead of strip[0].Color( 0, 255, 0) You can use: ...


Top 50 recent answers are included