Reef-Pi I2C sensor connection handling ?

Sral

Valuable Member
View Badges
Joined
May 2, 2022
Messages
1,006
Reaction score
976
Location
Germany
Rating - 0%
0   0   0
Hi everybody,

as I have already mentioned in the main reef-Pi thread: the documentation is a bit lacking, so I'll ask here:

Can reef-Pi handle I2C or SPI sensors with their custom commands and for example multiple measurement values ?
I'm thinking, for example, about this CO2, Temperature+Humidity Sensor with calibration commands. I would like to log those values with reef-pi, is that easily possible (e.g. by declaring the write/read structure in reef-Pi), or do I have to code that myself ?
 

robsworld78

Well-Known Member
View Badges
Joined
Feb 14, 2020
Messages
952
Reaction score
1,281
Location
Edmonton, Canada
Rating - 0%
0   0   0
Hi everybody,

as I have already mentioned in the main reef-Pi thread: the documentation is a bit lacking, so I'll ask here:

Can reef-Pi handle I2C or SPI sensors with their custom commands and for example multiple measurement values ?
I'm thinking, for example, about this CO2, Temperature+Humidity Sensor with calibration commands. I would like to log those values with reef-pi, is that easily possible (e.g. by declaring the write/read structure in reef-Pi), or do I have to code that myself ?
Reef-pi can handle any sensor as it has a file input driver that will import values from text file that can be used through the pH tab. If you can't edit reef-pi directly you can setup an extra script to run full time on the Pi in the background that would read the sensor and save parameter to text file so reef-pi can read it. Here's an example of how you would do such a thing.

 

Creating a strong bulwark: Did you consider floor support for your reef tank?

  • I put a major focus on floor support.

    Votes: 50 42.0%
  • I put minimal focus on floor support.

    Votes: 25 21.0%
  • I put no focus on floor support.

    Votes: 41 34.5%
  • Other.

    Votes: 3 2.5%
Back
Top