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: Yosemite library cant be found!

Home Forums Environmental Sensors Yosemite library cant be found! Reply To: Yosemite library cant be found!

#13673
Sara Damiano
Moderator

    It would help me to help you if you would be more verbose and detailed in your responses.

    You didn’t answer whether you, yourself, had every succeeded in communicating with the sensor in any other way.  I assume that means no.

    You’re using example code that includes code for a small screen?  Do you have one?  If not, it might be easier to use the “GetValues” example instead of the “DisplayValues” one.

    Up to now you had been telling me you were using a NodeMCU, now you’re mentioning an Arduino Mini.  Your picture looks like you’ve cobbled the two together.  Is the NodeMCU the main brain?  What does the Arduino Mini do?

    An Arduino mini can be either 5V or 3.3V.  It should be labeled on the back of the Mini – check.  The NodeMCU is always 3.3V.  The Yosemitech requires a minimim of 5V power.  Most level shifters are either labeled or have an in and out voltage based on what is connected on each side.  Trace your wires so you know what voltages you have on both sides of the shifters.  Please write it down so you and the next person the project gets dumped on will know.

    The adapter you linked, which I’m guessing is the blue board on the top right of your picture, does NOT have automatic flow control.  You must connect the DE and RE from your adapter to each other and the two of them together to some pin on your main control board.  It looks like you have at least one of them connected to D0 (or D1?), but I can’t tell if you’ve tied them together or left one floating.  If one is floating, rewire so they are tied together.  You also need to change line 35 of your code to use the correct pin, as it says in the instructions in your code.  The code you have now is not correct and would NOT work for your current setup.

    Whether or not the setup you have worked for someone else before you, it’s apparently yours now, so trace wires and make notes until you understand all of the connections.