Hello,
Unfortunately, it's not working properly.
The temperature does not come at all.
Pressure shows a random value
Height does not work either.
need help
Greeting SpeedPic32
Adafruit DP310 Precision Barometer
-
- Posts: 252
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 10, 2020 2:35 pm
- Has thanked: 36 times
- Been thanked: 17 times
-
- Matrix Staff
- Posts: 1746
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 444 times
- Been thanked: 604 times
Re: Adafruit DP310 Precision Barometer
Hello,
I've spotted a couple of minor problems in the project so I've edited them and hopefully that's made a difference.
Let me know how you get on.
I'm aware of a problem at the moment with hardware I2C so I've also changed the I2C channel to software for now until we can get to the bottom of that issue.
I've spotted a couple of minor problems in the project so I've edited them and hopefully that's made a difference.
Let me know how you get on.
I'm aware of a problem at the moment with hardware I2C so I've also changed the I2C channel to software for now until we can get to the bottom of that issue.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Posts: 252
- Joined: Thu Dec 10, 2020 2:35 pm
- Has thanked: 36 times
- Been thanked: 17 times
Re: Adafruit DP310 Precision Barometer
Hello and good morning,
see pictures
Once started, the value is always the same, even if I increase the temperature or pressure.
In the second picture green writing I switch off the PIC and restart it.
there are again random values that remain constant.
The average air pressure at sea level is 1013.25 hPa. a somewhat lower pressure should be displayed, as I do not live by the sea.
Why are there minus values?
greetings SpeedPic32
see pictures
Once started, the value is always the same, even if I increase the temperature or pressure.
In the second picture green writing I switch off the PIC and restart it.
there are again random values that remain constant.
The average air pressure at sea level is 1013.25 hPa. a somewhat lower pressure should be displayed, as I do not live by the sea.
Why are there minus values?
greetings SpeedPic32
-
- Matrix Staff
- Posts: 1746
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 444 times
- Been thanked: 604 times
Re: Adafruit DP310 Precision Barometer
Hello,
It looks like it's never updating the variables and what you're seeing is just an uninitialised variable. Hence the fixed random value.
It was all working fine for me here with temp and pressure giving good readings but that was via the API slave interface so I was talking to the sensor via the Flowcode simulation via an Arduino Uno. I'll do a compilation test and see if I can replicate the problem you're having.
It looks like it's never updating the variables and what you're seeing is just an uninitialised variable. Hence the fixed random value.
It was all working fine for me here with temp and pressure giving good readings but that was via the API slave interface so I was talking to the sensor via the Flowcode simulation via an Arduino Uno. I'll do a compilation test and see if I can replicate the problem you're having.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Posts: 252
- Joined: Thu Dec 10, 2020 2:35 pm
- Has thanked: 36 times
- Been thanked: 17 times
Re: Adafruit DP310 Precision Barometer
hello
here is a recording of the data transmission to the sensor
greetings
here is a recording of the data transmission to the sensor
greetings
-
- Matrix Staff
- Posts: 1746
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 444 times
- Been thanked: 604 times
Re: Adafruit DP310 Precision Barometer
Hello,
Thanks for letting me know. I have replicated the issue. It works fine in API mode but not on the device itself so it's either some timing issue or a problem in the maths. I'm on with debugging it but so far no joy.
Thanks for letting me know. I have replicated the issue. It works fine in API mode but not on the device itself so it's either some timing issue or a problem in the maths. I'm on with debugging it but so far no joy.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Matrix Staff
- Posts: 1746
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 444 times
- Been thanked: 604 times
Re: Adafruit DP310 Precision Barometer
Hello,
Right I've fixed the problem and now confirmed working on both an Arduino Uno and PIC32MZ in both software I2C and hardware channels. Ended up being mainly down to a fairly obscure corner case problem to do with array sizes. One to note and lookout for in future I think.
Let me know how you get on.
Right I've fixed the problem and now confirmed working on both an Arduino Uno and PIC32MZ in both software I2C and hardware channels. Ended up being mainly down to a fairly obscure corner case problem to do with array sizes. One to note and lookout for in future I think.
Let me know how you get on.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Posts: 252
- Joined: Thu Dec 10, 2020 2:35 pm
- Has thanked: 36 times
- Been thanked: 17 times
Re: Adafruit DP310 Precision Barometer
Hello Ben
The values are coming now.
Can you add the highest level with 128 measurements and oversampling?
It would also be nice to have the interrupt possibility
How do you create or modify such a sensor file?
Could you add the interrupt option yourself?
Greetings
SpeedPic32
The values are coming now.
Can you add the highest level with 128 measurements and oversampling?
It would also be nice to have the interrupt possibility
How do you create or modify such a sensor file?
Could you add the interrupt option yourself?
Greetings
SpeedPic32
-
- Matrix Staff
- Posts: 1746
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 444 times
- Been thanked: 604 times
Re: Adafruit DP310 Precision Barometer
Hello,
Excellent, glad you're getting some sense out of it now.
The 128Hz and 128 Oversampling settings should be available already in the component properties. They can also be manually enabled during runtime by using the ConfigureTemperature and ConfigurePressure component macros.
I can make available the read/write register functions if you want to be able to do things like enable interrupt outputs. This way you can choose the specific interrupt you want to enable.
Excellent, glad you're getting some sense out of it now.
The 128Hz and 128 Oversampling settings should be available already in the component properties. They can also be manually enabled during runtime by using the ConfigureTemperature and ConfigurePressure component macros.
I can make available the read/write register functions if you want to be able to do things like enable interrupt outputs. This way you can choose the specific interrupt you want to enable.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Posts: 252
- Joined: Thu Dec 10, 2020 2:35 pm
- Has thanked: 36 times
- Been thanked: 17 times
Re: Adafruit DP310 Precision Barometer
Hello
(I can make available the read/write register functions if you want to be able to do things like enable interrupt outputs. This way you can choose the specific interrupt you want to enable.)
Please add this function
Thank you
(I can make available the read/write register functions if you want to be able to do things like enable interrupt outputs. This way you can choose the specific interrupt you want to enable.)
Please add this function
Thank you