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

Deppi

Forum Replies Created

Viewing 10 posts - 1 through 10 (of 12 total)
  • Author
    Posts
  • in reply to: Yosemite library cant be found! #13716
    Deppi
    Participant

      I found the issue with the help of a friend. It doesnt work with some board versions. Got it to work with esp8266 version 2.5. The only one ive tested that works but my friend told me that atleast 2 more works. Will update witch ones working!

      in reply to: Yosemite library cant be found! #13699
      Deppi
      Participant

        Do you have any idea what could be the issue? Thanks

        in reply to: Yosemite library cant be found! #13693
        Deppi
        Participant

          I just get 1byte but sometimes i get 2, the read too 0x03. So i dont really know whats wrong now lol.

          in reply to: Yosemite library cant be found! #13691
          Deppi
          Participant

            Thank you very much! I got it to connect but reciving 1 bytes because of (CRC of response is not correct!)

            Probably just me doing something wrong with delays!

            in reply to: Yosemite library cant be found! #13678
            Deppi
            Participant

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

              Yeah sorry about that will try to answer better. Im really appreciative about your help!

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

              Yes you are right. Ive never done a sucssesfull communication with the sensor. I just get no response.

              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.

              Yes i got a small screen to show me the values.

              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?

              The arduino mini is just for mfrc and giving voltage to the sensor. Also ground.

              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.

              De and re is solder’d togheter and connected to D0. But if i try to use D0 in the dere in the code i just get error (28) and the screen wont load.

              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.

              I think i understand all the connections now. The picture i attached is one of the sensors that i took apart so see were everything sits.

              in reply to: Yosemite library cant be found! #13657
              Deppi
              Participant
                •  

                  Are you using breadboards or have you made a custom circuit of some kind? Post a picture.

                Yes i put it in.

                • By what is the Yosemitch sensor powered and at what voltage?

                Connected in a levelshifter from a arduino mini pro.

                • Exactly what RS485 to TTL adapter do you have connected between the A and B (green and white) of your Y500B and your NodeMCU (brand, chipset, etc)
                  • What powers the RS485 adapter and at what voltage?
                  • Does the adapter require the use of a pin to change the direction of communication or does it have automatic flow control?

                https://www.aliexpress.com/item/32647766464.html I dont think it got flowcontrol. Its powered by the vcc(3.3v) from the nodemcu.

                  <li style=”list-style-type: none;”>
                  <li style=”list-style-type: none;”>
                • Are there any LED’s on your adapter?
                  • If so, do you see the power, Tx, and Rx LED’s light up appropriately?

                Yes it glows bright red.

                • What level shifters are you using (brand, etc)?
                  • Are your level shifters between the Tx and Rx of your adapter and the pins of your NodeMCU?
                  • If not, where are they in the chain?
                  • What voltages are you shifting to and from?
                  • I have not succeeded in using external level shifters on a breadboard with an RS485 adapter so I am quite skeptical of a set-up that requires them.

                Its chinese and honestly i dont know as i said before i just continued someones old project and couldnt find the shifter on the internet.

                • Are you sure you have Tx and Rx coming out of the adapter connected appropriately the pins you are assigning as Rx and Tx in SoftwareSerial?
                  • Have you tried reversing the Tx and Rx?

                Everything correctly wired because it worked before i used it.

                Attachments:
                in reply to: Yosemite library cant be found! #13608
                Deppi
                Participant

                  Got information now that it is the y-500b does that even work with this library?

                  in reply to: Yosemite library cant be found! #13607
                  Deppi
                  Participant

                    Yeah i use the arduino ide on my nodemcu. Im testing the sensor with the yosemite displayvalues library.

                    The thing i meant with own code was that the one working on this project before didnt give me anything like source code or explenation how he did work everything out.

                    Its searching all the slaveids and cant find the sensor. I use pin D6 for rx and d5 for tx but it just says it cant find the sensor.

                    The sensor im using is either a y-500b/y-1002 or y-2002. Im not quite sure. Dont really know what to do at this point because i know how modbus works everything is wired correctly and it uses a levelconverter.

                    in reply to: Yosemite library cant be found! #13599
                    Deppi
                    Participant

                      I use softwareserial and ive heard that it work but dont really know. But i am continuing some code for a module. As i couldnt download his code i made it from scratch. Acording to how i connected it it seems like its connected to the nodemcu but actually i dont really know sadly

                      in reply to: Yosemite library cant be found! #13587
                      Deppi
                      Participant

                        Yeah im sorry was really tired but its working now. Do you or someone know if there is a library for the nodemcu?

                      Viewing 10 posts - 1 through 10 (of 12 total)