An arduino enigma

An arduino enigma

Home Forums Electronics in the Workshop An arduino enigma

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #854350
    duncan webster 1
    Participant
      @duncanwebster1

      My current project is to modify the software of an arduino driven clock chime so that it doesn’t keep SWMBO awake at night. The whole thing is driven from a 12v power supply which powers a stepper motor direct, and the arduino via a 7805 regulator. It is very boring to sit and watch to make sure it’s doing its thing, so I set up the serial monitor to display the minutes as they tick over. This of course requires a USB connection to the PC. All worked very nicely as long as I was doing something else on the PC, but if I went away for more than 15 minutes, the PC went to sleep, and when I woke it up the minutes count always began again at 1. It appears that the PC waking up resets the arduino. It might be that going to sleep does likewise, can’t tell. This is despite having the 7805 source of 5v continuously.  Solution is simple, tell the PC never to go to sleep,  but will I remember? Probably not, I’ll waste another hour or so working out what is going on.

      #854374
      Stuart Smith 5
      Participant
        @stuartsmith5

        Duncan

        If you start the serial monitor function in the Arduino programming software, it restarts the Arduino ‘sketch’. I suspect this is what is happening.

        I wonder if you disconnected the serial pc to Arduino pin and just had the Arduino to pc pin connected it would be ok.

        The other way would be to connect a display to the Arduino.

        Stuart

        #854375
        John Haine
        Participant
          @johnhaine32865

          This is a PITA with the Arduino, and for example it stops you connecting a serial lead to the USB port if you just want to send some data or special commands to your code.  The device is designed with a capacitor that sends a reset to the processor when a physical USB connection is made.  A workaround is to add another cap and switch to some specific pins so that wen the cap is switched in it suppresses the reset and this works well.  I use it on my Arduinome so that I can connect a PC and send commands from the serial monitor to configure various running parameters on the fly.  Details are on the Arduino support forum

          #854376
          duncan webster 1
          Participant
            @duncanwebster1

            Thanks John that’s this evening’s mod sorted as long as I can find a 10uF cap

          Viewing 4 posts - 1 through 4 (of 4 total)
          • Please log in to reply to this topic. Registering is free and easy using the links on the menu at the top of this page.

          Latest Replies

          Viewing 25 topics - 1 through 25 (of 25 total)
          Viewing 25 topics - 1 through 25 (of 25 total)

          View full reply list.