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: Water level monitor with a Mayfly.

Home Forums Mayfly Data Logger Water level monitor with a Mayfly. Reply To: Water level monitor with a Mayfly.

#1675
Richard
Participant

    Hi
    As usual Thanks for the support, I have added an RS232-to-TTL converter inline between the board and the mayfly and have had a go with the code you posted with only average success I seemed to be getting every second measurement as a 0 reading and some unreliable repeat-ability.
    As I was dubious about the cheap converter I had added to the circuit I decided to try some code that worked well as a software serial option and just turned off the software converter. It seemed to be really good so I’ll go with that. I’ll attach it below for anyone else that may be playing around with these things. I agree the other 2 sensors you mention would be better for the job but I guess I’ll make do with what I have for now.
    The example below can be used with a RS232 or TTL just by changing the true/false statement. true if you are using an RS232, false for TTL.