reef-pi :: An opensource reef tank controller based on Raspberry Pi.

elysics

Valuable Member
View Badges
Joined
Jan 15, 2020
Messages
1,695
Reaction score
1,607
Rating - 0%
0   0   0
Do i have to set Celsius somewhere else too or only when setting up a temperature sensor? Because i have always immediately set it to celsius. Just redid it anyway, by deleting the sensor and setting it up again filling in all the fields, but the scale still goes to 86.

So is this a bug and supposed to work when setup as Celsius from the start? To be clear, i am not talking about the temperature graph, but the temperature line/scale in the heater/cooler graph.

Currently on Reef-Pi 3.4
 

elysics

Valuable Member
View Badges
Joined
Jan 15, 2020
Messages
1,695
Reaction score
1,607
Rating - 0%
0   0   0
On an entirely unrelated note, since reef-pi already tracks the usage of dosing pumps, can we get a capability to send an alarm/ execute a macro or something after a pump has been running for a specific time/after a specific volume?
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,682
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
So is this a bug and supposed to work when setup as Celsius from the start? To be clear, i am not talking about the temperature graph, but the temperature line/scale in the heater/cooler graph.

Currently on Reef-Pi 3.4
Its a UI bug in the chart component. Thank you for pointing it out,. i just patched it, will be fixed in next release: https://github.com/reef-pi/reef-pi/pull/1153 . Chart min/max will reflect the data min/max after this change.
 

GaryE

Well-Known Member
View Badges
Joined
Mar 12, 2020
Messages
992
Reaction score
1,321
Location
Coatesville, Indiana
Rating - 0%
0   0   0
Just built this... Prototype of a micro reefpi.

1 external temp sensor, header for sht31d or any other i2c device, two 12v pwm light channels.

Had to use that horrendous buck converters, but for this application it's fine...

Having an issue with the second light channel, but I'll figure it out eventually.

No power control on this as power will be controlled via a TP Link KP303 power strip.

IMG_20200523_215703.jpg
 

mawhins

Community Member
View Badges
Joined
Jul 4, 2019
Messages
58
Reaction score
148
Rating - 0%
0   0   0
If the temp probe has only 2 wires, it is probably a thermocouple / thermistor. Not the same as the ds18b20 that reef-pi uses.

From what I recall though, the resistance difference across a thermocouple is linear, so you might be able to set it up as a pH probe and calibrate the voltages you read from it to give you a temp reading. But I'll wait for others better schooled than me to confirm that.

Ad a look but I don't think there's any way to setup a driver for pH that reads SPI, the drivers that are there seem to use i2c. There is a digital file option but not sure how to format the file and how it would work i.e. where does it live how do you clean it up etc. Oh well guess I just buy the ds18b20, its only $15 just wanted to use the probes I had here and it was fun to get the Analogue to Digital converter running. Might come in useful somewhere down the line.
 

mawhins

Community Member
View Badges
Joined
Jul 4, 2019
Messages
58
Reaction score
148
Rating - 0%
0   0   0
Just built this... Prototype of a micro reefpi.

1 external temp sensor, header for sht31d or any other i2c device, two 12v pwm light channels.

Had to use that horrendous buck converters, but for this application it's fine...

Having an issue with the second light channel, but I'll figure it out eventually.

No power control on this as power will be controlled via a TP Link KP303 power strip.

IMG_20200523_215703.jpg
hmmm that's my next task, to pack everything into a nice little housing instead of just sitting around on an connected to breadboards by jumper cables.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,682
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Just built this... Prototype of a micro reefpi.

1 external temp sensor, header for sht31d or any other i2c device, two 12v pwm light channels.

Had to use that horrendous buck converters, but for this application it's fine...

Having an issue with the second light channel, but I'll figure it out eventually.

No power control on this as power will be controlled via a TP Link KP303 power strip.

IMG_20200523_215703.jpg
Looking good :-)
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,682
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Ad a look but I don't think there's any way to setup a driver for pH that reads SPI, the drivers that are there seem to use i2c. There is a digital file option but not sure how to format the file and how it would work i.e. where does it live how do you clean it up etc. Oh well guess I just buy the ds18b20, its only $15 just wanted to use the probes I had here and it was fun to get the Analogue to Digital converter running. Might come in useful somewhere down the line.
The file driver is pretty simple, any external program can write a value in a textfile, and reef-pi can read it and use it as analog input. File path is configured during the driver creation
 

mawhins

Community Member
View Badges
Joined
Jul 4, 2019
Messages
58
Reaction score
148
Rating - 0%
0   0   0
The file driver is pretty simple, any external program can write a value in a textfile, and reef-pi can read it and use it as analog input. File path is configured during the driver creation
Is there a particular format for the file or is it just a series of values separated by a linefeed?
 

Yov

Community Member
View Badges
Joined
May 24, 2020
Messages
51
Reaction score
44
Rating - 0%
0   0   0
Hello Ranjib, first of al thank you for al the effort you put un to this! Reef-pi sure is a great open source platform!

i updated to the 3.4 becous the humidity sensor option is what i am looking for, but,


i can not seem to get a reading on ether the temp or humidity from the I2C impout;
when i sellect the option: ph status activated. I get the error :
{"error":"stats for id: '2' not found"} | HTTP 404
{"error":"stats for id: '1' not found"} | HTTP 404


