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: How to get a 5V signal out based on a sensor reading

Home Forums Mayfly Data Logger How to get a 5V signal out based on a sensor reading Reply To: How to get a 5V signal out based on a sensor reading

#15621
Charitha (CJ)
Participant

    Basically trying to control flow through an outlet of a bioswale. The algorithm for control is attached as a diagram (I have written this in python and campbell coding but yet to do in C++). I’ve attached the .ino file I’m playing around with as well. The decagon CTD sensor is connected to D4-5 and I’m trying to get a 0-5V signal out from D10-11 as you suggested. And yes I need to maintain a 5V signal between sensor readings to keep the valve open according to the algorithm. I hope this clarifies what I’m trying to do.