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

    Lopy4 - 3.3V out disable?

    Scheduled Pinned Locked Moved LoPy
    lopy43.3vmachine.deepsle
    8 Posts 4 Posters 765 Views 4 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.
    • G Offline
      Giorgio
      last edited by

      Lopy4. Is it possible to switch off the power supply out on pin 3.3V during machine.deepsleep() in order to not power sensors?

      J 1 Reply Last reply Reply Quote 0
      • P Offline
        Paul Thornton
        last edited by

        Are you using a pytrack or pysense or just the Lopy4?

        The Pytrack / Pysense have seperate 3.3v pins for both sensors and the mainboard for exactly this reason.

        1 Reply Last reply Reply Quote 0
        • G Offline
          Giorgio
          last edited by

          Just Lopy4 alone (or with expansion board 3).

          1 Reply Last reply Reply Quote 0
          • P Offline
            Paul Thornton
            last edited by

            @giorgio Then sadly its not possible to switch the 3v3 pin off on the module. if the module is powered the pin has power and there's no way to turn it off doing so would also shutdown power to the ESP.

            1 Reply Last reply Reply Quote 0
            • J Offline
              jcaron @Giorgio
              last edited by

              @giorgio How much power do you need? It may be possible to power the sensor directly with any of the GPIO pins if you don't need too much (the limit is 12 mA per pin, and 6 mA is recommended). Otherwise you'll probably need to add a transistor using both.

              G 1 Reply Last reply Reply Quote 0
              • G Offline
                Giorgio @jcaron
                last edited by

                @jcaron great idea... I have hx711 (load cell) ... that more or less need 1.5ma. So I could power the hx711 directly from a GPIO?!

                J 1 Reply Last reply Reply Quote 0
                • J Offline
                  jcaron @Giorgio
                  last edited by

                  @giorgio I'm not a hardware guy, so I may be missing something, but it looks like it. I have no idea if there are any ill effects from having a constant 1.5 mA draw on one the GPIO pins, though.

                  Wait for confirmation from someone who is more competent than I am on the hardware side :-)

                  M 1 Reply Last reply Reply Quote 0
                  • M Offline
                    Martinnn @jcaron
                    last edited by

                    @jcaron The ESP32 data sheet https://www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf says high level source current IOH is 20 or 40 mA, depending on domain. The voltage will probably be quite noisy as it comes from the digital supply of the ESP32. The HX711 is a 24 bit sigma delta front end for load cells. For optimal performance, I'd power this from a separate regulator, but try it... If you look at the data sheet
                    https://www.mouser.com/ds/2/813/hx711_english-1022875.pdf
                    you see it has an internal analog regulator. Running from a 3.3 V supply, I'd set the analog voltage to 3.0 V, which would at least reduce the noise.
                    Also note that the IO driver of the ESP32 (or any digital device) has a much higher resistance than an external FET switch you'd typically use (there are no specs on this in the datasheet), introducing additional errors.

                    1 Reply Last reply Reply Quote 2

                    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