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

OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Has anyone messed around with ngrok or thought about making a reefpi plugin for it? I was setting up my octopi and ran across an article for accessing it from outside the network. Rather than forwarding ports ngrok establishes a secure tunnel. A single session account is free and you don’t have to forward any ports in your router. You access it from their cloud account. It was easy to setup in octopi because it has a plug-in.
You can use ngrok out of band (i.e you have to set it up by yourself) with reef-pi but nothing I am aware of that makes it work straight from reef-pi. reef-pi is way smaller in terms of features compared to octopi. Gina (octopi author) is a gifted programmer who dedicated his full-time work on octoprint. Its an amazing piece of software and one of the inspirations for reef-pi. reef-pi does not have the plugin like design that octopirnt has. One day..... :-)
 

theatrus

Valuable Member
View Badges
Joined
Mar 26, 2016
Messages
2,253
Reaction score
3,603
Location
Sacramento, CA area
Rating - 0%
0   0   0
Octopi is raspbian OS derivative with baked in octoprint (3d printer web UI). I prefer to use octoprint straing on whatever the current raspbian/raspberry os is.

I was confused what pritning had to do with anything when googling - makes sense :)
 

b4tn

Valuable Member
View Badges
Joined
Jun 17, 2015
Messages
1,679
Reaction score
2,227
Location
Columbia MD
Rating - 0%
0   0   0
Sorry for the confusion. I will have to play with it some more. I was having issues installing it on my reefpi. I discovered ngrok while I was installing octopi for my printer.
 

theatrus

Valuable Member
View Badges
Joined
Mar 26, 2016
Messages
2,253
Reaction score
3,603
Location
Sacramento, CA area
Rating - 0%
0   0   0
Sorry for the confusion. I will have to play with it some more. I was having issues installing it on my reefpi. I discovered ngrok while I was installing octopi for my printer.

No harm, sounds like a good baseline Raspbian install. Also, totally in favor of using ngrok, and its a very good callout :)
 

drm2215

New Member
View Badges
Joined
Sep 14, 2020
Messages
23
Reaction score
9
Location
Chicago
Rating - 0%
0   0   0
Hello Reef-Pi folks,
I am running Reef-Pi 4.0 on a Robo-tank board and I am having trouble with my temp sensors. I have 5V at the 5V pin, and 3.25V at the Data pin on all temp sensors, but when I connect a sensor it is not detected? When I go to the temperature page and try to add a new temp sensor nothing is available under sensors. I have tried 3 different kinds of sensors, all of which I have seen work on other setups. Any suggestions?

Thanks
 

Sarlindescent

Active Member
View Badges
Joined
Dec 26, 2015
Messages
145
Reaction score
140
Rating - 0%
0   0   0
Hello Reef-Pi folks,
I am running Reef-Pi 4.0 on a Robo-tank board and I am having trouble with my temp sensors. I have 5V at the 5V pin, and 3.25V at the Data pin on all temp sensors, but when I connect a sensor it is not detected? When I go to the temperature page and try to add a new temp sensor nothing is available under sensors. I have tried 3 different kinds of sensors, all of which I have seen work on other setups. Any suggestions?

Thanks
I haven't gotten to this part yet, but my understanding is for the temp sensors, there is ground, power (3 or 5 volt), and a data gpio. 2 power cables would have no data pin to send the temp to.
 

drm2215

New Member
View Badges
Joined
Sep 14, 2020
Messages
23
Reaction score
9
Location
Chicago
Rating - 0%
0   0   0
I haven't gotten to this part yet, but my understanding is for the temp sensors, there is ground, power (3 or 5 volt), and a data gpio. 2 power cables would have no data pin to send the temp to.
Sorry if I was unclear. I have a three wire sensor, with ground , 5V, and data. And when I put a meter on my board pins, I Have 5V on the 5V pin, 3.25V on the data pin (expected as I understand it) and then the ground pin. I use this to verify that my soldering is good and that the board is operating correctly. I am trying to get it to recognize a sensor but nothing is showing up?
 

Sarlindescent

Active Member
View Badges
Joined
Dec 26, 2015
Messages
145
Reaction score
140
Rating - 0%
0   0   0
Sorry if I was unclear. I have a three wire sensor, with ground , 5V, and data. And when I put a meter on my board pins, I Have 5V on the 5V pin, 3.25V on the data pin (expected as I understand it) and then the ground pin. I use this to verify that my soldering is good and that the board is operating correctly. I am trying to get it to recognize a sensor but nothing is showing up?
If you swap the 3v to gpio 17 or any of the gpio pins per the mapping below, it should work. The open gpio pins (non power/ground) are for sending data.
GPIO-Pinout-Diagram-2.png
 

