Reef-Pi I2C sensor connection handling ?

  • Thread starter Thread starter Sral
  • Start date Start date
  • Tagged users None

Sral

Valuable Member
View Badges
Joined
May 2, 2022
Messages
1,006
Reaction score
978
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 ?
 
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.

 

IF YOU HAD TO TAKE A REEFING EXAM, WOULD YOU PASS?

  • Yes!

    Votes: 32 45.7%
  • Not yet, but I have one that I want to buy in mind!

    Votes: 9 12.9%
  • No.

    Votes: 26 37.1%
  • Other (please explain).

    Votes: 3 4.3%
Back
Top