🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Very beginner LED control question.

    General
    3
    7
    1.7k
    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
      daniejd
      last edited by

      Apologies in advance, as I realize this is probably a very basic question. But to the point.

      I have a 5v 5w single channel LED light that I would like to control (dim on/off). But if I understand it correctly that would be a power draw of 1 amp which is more than the Atom can handle?

      Is there an i2c module (or something simple) that I could supply external power to and would work with atom to do this?

      Thank you.

      1 Reply Last reply Reply Quote 0
      • ajb2k3A
        ajb2k3
        last edited by

        No, you need a driver circuit to control the LED. also the pins are 3.3v not 5 volt and can only supply something like 20 to 30 milliamps.

        UIFlow, so easy an adult can learn it!
        If I don't know it, be patient!
        I've ether not learned it or am too drunk to remember it!
        Author of the WIP UIFlow Handbook!
        M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

        1 Reply Last reply Reply Quote 0
        • robskiR
          robski
          last edited by

          you could do on/off via relay module but no dim option with it then

          M5StickC, M5StickCPlus, M5StickCplus2,M5GO, M5Core, M5Tough, M5Core2, M5 Demo Board, M5Dial, M5Paper, M5Atom, M5Cardputer, M5StampS3, CoreMP135, StamPLC, AirQ

          1 Reply Last reply Reply Quote 0
          • D
            daniejd
            last edited by

            Thank you! And a follow up beginning question. This is for a micro aquarium controller (think big beer can size) so I was already using relays to control most of the equipment (it’s all 5v dc, pumps heaters etc). Could I use a logical Mosfet connected to one of the relays to dim the lights? Or would using the atoms3 to control the both relay and the Mosfet cause some sort of feedback loop? (Never used a Mosfet so just assuming needing a relay to perform off/on).

            ajb2k3A 1 Reply Last reply Reply Quote 0
            • ajb2k3A
              ajb2k3 @daniejd
              last edited by

              @daniejd no you can’t use a relay to dim. From your posts you should learn the basics of electronics and PWM control. A relay is only an on or off device it doesn’t do variable.

              UIFlow, so easy an adult can learn it!
              If I don't know it, be patient!
              I've ether not learned it or am too drunk to remember it!
              Author of the WIP UIFlow Handbook!
              M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

              1 Reply Last reply Reply Quote 0
              • D
                daniejd
                last edited by

                Sorry I wasn’t clear. I was asking about this.

                Relay > Mosfet > LED

                The relay to control the on/off
                The Mosfet to control the dimming

                ajb2k3A 1 Reply Last reply Reply Quote 0
                • ajb2k3A
                  ajb2k3 @daniejd
                  last edited by

                  @daniejd you don’t need the relay if you have the proper mosfet control.

                  UIFlow, so easy an adult can learn it!
                  If I don't know it, be patient!
                  I've ether not learned it or am too drunk to remember it!
                  Author of the WIP UIFlow Handbook!
                  M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post