AbjectMaelstroM

Valuable Member
View Badges
Joined
Jul 21, 2019
Messages
1,535
Reaction score
1,709
Location
RVA
Rating - 100%
1   0   0
Sorry if I was unclear. I have a three wire sensor, with ground , 5V, and data. And when I put a meter on my board pins, I Have 5V on the 5V pin, 3.25V on the data pin (expected as I understand it) and then the ground pin. I use this to verify that my soldering is good and that the board is operating correctly. I am trying to get it to recognize a sensor but nothing is showing up?
Is one wire enabled?
 

drm2215

New Member
View Badges
Joined
Sep 14, 2020
Messages
23
Reaction score
9
Location
Chicago
Rating - 0%
0   0   0
If you swap the 3v to gpio 17 or any of the gpio pins per the mapping below, it should work. The open gpio pins (non power/ground) are for sending data.
GPIO-Pinout-Diagram-2.png
I am using a Robotank hat for my Reef-Pi so the GPIO wiring happens in the circuit board. Thanks for the suggestion.
 

BenB

Active Member
View Badges
Joined
Jun 11, 2019
Messages
118
Reaction score
152
Rating - 0%
0   0   0
I am using a Robotank hat for my Reef-Pi so the GPIO wiring happens in the circuit board. Thanks for the suggestion.
Standard gpio pin for the temp sensor is gpio 4. If you want to use an other pin that is possible only you will need to update a file in rasbian os. If you Google it you will find it.
 

Sarlindescent

Active Member
View Badges
Joined
Dec 26, 2015
Messages
145
Reaction score
140
Rating - 0%
0   0   0
Slight update on my build. Still waiting on USPS to deliver the last item so I can hook up the ph probes... built a custom wire harness to clean things up and a power and ground distribution hub (picture was before I fixed a couple solders). Also for the ds18b20 probes, the wires were 28 guage. Most common wire strippers don't go that low.

20210105_173612.jpg

20210108_230634.jpg

Before harness
20210109_183241.jpg

After
20210110_180024.jpg


Additionally, I am looking for usb powerbank with a pass through to act as a UPS. Any recommendations? If not, the wire harness was designed to free up the pins for a pre-built pi UPS.
 

FuzzeWuzze

Community Member
View Badges
Joined
Nov 9, 2020
Messages
28
Reaction score
29
Location
Newberg
Rating - 0%
0   0   0
Is there a reason i cant set timers > 60 minutes? My fuge light auto has a timer built in, but it resets if the power turns off...so i just want to control its on/off via ReefPi and turning the outlet off at 7am and on at 7pm but i cant? Is there another way other than timers?
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
@Ranjib and the other contributors, instead of complaining about yet another problem, for a change I just want to say that all the work you do here is appreciated and a great help controlling tanks.
Thank you so much for the kind words. This means a lot to us. Your support and enthusiasm is what keeps the project going :-)
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Hello Reef-Pi folks,
I am running Reef-Pi 4.0 on a Robo-tank board and I am having trouble with my temp sensors. I have 5V at the 5V pin, and 3.25V at the Data pin on all temp sensors, but when I connect a sensor it is not detected? When I go to the temperature page and try to add a new temp sensor nothing is available under sensors. I have tried 3 different kinds of sensors, all of which I have seen work on other setups. Any suggestions?

Thanks
Ds18b20 is 3.3v based, not 5v
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Sorry if I was unclear. I have a three wire sensor, with ground , 5V, and data. And when I put a meter on my board pins, I Have 5V on the 5V pin, 3.25V on the data pin (expected as I understand it) and then the ground pin. I use this to verify that my soldering is good and that the board is operating correctly. I am trying to get it to recognize a sensor but nothing is showing up?
Are you using ds18b20 sensor ? Can you share some pics and configuration details ? Check dmesg output for any errors that Linux kernel might be showing, they should have words “one wire “ or “w1”
 

TOP 10 Trending Threads

WHAT AMOUNT OF LIVE ROCK AND SAND SHOULD BE PRIORITIZED FOR OPTIMAL BIODIVERSITY/FILTRATION?

  • 100% live rock + bagged sand

    Votes: 38 27.1%
  • 100% dry rock + 100% live sand

    Votes: 47 33.6%
  • 50/50 live/dry rock, 50/50 live/bagged sand

    Votes: 31 22.1%
  • 75% live rock, 25% live sand

    Votes: 14 10.0%
  • 25% live rock, 75% live sand

    Votes: 10 7.1%
Back
Top