Comments (1)
Okay... I found where the problem is on my end so this is probably not an issue with the library!
After an extensive troubleshooting session, I decided to just dump the raw register values from both sides. The short answer is that they are very different until I change the I2C speed on the ESP32-C3 side. The values fall in line somewhere between 70-80kbits. For some reason, the sensor was partially functional above 80kbits. It had a valid I2C address so I assumed everything was good to go! It would report a pressure increase but the value rollover was so strange. So it seems to be an issue on my end.
Just thought I'd post in case someone wanted to know.
----80 kbits---
02:08:48.957 -> 0
02:08:49.035 -> 4207561 <--Raw pressure data should be around 6465444 typical from the datasheet!
02:08:50.020 -> 0181C178100138000000000000000000 <--Calibration register.
02:08:50.020 -> 0
02:08:50.098 -> 4207393
02:08:51.094 -> 0181C178100138000000000000000000
02:08:51.094 -> 0
02:08:51.141 -> 4207603
02:08:52.167 -> 0181C178100138000000000000000000
02:08:52.167 -> 0
02:08:52.207 -> 4207423
02:08:53.226 -> 0181C178100138000000000000000000
---70 kbits---
02:09:59.529 -> 0
02:09:59.576 -> 6569216 <--Correct value!
02:10:00.604 -> 01D1E97C5A813C000000000000000000 <--Calibration register.
02:10:00.604 -> 0
02:10:00.651 -> 6569337
02:10:01.659 -> 01D1E97C5A813C000000000000000000
02:10:01.659 -> 0
02:10:01.705 -> 6569187
02:10:02.726 -> 01D1E97C5A813C000000000000000000
02:10:02.726 -> 0
02:10:02.760 -> 6569158
02:10:03.759 -> 01D1E97C5A813C000000000000000000
from bluerobotics_ms5837_library.
Related Issues (20)
- Library compiling error. constexpr does not name a type HOT 4
- Add oversampling setting adjustment HOT 6
- expected ')' before numeric constant
- expected ')' before numeric constant HOT 4
- Library should do tests and add warning messages if something goes wrong
- Add license HOT 1
- Arduino Due - MS5837 help
- Newest commit is not reflected in the arduino library manager HOT 2
- CRC Calculation Function HOT 2
- Library does not compile for certain newer Arduino targets HOT 1
- I2C doesnt work
- Allow setting the ground level atmospheric pressure HOT 2
- Only 7 prom registers HOT 2
- Is altitude dependent on barometric pressure HOT 3
- Bug: MS5837_30BA26 300 bar sensor detected as 2 bar sensor
- Arduino library appears twice
- Not getting valid data. HOT 2
- Mbar resolution HOT 2
- Printing 'here' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bluerobotics_ms5837_library.