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

Savampyre

New Member
View Badges
Joined
Jul 23, 2021
Messages
8
Reaction score
1
Review score
+0 /0 /-0
Location
Texas
If the blue wires are not showing any voltage variation then pwm is not working from pi side. Ideally it will be 0-3.3V, not 5V. You are using GPIO18 and 19?
Yes using both 18 and 19, also verified pwm is enabled (txt line added to config.txt). I'm begining to think my pi is just defective. Going to try to reload the pi with an older build to see if that makes a difference.
 
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
8,972
Reaction score
15,571
Review score
+0 /0 /-0
Location
Pleasant Hill, Concord
Yes using both 18 and 19, also verified pwm is enabled (txt line added to config.txt). I'm begining to think my pi is just defective. Going to try to reload the pi with an older build to see if that makes a difference.
Do you see the values in /sys/class/pwm file as mentioned here :https://jumpnowtek.com/rpi/Using-the-Raspberry-Pi-Hardware-PWM-timers.html if it’s there it will mean reef-pi is doing what it’s supposed to do, and it’s either the pi or wiring issue
 

stefanm

Active Member
View Badges
Joined
Oct 11, 2017
Messages
353
Reaction score
394
Review score
+0 /0 /-0
My temperature sensors are going Cuckoo, so what's the diagnosis? Bad resistor, cold solder joint for the pull down or corrupted SD card?

I've tried restarting and deleting the sensors etc.. doesn't help, it's been like this for over a week now, probably happened after a long power cut and my power backup had ran out of juice.

My temperature is in Celsius.

Screenshot_2021-07-25-00-26-57-174_com.android.chrome.jpg
 

denvereefroli

Community Member
View Badges
Joined
Jul 25, 2020
Messages
79
Reaction score
57
Review score
+0 /0 /-0
Location
Denver
Following are two images of the newer Pico tank (imagitarium 3.7 G), initially it was powered by ABI 12 W Tuna blue LED bulb, controlled using AC 100V relay, scheduled daily 10 AM -> 6 PM.
20170111_110108.jpg


And then later upgraded to Kessil A80 and controlled by PWM (from PCA9685, then boosted using ULN2803A)..


20170122_155410.jpg
I have almost exactly the same set up except I have the kessil on top of the glass. How are you suspending or attaching your kessil to the back of the tank?
 
Orphek OR3 reef aquarium LED lighting
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
8,972
Reaction score
15,571
Review score
+0 /0 /-0
Location
Pleasant Hill, Concord
I have almost exactly the same set up except I have the kessil on top of the glass. How are you suspending or attaching your kessil to the back of the tank?
that was a long long time agoe :) . I changed the aquarium with something that does not have beveled corners. I use makerbeam to build a tank fixture that supports the light
Here is how they look now.
EF5FA51D-C17D-4134-A539-06158DD173FB.jpeg


close up pico 1
88D9AE5E-304F-47BE-B67A-6A8FADEE4DD2.jpeg

Close up pico 2
2F915A4E-437F-4BDA-BACB-1C3AE403B7BC.jpeg
 

Coolhack

Community Member
View Badges
Joined
Jul 21, 2019
Messages
42
Reaction score
36
Review score
+0 /0 /-0
Location
Anywhere
that was a long long time agoe :) . I changed the aquarium with something that does not have beveled corners. I use makerbeam to build a tank fixture that supports the light
Here is how they look now.
EF5FA51D-C17D-4134-A539-06158DD173FB.jpeg


close up pico 1
88D9AE5E-304F-47BE-B67A-6A8FADEE4DD2.jpeg

Close up pico 2
2F915A4E-437F-4BDA-BACB-1C3AE403B7BC.jpeg
Hey man, get rid of the aquaclear and get the tidals, much better then aquaclear filters and cost just a hair more.
 

NXE

New Member
View Badges
Joined
Apr 8, 2020
Messages
17
Reaction score
57
Review score
+0 /0 /-0
Location
London
Hi everyone, firstly I would like to say thank you to @Ranjib for creating reef-pi and to @robsworld78 for his excellent Robo-Tank controller.

I want to give a sneak peak of a touchscreen interface that I have developed for reef-pi, which is currently running on a 5" Waveshare hdmi touchscreen attached to my Raspberry Pi 4:
1627380987944.png

1627380995443.png
1627381004341.png
1627381013416.png

1627381312393.png


The interface is written in Python and Kivy. The software can write directly to the display without needing to run X Windows, which keeps the system requirements low. I am currently polishing up the code and will then release it on GitHub.

I will be posting more details about the hardware used and the 3d printed parts on my build thread:

