Welcome to EnviroDIY, a community for do-it-yourself environmental science and monitoring. EnviroDIY is part of WikiWatershed, a web toolkit designed to help citizens, conservation practitioners, municipal decision-makers, researchers, educators, and students 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

#15620
Shannon Hicks
Moderator

I’d have to see the rest of your sketch to know what you’re trying to accomplish with the 5v output.  If you put the CTD sensor on the D4-5 jack, and move the jumper to constant 3.3v, then the SDI12 power pin part of the code doesn’t really matter, but that kind of stuff gets declared early in sketch, usually in the setup function.  The bigger problem will be if you’re trying to keep a 5v output line powered after you take a reading and the logger goes to sleep, because normally the logger shuts down all the pins before going to sleep between readings.