-
-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
possible to add PH_meter(SKU__SEN0161) and HC-SR04-Ultrasonic-Sensor ? #87
Comments
Thanks for the compliment. Regarding the hardware. The Ph probe is an analog device which can't be readout by a Pi directly. So that needs an analog board in between. I am working on this, but it has a very low priority now. The level sensor is something that could be easy added. But then the question rises what do you want to do with it? It does measure a distance. But does it need some kind of alarms? But you could also think of something that trigger a water pump to fill tanks. That needs more data and actions. Also that needs some insurance it will not overflow etc... So I will look into the level sensor, but the Ph probably not or somewhere this year. The analog part makes it also a bit harder to support. It needs more technical and electronic skills on a Pi. |
775/5000 The PH probe is not a priority for me at this time and if somehow I can help I would love it;) The level sensor meanwhile, my goal is to effectively calculate the water level available in the tank, past an alert threshold that I determined, the ideal yes would be to fill automatically via a pump perilstatique from a tank Reserve. I would pair it with an overflow sensor placed directly into the sensor aquarium that has a waterproof float (on / off) for safety. and which would disable the pump when the float determines the required height. I'm still working on the best couple hc-sr04 or only the level sensor in concert with a pump |
It depends on how accurately you want to stop the pump at a given water level. You might be better to have 2 independent ultrasonic level sensors. The reason being you can see that both sensors are operating as expected. A float switch you don't know if its working. (this is a common control philosophy for modern oil & gas facilities). I am guessing that the reservoir is small enough that if the tank reserve is accidentally pumped out in its entirety that nothing bad will happen? I have not personally looked into the accuracy or details of the ultrasonic meters you propose and don't know the details of your setup. Just some food for thought! |
I'd love to see something like the ultrasonic level sensor as well. I'm currently using the software for controlling a small indoor greenhouse. An ultrasonic sensor could be used to track the growth of plants. In any case, if something like this is going to be implemented. It would be useful to be able to add a constant or a multiplication (*-1) to the measured data before it is plotted. That way users can manipulate the measurements to convert the values to remaining litres of water or total plant height. |
I will add support for the ultrasonic level sensor. But I think I will implement on a more generic way. First it will be just a new kind of sensor. The problem I have a bit with measuring plant height is that is probably inaccurate due to leafs. Also to know the height of the plant, there are more values needed. Like the height of the sensor. Else you cannot calculate the height. Because I measure distance from sensor to first object. But you can still track the growth speed. Everyday the distance will be shorter, and that difference can be logged and graphed. Also mixing this sensor with a switch kind sensor is harder to make. And because the heater, and cooler work already on the min and max values. So that is easier to expand. |
Ultrasonic sensor is ordered... |
Update: Followed: https://www.modmypi.com/blog/hc-sr04-ultrasonic-range-sensor-on-the-raspberry-pi Used 10K and 4.7K Ohm resistors in stead of 1K and 2K. Does work. Test code is working.... So I hope to have an early test version in a few days |
Hello, great job and thanks for following yosh :) |
Hello ;) I have a basic python script from modmypi and when I run it it gives me the distance. I'm looking for but I'm drying on this error :( in the settings if I put a hadwaretype other than hc-sr04, the ./start works and starts the application .. [Sensora4bfa7ca2c856bbccdbc39eff0102ecb] |
Ah sorry, need to mention. Using this setup: https://www.modmypi.com/blog/hc-sr04-ultrasonic-range-sensor-on-the-raspberry-pi Enter the value of TRIG,ECHO in the interface. It needs two GPIO ports to work on |
Perfect, the magic comma :) thx a lot yosh |
It does need some update in the documentation about this... :P |
in the log i've got always this error ; UnboundLocalError: local variable 'pulse_start' referenced before assignment Any suggestion ? knowing that my achievement is consistent with yours;) |
sounds like you are measuring a small distance? |
Everything is ok now ;) |
Ok... I will close this issue, and continue on the other one for the PH sensor. |
Hi @nke69 I had to rewrite this code part, so could you do a test for me? Check out the latest master branch and see if your PH values are still correct and working? To get the code easier to read and work with, I have rewritten all the sensor code. And your PH sensor is the only sensor I cannot test myself. |
hello, no problem I will test tomorrow because I have to put my probe on the raspberry that crashed :) " just after distance, otherwise the remote capture of the pH did not work |
Hi, Just tested now .. everything appear normal .. same pH on Raspberry and on Arduino ;) |
Cool. I updated the code for remote Ph as mentioned by you above. So then this is all fine again. Thanks for testing! |
Good morning,
First and foremost thanks for this fantastic job that you made us enjoy;)
I modify it a little bit according to my needs as a freshwater aquarist :) I realize the French translation but it takes a little time.
I would like to add a PH probe like this but is it compatible with TerrariumPi?
here is his info: https://github.com/jimaobian/DFRobotWiki/wiki/PH_meter(SKU__SEN0161)
And secondly, I would like to add an ultrasonic level sensor (http://www.instructables.com/id/HC-SR04-Ultrasonic-Sensor-With-Raspberry-Pi-2/) but will he also be recognized by the program?
Thanks in advance,
nke69.
The text was updated successfully, but these errors were encountered: