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

    5V Relay on pycom

    Scheduled Pinned Locked Moved MicroPython
    pycomrelaylopy
    22 Posts 4 Posters 4.8k 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.
    • K Offline
      Kebson @Kebson
      last edited by

      @robert-hh It works, I just remove the transistor, and let the 3V3 to control the relay.

      I saw in a website if You directly connect a 5v relay in a 3V3, without transistor, you'll fry the pycom.

      But I tried it yesterday, and it works well.

      Thank you

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

        @kebson Thinking about your message, I assume that you connected the collector of the transistor to GND and control the relay though through the Vcc & GND pins of that relay board. Two topics are to be discussed:

        1. Current draw. According to the data sheet, the coil resistance is 70 Ohm, resulting in an current of 47 mA at 3.3V. At that load, the output voltage should be lower than 3.3 V, so it might "just" fit. At about 3V, the force at the relay contacts may be lower than at 5V, causing higher relay contact wear.
        2. Flyback voltage peaks. If you did not remove the flyback diode from the board, that might work, at least for a while.

        But still I would not consider to connect an inductive load directly to the ESP32 output pins. It may work for a while, but then break.
        B.T.W.: What is the mains voltage/power of the Pump?

        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
        • 2
        • 2 / 2
        • First post
          Last post

        Pycom on Twitter

        Pycom