Welcome to EnviroDIY, a community for do-it-yourself environmental science and monitoring. EnviroDIY is part of WikiWatershed, an initiative of Stroud Water Research Center designed to help people advance knowledge and stewardship of fresh water.
New to EnviroDIY? Start here

Reply To: PH Sensor Issue

Home Forums Environmental Sensors PH Sensor Issue Reply To: PH Sensor Issue

Shannon Hicks

    What pin is the sensor getting power from? If it’s the Switched 5v pin (labeled SW5), or from one of the grove terminals (assuming you’ve moved the jumper over to the 5v setting), you still need to switch on the 5V boost regulator by putting this line, preferably in your setup routine:

    digitalWrite(22, HIGH);

    The 5v boost regulator (as well as the switched 3.3v aux regulator) are not enabled unless you set pin 22 high. This is so the regulators don’t stay on all the time and waste power when the logger is sleeping between measurements. If you want to leave it on constantly, it’s easiest to put the statement above in your setup routine. If you’re making a sleeping logger, then you’ll want to set 22 high and low at different times in your loop, making sure to add sufficient time for the sensor to settle after powering up before taking a reading.