Happy reef-pi-ing!
 
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
8,972
Reaction score
15,571
Review score
+0 /0 /-0
Location
Pleasant Hill, Concord
Hi everyone, firstly I would like to say thank you to @Ranjib for creating reef-pi and to @robsworld78 for his excellent Robo-Tank controller.

I want to give a sneak peak of a touchscreen interface that I have developed for reef-pi, which is currently running on a 5" Waveshare hdmi touchscreen attached to my Raspberry Pi 4:
1627380987944.png

1627380995443.png
1627381004341.png
1627381013416.png

1627381312393.png


The interface is written in Python and Kivy. The software can write directly to the display without needing to run X Windows, which keeps the system requirements low. I am currently polishing up the code and will then release it on GitHub.

I will be posting more details about the hardware used and the 3d printed parts on my build thread:

Happy reef-pi-ing!
Whoa,, this is super cool, thank you so much for sharing :)
 

Schreiber

Leviathan
View Badges
Joined
Jun 28, 2016
Messages
461
Reaction score
585
Review score
+0 /0 /-0
Location
Knoxville
Hi everyone, firstly I would like to say thank you to @Ranjib for creating reef-pi and to @robsworld78 for his excellent Robo-Tank controller.

I want to give a sneak peak of a touchscreen interface that I have developed for reef-pi, which is currently running on a 5" Waveshare hdmi touchscreen attached to my Raspberry Pi 4:
1627380987944.png

1627380995443.png
1627381004341.png
1627381013416.png

1627381312393.png


The interface is written in Python and Kivy. The software can write directly to the display without needing to run X Windows, which keeps the system requirements low. I am currently polishing up the code and will then release it on GitHub.

I will be posting more details about the hardware used and the 3d printed parts on my build thread:

Happy reef-pi-ing!

That's awesome!!!

Do you have any issues using the touchscreen? I used to have a tablet by my tank I used to interact with Reef-Pi. But I found when I was using it the most, it was because I was working with my tank & my hands would tend to be wet. A quick wipe with a towel is enough to use a mouse, but even the slightest moisture on my fingers caused my tablet touchscreen to wig out.
 
Maxout

Savampyre

New Member
View Badges
Joined
Jul 23, 2021
Messages
8
Reaction score
1
Review score
+0 /0 /-0
Location
Texas
I would also recommend just unplugging all wires and test the pwm pins in isolation, it’s rare for the pi to go bad like that
First, thanks for the help thus far, sadly the issue persists...
Steps I've taken:
Reloaded the Pi with minus one release, same for reef-pi (v4.0 vs 4.1)
Double-checked all wiring and voltages etc.
Looked in /sys/class/pwm and noticed that while files are there, the error shown appears when trying to view any of the txt files.

I also updated my image with labels if that helps.

Also included is a pic of the voltage from pi-ground to PWM for both ch0 and ch1, the voltage remained the same regardless of where I moved the slider in reef-pi.
 

Attachments

  • 2021-07-27_18-14-32.jpg
    2021-07-27_18-14-32.jpg
    152.7 KB · Views: 19
  • Labeled.jpg
    Labeled.jpg
    248.3 KB · Views: 20
  • PWMV.jpg
    PWMV.jpg
    77 KB · Views: 22
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
8,972
Reaction score
15,571
Review score
+0 /0 /-0
Location
Pleasant Hill, Concord
First, thanks for the help thus far, sadly the issue persists...
Steps I've taken:
Reloaded the Pi with minus one release, same for reef-pi (v4.0 vs 4.1)
Double-checked all wiring and voltages etc.
Looked in /sys/class/pwm and noticed that while files are there, the error shown appears when trying to view any of the txt files.

I also updated my image with labels if that helps.

Also included is a pic of the voltage from pi-ground to PWM for both ch0 and ch1, the voltage remained the same regardless of where I moved the slider in reef-pi.
You can not open the file like that. It’s a sysfs thing . You can only cat it. Run cat /path/to/file from your terminal , similar to how you are looking at the log
 

Savampyre

New Member
View Badges
Joined
Jul 23, 2021
Messages
8
Reaction score
1
Review score
+0 /0 /-0
Location
Texas
You can not open the file like that. It’s a sysfs thing . You can only cat it. Run cat /path/to/file from your terminal , similar to how you are looking at the log
Got it, attached is a screenshot of the cat command on those directories and my config.txt
 

Attachments

  • 2021-07-27_20-50-02.jpg
    2021-07-27_20-50-02.jpg
    163.7 KB · Views: 16

robsworld78

Well-Known Member
View Badges
Joined
Feb 14, 2020
Messages
527
Reaction score
741
Review score
+0 /0 /-0
Location
Edmonton, Canada
Hi everyone, firstly I would like to say thank you to @Ranjib for creating reef-pi and to @robsworld78 for his excellent Robo-Tank controller.

