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

    Relay and solenoid valve

    Scheduled Pinned Locked Moved Discussion
    fipytransistorexpansion boardpinouts
    3 Posts 3 Posters 987 Views 3 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.
    • M Offline
      Matthew
      last edited by Matthew

      I'm building a farm microcontroller for my cultivation of basil and tomatoes,
      i obviously need a relay to control the solenoid valve for irrigation, but I found that to open the relay I need >= 15mA and a single pin of the FiPy can only deliver a maximum of 12mA (6mA recommended), so i would have a couple of questions:
      First, in the fipy pinout and in the expv3 pinout documentation i'm not sure if i can power the relay using the 5v output because of the
      incongruity as indicated in the photos below
      0_1525170150802_Cattura.JPG
      0_1525169922558_Inkedimg_LI.jpg
      I was suggested to use a transistor for my purpose, but I really don't know how i could use it, i only know how
      theoretically a transistor work and if anyone could tell me how to do I would be very grateful.
      Thank you.

      1 Reply Last reply Reply Quote 0
      • M Offline
        MarcoBenini
        last edited by

        @matthew said in Relay and solenoid valve:

        e if i can power the relay using the 5v o

        The "5V" label of the expansion board v. 3 is in reality the voltage input value.
        It can be around 5V when the board is connected with USB cable (if attached to a 5V source), but it is not when is power is sourced by the LiPo battery.
        On board there is a TPS2115A, that switches from one source to the other when, for example the battery is connected and we plug the USB cable.

        The Vin can be from 3.5 to 5.5 V.

        Solenoid valve control

        You can use many different options to control the solenoid valves as well as ways to power the solenoid valves and mechanical relay or equivalent driver.

        I personally prefer isolated solutions like optocouplers, solid state relays (photo MOSFET) (price went down in last years), ...
        An alternative can be, if You need to drive more than one, darlington transistor arrays like ULN2003, the low voltage ULN2003LV, or the newer equivalent TPL7407L.

        You can easily found mechanical relay boards with onboard optocoupler. You need to heck the datasheet to look for the mA at 3.3V that they sink.

        1 Reply Last reply Reply Quote 1
        • J Offline
          jhonrob92 Banned
          last edited by jhonrob92

          This post is deleted!
          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