I write a library for that sensor MS5541, it's similar to the MS5803 breakout by sparkfun, but this one use SPI bus, and also you can find a 30bar version. (I'm not able to find the 30 bar version of MS5803 I2C).
However you can find all in attachments. If you find some error or bug please report that and i will try to fix it :).
I'm trying to use your library with my MS5541, and if there is nothing other spi component it's works fine ! ... but if I put an other isp component (tft screen) the MS5541 don't works ... and my tft screen too !
I write a library for that sensor MS5541, it's similar to the MS5803 breakout by sparkfun, but this one use SPI bus, and also you can find a 30bar version. (I'm not able to find the 30 bar version of MS5803 I2C).
However you can find all in attachments. If you find some error or bug please report that and i will try to fix it :).
Hi, I ported your library for use with both the MS5535C and MS5541. MS5535 uses slightely different final calculation of the pressure.
Same it was adapted for use on Teensy 3.1. Needs different MCLK signal creation.
You need to setPressureSensorType() in Void Setup() to define the type of sensor you are using. See in examples.
I'm trying to use your library with my MS5541, and if there is nothing other spi component it's works fine ! ... but if I put an other isp component (tft screen) the MS5541 don't works ... and my tft screen too !
The problem is only software ...
Have you any ideas to fix my problem ?
Hatoupix
Hi, you need to use tristate buffer as sensor does not have a Chip select pin.
75HC1G125 works just fine.
I was about to start a very long script and you saved me hours of work!! thanks a lot!
Quick question, how often can I pull temp and pressure values? In your example you have a 2000ms (2s) wait time after the demo, but I will use it for a depressurizing system and need to get as many data points as possible. The entire process I will use it for will take less than 5s.
I'm waiting for the sensor to be delivered so I won't be able to test the limits for a couple of days but i wanted to get ahead start preparing the script.
Please let me know if you have any suggestions, and again thanks for the library
cgirongu:
I was about to start a very long script and you saved me hours of work!! thanks a lot!
Quick question, how often can I pull temp and pressure values? In your example you have a 2000ms (2s) wait time after the demo, but I will use it for a depressurizing system and need to get as many data points as possible. The entire process I will use it for will take less than 5s.
I'm waiting for the sensor to be delivered so I won't be able to test the limits for a couple of days but i wanted to get ahead start preparing the script.
Please let me know if you have any suggestions, and again thanks for the library
Sorry saw this only now... you can pull them continuaously .... loop without delay...