and when i sellect the option : ph status inactiv
{"error":"write /dev/i2c-1: remote I/O error"} | HTTP 404

i dubble checked the wiring and this seems fine.

Also double checked the adress of the sensor, i get a sensor on adres 44 when i use the terminal
next to the SHT31-D i only have 1 digital temperature sensor on there this works perfect.

kind regards
Yov
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,682
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Is there a particular format for the file or is it just a series of values separated by a linefeed?
just a simple text file with a single value. reef-pi will poll. that value as dictated by the check interval
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,682
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Hello Ranjib, first of al thank you for al the effort you put un to this! Reef-pi sure is a great open source platform!

i updated to the 3.4 becous the humidity sensor option is what i am looking for, but,


i can not seem to get a reading on ether the temp or humidity from the I2C impout;
when i sellect the option: ph status activated. I get the error :
{"error":"stats for id: '2' not found"} | HTTP 404
{"error":"stats for id: '1' not found"} | HTTP 404


and when i sellect the option : ph status inactiv
{"error":"write /dev/i2c-1: remote I/O error"} | HTTP 404

i dubble checked the wiring and this seems fine.

Also double checked the adress of the sensor, i get a sensor on adres 44 when i use the terminal
next to the SHT31-D i only have 1 digital temperature sensor on there this works perfect.

kind regards
Yov
Hi Yov.
Thank you for the kind words and welcome to reef2reef.
You have to provide the decimal equivalent of the hexadecimal i2c address. For me its 68. Here is an example screenshot. Make sure you enable i2c via raspi-config (or by editing /boot/config.txt)

sht31d-driver.png
 

Simonv92

Active Member
View Badges
Joined
Oct 21, 2014
Messages
163
Reaction score
104
Location
Italy
Rating - 0%
0   0   0
@Ranjib at the moment the only way to send to Reef-pi an ON/OFF input is by the Raspberry header right? there's no support for any I2C based ADC? Thank you :)

Also in the latest version I'm having troubles showing the light graph in the main page. Now I've setup only 1 jack in Interval Light mode. Output works fine but on the main page I can't show the light graph.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,682
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
@Ranjib at the moment the only way to send to Reef-pi an ON/OFF input is by the Raspberry header right? there's no support for any I2C based ADC? Thank you :)

Also in the latest version I'm having troubles showing the light graph in the main page. Now I've setup only 1 jack in Interval Light mode. Output works fine but on the main page I can't show the light graph.
The light graphs are broken since 3.0 due to significant changes in pwm profiles. 3.0 introduced a host of different pwm profiles that can be applied (including lunar, sine , random profiles...) and we didnt have enough time to implement those in the charts. 3.5 (will be released in couple of weeks) will have interval (auto), fixed and diurnal charts (its already in master, i just have to cut a release).

Currently the only i2c based ADC thats supported is the official ph driver (pico board from blueacro also utilizes an ADC based on i2c). If theres a common chip that you think will be useful for general audience, we are happy to add a driver for the same. Since 3.0 HAL inclusion, adding new driver is pretty straight forward (which is why we have now so many different types of drivers in reef-pi).
 

mawhins

Community Member
View Badges
Joined
Jul 4, 2019
Messages
58
Reaction score
148
Rating - 0%
0   0   0
The file driver is pretty simple, any external program can write a value in a textfile, and reef-pi can read it and use it as analog input. File path is configured during the driver creation
Thanks Ranjib, should the file path be absolute and from the file system's root directory?
 

Yov

Community Member
View Badges
Joined
May 24, 2020
Messages
51
Reaction score
44
Rating - 0%
0   0   0
Hi Yov.
Thank you for the kind words and welcome to reef2reef.
You have to provide the decimal equivalent of the hexadecimal i2c address. For me its 68. Here is an example screenshot. Make sure you enable i2c via raspi-config (or by editing /boot/config.txt)

reefpi.PNG


i but it in as decimal and in config i have:
"

# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=spi=on
"
and
"
dtparam=i2c_baudrate=10000
"
when i use Sudo Detect i get
sudo detect.PNG
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,682
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
reefpi.PNG


i but it in as decimal and in config i have:
"

# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=spi=on
"
and
"
dtparam=i2c_baudrate=10000
"
when i use Sudo Detect i get
sudo detect.PNG
I2cdetect shows hexadecimal address. Hence 44 in i2cdetect will become 68 (4*16 +4) in reef-pi ui,
 

Yov

Community Member
View Badges
Joined
May 24, 2020
Messages
51
Reaction score
44
Rating - 0%
0   0   0
I2cdetect shows hexadecimal address. Hence 44 in i2cdetect will become 68 (4*16 +4) in reef-pi ui,
I have a reading on humidity now! i have to chose PH status switched off and then i can select 2 point for calibration. when i calibrate i can see the readout.
1590389530648.png

but i stil get the errors and no graphs.
 

TOP 10 Trending Threads

ARE YOU READY TO CONFESS TO CRAZIEST, DUMBEST, FUNNIEST THING YOU’VE EVER DONE IN REEFING?

  • Yeah, I'll confess! (Share your story in the comments!)

    Votes: 10 58.8%
  • Nah, I'll keep mine a secret...(Don't be like that, share with the class!)

    Votes: 7 41.2%
Back
Top
Home
Post thread…
Market
What's new