I want to give a sneak peak of a touchscreen interface that I have developed for reef-pi, which is currently running on a 5" Waveshare hdmi touchscreen attached to my Raspberry Pi 4:
1627380987944.png

1627380995443.png
1627381004341.png
1627381013416.png

1627381312393.png


The interface is written in Python and Kivy. The software can write directly to the display without needing to run X Windows, which keeps the system requirements low. I am currently polishing up the code and will then release it on GitHub.

I will be posting more details about the hardware used and the 3d printed parts on my build thread:

Happy reef-pi-ing!
Wow very nice, I love that red background and very cool what you did with reef-pi, it has no limits, great job!
 
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
8,972
Reaction score
15,571
Review score
+0 /0 /-0
Location
Pleasant Hill, Concord
Got it, attached is a screenshot of the cat command on those directories and my config.txt
This is the unevent values , I don’t need this one I was looking for the. pwm0/duty_cycle and pwm0/period . There should be one for each channel (pwm0 and pwm1)
You have tested the pi gpio pin in isolation right ?
 
AS

NXE

New Member
View Badges
Joined
Apr 8, 2020
Messages
17
Reaction score
57
Review score
+0 /0 /-0
Location
London
That's awesome!!!

Do you have any issues using the touchscreen? I used to have a tablet by my tank I used to interact with Reef-Pi. But I found when I was using it the most, it was because I was working with my tank & my hands would tend to be wet. A quick wipe with a towel is enough to use a mouse, but even the slightest moisture on my fingers caused my tablet touchscreen to wig out.
Thanks Schreiber! Btw, I also have one of your leviathan boards, which I plan to put into service on another tank at some point...

I am using a resistive touchscreen (most of the small cheap touchscreens are resistive) which handles wet fingers better than capacitive displays. It also came with a small stylus which is useful in these situations. My goal was to deal with exactly the scenario you describe – when I am working on my tank I often need to turn off my skimmer or trigger a water change macro and it is a pain to have to pull out my phone and try to get the finger print sensor to recognise my moist fingers.

This is the touchscreen I am using:
 
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
8,972
Reaction score
15,571
Review score
+0 /0 /-0
Location
Pleasant Hill, Concord
I love these icons so much. I hope we can draw some inspiration on the main web ui. We have icon library already integrated, we have to do the work for assigning and showing the approriate icons in proper views (mobile , tablet etc ) . The form factor for the touch screen or mechanical buttons have no match
 

Savampyre

New Member
View Badges
Joined
Jul 23, 2021
Messages
8
Reaction score
1
Review score
+0 /0 /-0
Location
Texas
This is the unevent values , I don’t need this one I was looking for the. pwm0/duty_cycle and pwm0/period . There should be one for each channel (pwm0 and pwm1)
You have tested the pi gpio pin in isolation right ?
Pardon my ignorance, an absolute novice here. Yes, I even tried bridging in the old controller board (ie only using the Pi's PWM output to the light's PWM input. Attached is the cat for the two channels at 100 and at 10%.

2021-07-28_19-21-08.jpg
 

Savampyre

New Member
View Badges
Joined
Jul 23, 2021
Messages
8
Reaction score
1
Review score
+0 /0 /-0
Location
Texas
This is the unevent values , I don’t need this one I was looking for the. pwm0/duty_cycle and pwm0/period . There should be one for each channel (pwm0 and pwm1)
You have tested the pi gpio pin in isolation right ?
Ok quick update, having the right tools makes a world of a difference. I picked up a cheap o-scope and found the culprit, the viparspectra controller is running at a different frequency than the pi. The new question is how do I make the pi match the original controller?
 

Attachments

  • FromPi.jpg
    FromPi.jpg
    117.3 KB · Views: 12
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
8,972
Reaction score
15,571
Review score
+0 /0 /-0
Location
Pleasant Hill, Concord
Pardon my ignorance, an absolute novice here. Yes, I even tried bridging in the old controller board (ie only using the Pi's PWM output to the light's PWM input. Attached is the cat for the two channels at 100 and at 10%.

2021-07-28_19-21-08.jpg
Ok , so the pi pwm is working as expected, at least the linux sysfs side of thing is fine. You checked the pw output in isolation? like with scope or multi meter? Also, can you please start a separate thread.? lets leave this main thread for general discussion
 
Aquarium Specialty - dry goods & marine livestock

Do you house a "Reef Safe" Angelfish in your reef tank?

  • YES and it's going good

    Votes: 166 41.3%
  • YES but it's not working out

    Votes: 12 3.0%
  • NO I have tried it in the past and it didn't work out

    Votes: 35 8.7%
  • NO I haven't tried yet

    Votes: 175 43.5%
  • Other (please explain)

    Votes: 14 3.5%
Buckeye
Top