- Joined
- Apr 11, 2019
- Messages
- 71
- Reaction score
- 137
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Send [email protected] an email. He will get you all hooked up.[emoji17]
Quite likely. It’s possible the kernel driver gets in a weird state, hence the invalid argument error. The various knobs have to be knobbed in a specific order.
If you get in the state, try rebooting the whole Pi (reboot, not reload).
So, if I use a pca9685 board would I have 16 channels? and if I use the native I will only have 2?If I remembered @Ranjib made some updates to correct the issues @Bigtrout was seeing with the
PCA9685 pwm, which fixed those issues. I suspect something broke for the native rpi pwm, I'm running 2.2 and it works fine and never rolled to 2.3 since everything was working fine. I think the thing to call out is if using the pca9685 you probably want to use 2.3 and if using native rpi pwm use 2.2.
I was almost going to suggest that this weekend but didn't really think it would make a difference.
That is correctSo, if I use a pca9685 board would I have 16 channels? and if I use the native I will only have 2?
@Ranjib@theatrus ^^ I suspect reef-pi/rpi pwm changes
EZO pH sensor is supported already. I felt the EC/Salinity sensor is not so important, given ATO is in place. Though it was not planned, I am actually working on getting the DO sensor support, because some folks in University of Alabamae is using reef-pi to monitor some experiments, they need it and I would love to support them.@Ranjib
Have you thought as well as the pH sensor add to monitor salinity? using the module EC EZO
https://www.amazon.com/Atlas-Scient...KP7WS0TY24Y&psc=1&refRID=FHNE50G7VKP7WS0TY24Y
Oooh, maybe Reef-Pi will be listed in future journals under methodology! Thanks for making an effort to help the university!EZO pH sensor is supported already. I felt the EC/Salinity sensor is not so important, given ATO is in place. Though it was not planned, I am actually working on getting the DO sensor support, because some folks in University of Alabamae is using reef-pi to monitor some experiments, they need it and I would love to support them.
GreatEZO pH sensor is supported already. I felt the EC/Salinity sensor is not so important, given ATO is in place. Though it was not planned, I am actually working on getting the DO sensor support, because some folks in University of Alabamae is using reef-pi to monitor some experiments, they need it and I would love to support them.
EZO pH sensor is supported already. I felt the EC/Salinity sensor is not so important, given ATO is in place. Though it was not planned, I am actually working on getting the DO sensor support, because some folks in University of Alabamae is using reef-pi to monitor some experiments, they need it and I would love to support them.
So I took some time and figured out how to use regular float switches in a simple fashion using the built in pi resistors. This makes me happy because I don't have to have extra wiring and soldering tasks when adding a bunch of switches, and I don't have to pay for something I already bought. So to get regular float switches (or any switches for that matter) working safely you can do this...
Step A) create a python script to control the pull up resistance. From the terminal...
sudo nano switches.py
Code:#switches.py import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setup(21, GPIO.IN, pull_up_down=GPIO.PUD_UP) GPIO.setup(20, GPIO.IN, pull_up_down=GPIO.PUD_UP) GPIO.setup(16, GPIO.IN, pull_up_down=GPIO.PUD_UP)
ctrl+X > Y > <enter>
Step B) make the file executable...
sudo chmod 755 switches.py
Step C) make the script run at startup by adding a line just before "exit" in rc.local (note: the python start command must point to the directory from root /...
sudo nano /etc/rc.local
Code:sudo python /home/pi/switches.py &
ctrl+X > Y > <enter>
Step D) Restart or Reboot
sudo reboot
Step E) Plug your float switch wires into the GPIO. One wire to Pi header connected Ground, and one to the GPIO you used in switches.py
Step F) Check to see if your script is running...
ps -aef | grep python
Step G) Designate those pins in Reef-Pi to inlets/ATO for your application.
Hope this helps, working for me here.
#ATOfloat1.py
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setup(21, GPIO.IN, pull_up_down=GPIO.PUD_UP)
while True:
input_state = GPIO.input(21)
if input_state == False:
print ('ATOtank Fill')
time.sleep(10)
I am curious if something like a schmitt trigger will work in this type of scenarios.After doing some wire management I was having trouble stabilizing the Float Switch signal after reconnecting. There was some bouncing going on with the switches it seemed that would keep the switches always on, so I've added a software time mechanism to clear that up. I've also changed to having a python script for each float switch to keep things clean and easy. So a script for ATOfloat1.py, ATOfloat2.py, ATOfloat3.py, etc. Then add the scripts to rc.local again to start on boot. The new scripts look like this...
Code:#ATOfloat1.py import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setup(21, GPIO.IN, pull_up_down=GPIO.PUD_UP) while True: input_state = GPIO.input(21) if input_state == False: print ('ATOtank Fill') time.sleep(10)
In the code example there the float is connected to GPIO 21. Also there's a print command to see if it's working in the terminal. Hope this helps if anyone has issues where everything looks like it should be working, but the switches just wont turn off due to bouncing.
Although i can connect to reef pi's Web UI using my PC I cant seem to be able to connect to it using my phone ? .... (i am on the same local network (wifi) when i try all of this )
With my previous and new android phones i can always connect thru the IP address. For some reason my androids dont like the .local after the name so if i type 75gallon.local it does not work. If i just type 75gallon it lets me connect.It's ok I've answered my own question ... for some reason my phone didn't like Reef-pi having a host name ... it connected fine once i reverted back to using an IP address
if i type 75gallon.local it does not work. If i just type 75gallon it lets me connect.