• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

PIR sensor to turn on LED strip

Scheduled Pinned Locked Moved General Discussion
35 Posts 6 Posters 8.1k Views 6 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.
  • B Offline
    bhepler Module Developer @Egnos
    last edited by bhepler Sep 20, 2022, 12:23 AM Sep 20, 2022, 12:16 AM

    @Egnos - Those look like they’ll do the job.

    I have seen the connection between RPI and LED strip but I do not understand why the external 5V power supply must also be connected to the RPI, is it not enough to connect it to the LED strip?

    The reason is that the output of the RPi can drive a handful of LEDs, but the Pi only has so much power flowing through it (specs say 50mA). Powering the LEDs separately will let the Pi handle the logic and the power supply handle the… well, power.

    E 1 Reply Last reply Sep 20, 2022, 5:37 AM Reply Quote 0
    • E Offline
      Egnos @bhepler
      last edited by Sep 20, 2022, 5:37 AM

      @bhepler said in PIR sensor to turn on LED strip:

      The reason is that the output of the RPi can drive a handful of LEDs, but the Pi only has so much power flowing through it (specs say 50mA). Powering the LEDs separately will let the Pi handle the logic and the power supply handle the… well, power.

      Thanks @bhepler I understood that the LEDs must be powered by an external 5V because the RPI generates a few mA and is not able to turn on an LED strip, but from the photo you can see that the external 5V (+ and -) also goes in parallel on the 5V in exit from the RPI.

      3f775e85-f24b-4337-b00f-8d7fffb9ddc6-image.png

      For what reason?
      Is this connection necessary (I no longer have 5V available on GPIO …)?

      Thank you very much

      My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

      W S 2 Replies Last reply Sep 20, 2022, 10:39 AM Reply Quote 0
      • W Offline
        wishmaster270 Module Developer @Egnos
        last edited by Sep 20, 2022, 10:39 AM

        @Egnos Hi, as the picture says they use the 5V power source of the led strip to power the Pi, too.
        Instead of powering the pi via USB they use the 5V GPIO pin.
        If you want to power the Pi via USB instead be sure to connect the Ground of the strip with ground of the pi.

        E 1 Reply Last reply Sep 20, 2022, 2:14 PM Reply Quote 0
        • S Away
          sdetweil @Egnos
          last edited by Sep 20, 2022, 11:49 AM

          @Egnos no. they are powering the pi from the 5v gpio pins as well as the LEDs.

          the pin is tall.

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • E Offline
            Egnos @wishmaster270
            last edited by Sep 20, 2022, 2:14 PM

            @wishmaster270 said in PIR sensor to turn on LED strip:

            If you want to power the Pi via USB instead be sure to connect the Ground of the strip with ground of the pi.

            The GPIO ground or the power ground going into USB-C?

            thanks

            My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

            S 1 Reply Last reply Sep 20, 2022, 3:04 PM Reply Quote 0
            • S Away
              sdetweil @Egnos
              last edited by Sep 20, 2022, 3:04 PM

              @Egnos gpio

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              E 1 Reply Last reply Sep 20, 2022, 3:29 PM Reply Quote 0
              • E Offline
                Egnos @sdetweil
                last edited by Sep 20, 2022, 3:29 PM

                @sdetweil thanks

                My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

                1 Reply Last reply Reply Quote 0
                • 1
                • 2
                • 3
                • 4
                • 4 / 4
                4 / 4
                • First post
                  33/35
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Sam, technical setup by Karsten.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy