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


0

If you use an accelerometer, you have to integrate twice to arrive at distance travelled. These two integrations will also compound errors and noise, so the result won't be very accurate without many corrections. If a wheel doesn't slip and is undriven, the results of counting wheel rotations should be fairly accurate when the robot is moving in a straight ...


1

If you measure one of the free running wheels (with no motor connect to it), it depends on the traction of the wheel, but that could be fairly accurate. If you move horizontally a simple accellerometer (1 axis) would be great. But if you have a vertical component, then you can not distinct between accelleration and weight force (Einstein). If you use a 3 ...


0

You can connect multiple devices or modules to the same 5v pin, as long as it does not exceed the maximum current that the on-board 5v regulator can handled. If you are using a genuine Arduino Uno, it has a NCP1117 which has a maximum current of 1A. If you don't have a genuine Arduino Uno, check the part number and find the datasheet to find out the maximum ...


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

You need to write one program using elements from each block of code. There is no way the Arduino will run both programs concurrently, it will only run one or the other. You can copy and paste them together but unless done correctly it will not work. This is why it is important to understand the code you are using.


0

If the machine has a Brewing- or a Done Brewing LED, a light sensor can detect this without no changes or connections to the machine. This would also have the advantage of working for a short or full pot.


0

Just two ideas, both non-invasive: The machine moves water from the reservoir at the back to the coffeepot at the front, so its weight distribution will change while making coffee. If you put a thin pressure pad (like this one, or something similar) under the whole machine at the back you should see the pressure at that point become smaller while coffee is ...


1

In a comment about rZero = 511;, you wrote: For illustrative purposes only - should be measured to calibrate sensor. This may well be the cause of your problem. If, instead of 511, the “zero” of your measurement is around 445, then you end up measuring a non-existing DC current of about 3.23 A. When you turn on the light bulb, you add roughly 435 mA (100 W ...


0

The product page you linked to has modules of different types. Make sure you have uncommented the matching type in the this section of the example: // Uncomment whatever type you're using! //#define DHTTYPE DHT11 // DHT 11 #define DHTTYPE DHT22 // DHT 22 (AM2302), AM2321 //#define DHTTYPE DHT21 // DHT 21 (AM2301) Also makers of these boards sometimes ...


1

I don't know why the three of them don't work together. I already answered that question in my answer to your previous question. why I'm using this calculation in my code and why if I removed it the lidar will not give me any measurement? That code part is reading the data from the first SoftwareSerial interface. If you don't read this data (by removing ...


0

I can't answer the first part of your question as I don't understand what you're asking. However: I don't know why the three of them don't work together. That doesn't work for 2 reasons: Your receiving routine specifically references only one TFMini serial port, and It is impossible to receive from more than one SoftwareSerial port at a time. If you ...


1

The process of integrating acceleration to derive velocity and integrating velocity to derive position are commonly known as dead reckoning. In this link it is stated: Dead reckoning is subject to cumulative errors. Advances in navigational aids that give accurate information on position, in particular satellite navigation using the Global Positioning ...


1

You could measure the total acceleration (g + lift acceleration) with an accelerometer, and use that value in your calculation instead of 9.81m/s2. If the measured value is 0, sound an alarm. Or, assuming the elevator only accelerates/decelerates for short periodes only (say, less than 2s) during a "trip", you could make a series of measurements in ...


1

The force due to acceleration is: F = m*a So to calculate the weight while accelerating the formula is: F = mg + ma or F = m(g + a) Note, of course, that a can be positive or negative depending on whether the elevator is accelerating or decelerating. The trick here is to know what "a" is. The best approach is probably to get an accelerometer and ...


2

This is a poor product, look at this: that describes exactly the problems you (and me) are experiencing. Correct me if you've found any solutions so far. edit Try looking at description of regster 0x2f in datasheet and to this question. I think that the first problem you describe can be solved this way, the second behaviour sounds like you fried the device.


0

First: Why are you including, declaring and initializing the library's tfmini object, if you then don't use it for reading the sensor? Your problem will be, that you can only listen to exactly 1 SoftwareSerial interface at a time. If you listen to the first interface and the sensor on the second interface is sending something, you will miss that data. I ...


0

You are not going to get good answers without showing your code, but maybe this is a good guess of what you want: why not try something roughly like this (untested and incomplete)? Adafruit_BMP3XX bmp; float startPressure; float difference; void setup() { bmp.begin_I2C(); startPressure = bmp.readPressure(); } void loop() { difference = startPressure ...


0

Just a thought, a lot of cars use them, why not try your local salvage yard you may be able to get them on the cheap.


0

Try a non contact water sensor: https://www.dfrobot.com/product-1493.html I use them and they work very well. You stick it on the outside of the jug, If it falls off the jug will show empty protecting your pump. The ones I use are similar and have an open collector, so no micro is required. I think I paid about $6 a year or so ago. They make adjustable ones....


0

Use google and enter: arduino state of charge. I got a few hits About 2,620,000 results (0.55 seconds).


1

I recently looked into this again, and it turns out that Broadcom had released a porting guide for this library in August 2020 (nearly a year after I originally posted this question) that should prove useful to anyone trying to make use of this sensor. It's for the STM32 platform, not Arduino, but it's the most detail Broadcom has provided with regards to ...


Top 50 recent answers are included