No code yet. Still mapping out the logic. Could someone tell me how to read two separate Honeywell MPRLS sensors? It looks like SparkFun_MicroPressure.h only covers reading one sensor using mpr.readPressure(). I'm not asking for specific code. Just in general how is it done? Any help is greatly appreciated.
Use digital I/O pins to select the active sensor, either by its Chip Select or bus address pin.
Hi, @boidle
Welcome to the forum.
Please read the post at the start of any forum , entitled "How to use this Forum".
This will help with advice on how to present your code and problems.
Can you please post a link to data/specs of the sensors?
Thanks.. Tom...
I assume you are using a board with the sensor on it and not just the sensor. This sensor uses an I2C interface and the I2C address is 0x18 and you can't change it!
So to read two devices you need two I2C busses.
You can add this extra capacity by using an software I2C library or by maki g or buying a bus multiplexer. This is one example.
Honeywell MPRLS0025PA00001A
Thanks. Yes, the plan is to put it on a board that the Nano is socketed into.
Sensor is available with 8 different I2C addresses, page 7 of datasheet.
MPRLS0025PA0000XA
True it says that. But any web search for MPRLS0025PA0000XA where X is replaced with the digits 0 to 7 only comes up with any results for when X is replaced by a 1.
This looks like if you are willing to order several thousand from the manufacturers they would be willing to make you a special with any of those alternative addresses. This sort of special in not unknown amongst manufacturers.
Now show us a link with anything in that final number as anything but a 1 replacing the X.
Conclusion, you can't buy them in small quantities and you can't buy a board with an alternative sensor fitted.
Good news. I found some 2A sensors at Sager. Hopefully problem solved.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.