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

Apryl

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: 12 V External Power and Serial Viewer #18160
    Apryl
    Participant

      Sorry for the delayed response.  I am just getting back to this again.

      The IDE version I am using is 1.8.13.

      In the Windows Device Manager, when the CP2102 is plugged in it reads “Silicon Labs CP210x USB to UART Bridge (COM10)” under the Ports (COM & LPT) currently.

      So, today everything seems to work.  The following is info that may or may not be helpful as I don’t really know why it wasn’t working before.  There may have been a glitch with the DC-DC converter, or just as likely, a coincidence. I connected through the FTDI socket and was getting a getting a power surge warning on the usb port prior to even turning on the Mayfly.  This was new.  I had not yet connected a 12V power source, though the DC-DC converter was plugged into the Mayfly’s usbc port (and had been without a power source for a few weeks).  I Disconnected the DC-DC converter from the system and the error went away.  I was also then able to upload through the FTDI socket.   Plugging the converter back in, adding in the 12V power source, the FTDI socket still works and the serial monitor displays the sensor data. So, I guess I am set for now.

      Thank you again for your help!

      in reply to: 12 V External Power and Serial Viewer #18104
      Apryl
      Participant

        So, if I understand correctly, I should be able to use the USBC to Serial (CP2102N Friend, oriented properly)  via the FTDI port to upload sketches as well as access the serial monitor with the 12V to 5V DC converter plugged into the Mayfly’s USBC port (for the sensors that require 12V), but the DIP switch for the USBC on board chip needs to be off. With the exception that if I want to upload code via the Mayfly’s USBC port (not the FTDI), then I would need to turn that switch back on.

        With the CP2102N connected, correct com port selected, most recent UART drivers installed, the DIP switch for the USBC onboard chip set to off and the 12V to 5V dc converter connected through the Mayfly’s USBC port I get:

        avrdude: stk500_recv(): programmer is not responding
        avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x3e error

        when trying to upload a sketch.  Turning the DIP switch to on gets the same response.

        As for the serial monitor all that comes up is a timestamp, and it is opening without any errors.  The code is running and writing data to the sd card and the code version is unchanged from the one I have been using with the 0.5v boards.  So I am not sure why nothing shows up on the monitor.  I also tried another new Mayfly board, just on the off chance that something was wrong with this one.  However, results were the same. Suggestions on what I should check next? 🙂

        Apryl

        in reply to: 12 V External Power and Serial Viewer #18103
        Apryl
        Participant

          Thanks for the info! That may explain why I can’t seem to get the sketch to upload via the FTDI while I have a converter plugged into the USBC, but I had though that turning off the DIP switch would take care of that. 🙂

        Viewing 3 posts - 1 through 3 (of 3 total)