It was the easiest way to get an editable project page, since I can’t do that here. At least not yet ^^Why did you put this on a git repository?
@Ranjib already built the code you are using, are you expecting to fork his code and do your own?
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.
It was the easiest way to get an editable project page, since I can’t do that here. At least not yet ^^Why did you put this on a git repository?
@Ranjib already built the code you are using, are you expecting to fork his code and do your own?
Still don't understand the need for this on here either. There's an edit button in the post, don't post until you are ready.It was the easiest way to get an editable project page, since I can’t do that here. At least not yet ^^
Not quite sure what you are saying in that first sentence.Still don't understand the need for this on here either. There's an edit button in the post, don't post until you are ready.
I think your method using the BSS138 is better especially as you have it working with the DS18B20, I think the voltage divider with the resistors messes up the DS18B20 but I said that about the level shifter. Previously I was going to mention trying a strong pulldown resistor over 10k as I've noticed when doing something like this the stronger resistor usually wins but probably not very efficient or correct. Good luck.Alright, set everything up again and tested the flow meter directly on the level shifted input. It works better and exactly like I thought:
The flow meter sensor line is pulled up with a resistor, that gets pulled down by a kind of FET when it does not detect a magnetic field.
My level shifted line is basically a pulled up line with two 10k resistors, one to 3.3V and 5V each, as mentioned before. When I connect that to the Flow meter the signal line gets pulled down to something like 1.2-1.7V. Maybe that's due to wire and contact resistance limiting the pull-down over the contacts and long wire connecting my circuit with the flow sensor.
I'll try to measure and reduce contact resistance. Another funny thing: when I measure the voltage with a voltmeter, the moment of contact creates enough voltage drop to be registered by the PI as LOW and consequently leads to some flow being registered. So maybe I just need to add some 20k pull-down resistor and the flow will register fine.
Ultimately I may just go down the route @robsworld78 suggested: simply use a GPIO pin and drop the 5V to 3.3V using a resistor bridge ^^
Thanks ! The 10k pull down might actually be a good idea, that would pull the line from 5V down to 3.3V, since both the sensor and the level shifter have a 10k pull up. Just measured that with a multimeter. So I have an effective 5k pull up, so adding a 10k pull down drops the voltage to:I think your method using the BSS138 is better especially as you have it working with the DS18B20, I think the voltage divider with the resistors messes up the DS18B20 but I said that about the level shifter. Previously I was going to mention trying a strong pulldown resistor over 10k as I've noticed when doing something like this the stronger resistor usually wins but probably not very efficient or correct. Good luck.
Right on, glad to hear you got it working with the BSS138. I have that Adafruit flow meter, I think it works the same. Good luck!Alright, removed the series resistor from the flow meter's signal cable. Afterwards the sensor pulls the signal line perfectly to 0.0 V and gives 2.5V DC when I generate some flow in my flow sensor.
Testing with Reef-Pi and @robsworld78 's flowmeter script again shows nice flow, when I simulate flow by blowing some air through the backup flow meter:
So success !
Flow meters, at least the Seedstudio one I have as a backup, have an internal 10k pullup between signal and VCC and the sensor pulls this down with a FET whenever it doesn't detect a magnetic field. You can therefore directly plug the signal line into the BSS138 level shifter and measure it on the PI.
Now I have to hope that the one I already built into my filter line (an Adafruit one) works the same ^^
Next up: testing the Ph meter and all the other I2C devices.
Nice job, glad it was useful, I much prefer c++, me and python don't get along.Alright, I patched a c++ program together using @robsworld78 's pH script and some code on the SCD30 I found on GitHub.
Took a bit of time, but now I get a CO2-value (currently uncalibrated):
Now I just need to adapt that to give all the values and save that to a file using @robsworld78 's flowMeter script and I'm good to go. I hope you don't mind that I'm scavenging your code ^^
It was the easiest and cleanest way, I could have used python, but that needs additional installs and packages, so I went with this.
niceAlright, I patched a c++ program together using @robsworld78 's pH script and some code on the SCD30 I found on GitHub.
Took a bit of time, but now I get a CO2-value (currently uncalibrated):
Now I just need to adapt that to give all the values and save that to a file using @robsworld78 's flowMeter script and I'm good to go. I hope you don't mind that I'm scavenging your code ^^
It was the easiest and cleanest way, I could have used python, but that needs additional installs and packages, so I went with this.
NiceAlright, I managed to almost complete the control program to communicate Settings to the SCD30 from command line.
I’ll finish that soon and put it up on GitHub. I used @robsworld78‘s install script and the crc calculation and byte conversion from somebody else’s SCD30 library, so I’ll have to think about the license.
If possible I’ll simply use the standard Apache license that rob used as well, since this isn’t really my own product, just a simple interface.