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

Com Ports not connecting to logger

Home Forums Mayfly Data Logger Com Ports not connecting to logger

Viewing 4 reply threads
  • Author
    Posts
    • #15326
      Danielle IWI
      Participant

      I’m working in Arduino and cannot get two of our stations to connect.  Two com ports appear but neither work to connect the logger – the correct board is selected and we tried multiple computers and cables.

      We were able to prepare other stations on each computer so it doesn’t appear to be a driver issue.

    • #15332
      fisherba
      Participant

      If it’s a Windows device each Mayfly will be assigned a different COM port number. Maybe you knew this but that’s the best I have with what you are saying. It’s promising that they connect.

      (I mean, there’s also the is the Mayfly turned on step…)

      • #15379
        Danielle IWI
        Participant

        I did forget that there should be a new port number to the logger, but, yes, it is not assigning a COM port number for two of our loggers.  Is there any reason why some loggers would be able to be assigned a port while others would not?

    • #15374
      JPugh
      Participant

      We found that the USB Serial drivers did not install, this is where we found drivers –> D2XX Drivers – FTDI (ftdichip.com)

       

    • #15381
      Shannon Hicks
      Moderator

      Are you using Windows or Mac for connecting to the Mayfly board?  Have you tried more than one USB cable?  Are these two unresponsive Mayfly boards brand new or are they running previously-programmed sketches?  Are there any LEDs that light up when you power the Mayfly board, either from a USB cable or a LiPo battery pack?  Is the small slide switch near the FTDI connector set to the “USB/Lipo” setting and not the “Ext” setting?

      • #15415
        Danielle IWI
        Participant

        I am using a Windows computer, we have tried multiple computers and USB cables.  The two boards are running on previously-programmed sketches (they are two of the first that we purchased from Stroud).  Lights come on the board as well as on the Sim Card piece.  The switch is set to “USB/Lipo.”

    • #15418
      Shannon Hicks
      Moderator

      If the Mayfly board still works when powered from a battery, then there’s a couple of possibilities of why the computer might not see it.  One is that the main power slide switch is defective, since that switch does 2 things – one pole is to provide power to the regulator that powers the whole board, the other pole is to provide power to the FTDI USB-to-UART chip on the Mayfly (FT232RL) that normally allows the computer to “speak” to the Mayfly board.  Sometimes one or both poles of the power switche can go bad if there’s a little bit of corrosion or dust inside the switch housing.  This can usually be remedied by rapidly sliding the power switch back and forth a few times.

      The second (and probably more likely cause since you have 2 bad boards acting the same) is that a bad microUSB cable damaged one or more of the pins inside the little microUSB jack on the Mayfly.  Without all of the pins properly functioning, the computer won’t be able to communicate with the Mayfly.

      There is a 6-pin header near the Mayfly’s SOLAR jack that can be used to program the board without using the onboard microUSB jack or the FTDI chip.  This is how I usually program all of the thousands of Mayfly boards I’ve used in the past few years because it is much easier than having Windows assign a new COM port for each new Mayfly that I connect to my computer.

      I’d suggest ordering one of these FTDI programming boards: https://www.amazon.com/Adafruit-FTDI-Friend-Extras-ADA284/dp/B00NAY1VJ2

      It comes with a little 6-pin coupler to allow you to plug it right into the FTDI jack on the Mayfly.  And because it uses the same FT232RL chip that’s on the Mayfly (v0.5b and earlier), you shouldn’t have to install any new software drivers on your computer.  Windows will, however, assign a new COM port to this new FTDI board, so you’ll have to look for that under your Arduino IDE’s Tools–>Port  list.

      Be sure to plug it into the Mayfly in the direction shown in the attached photograph, otherwise you’ll be connecting the power and ground pins to the wrong pins and it won’t work.  This FTDI board uses a the older style miniUSB jack, which is larger than the microUSB jack on the Mayfly, so make sure you’ve got one of those cables instead of the one you used for connecting directly to the Mayfly.

Viewing 4 reply threads
  • You must be logged in to reply to this topic.