Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Hardware switch debouncing vs deep-sleep current

    Scheduled Pinned Locked Moved Discussion
    deep sleepdebouncing
    3 Posts 2 Posters 1.1k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D Offline
      danielm
      last edited by

      In my battery powered device based on L01 I would like to implement several micro-switches - for reset and device control as well.

      I used the same de-bouncing circuit as Pycom used in their OEM baseboard design for RST pin - 20k pull-up resistor and switch with capacitor towards GND in parallel:

      0_1506155761758_reset_pin.png

      I measured quiescent current through pullup resistor using uCurrent tool. It seems to be in sub-uA region.

      Then I used the same circuit connected to Pxx pin (will be used for device control in the code) and the quiescent current seems to be at the same level.

      Should I expect any issues with increase deep-sleep current with this approach?
      Maybe better idea would be to pull Pxx pins to GND and switch towards VDD?

      robert-hhR 1 Reply Last reply Reply Quote 0
      • robert-hhR Offline
        robert-hh @danielm
        last edited by

        @danielm The circuit above should not consume any current, if the PIN is set to input and the button is not pressed, besides some leakage. The ep32 data-sheet specifies an input leakage current of max. 0.05µA. The leakage of the capacitor should be almost Zero too. In a real set-up the leakage caused by dirt plus humidity may be higher.

        1 Reply Last reply Reply Quote 1
        • D Offline
          danielm
          last edited by

          @robert-hh
          Thanks for confirmation. With the uCurrent tool I measured current in order of tens of nA but I was not sure if measurement of such small currents makes sense.

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post

          Pycom on Twitter

          Pycom