Recalbox Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • recalbox.com
    • Gitlab repository
    • Documentation
    • Discord

    On/Off LED help request

    Recalbox General
    onoff led help request
    2
    3
    1522
    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.
    • millski
      millski last edited by

      Hi,

      I have one of these buttons http://www.maplin.co.uk/p/230vac-3a-ip67-blackblue-illuminated-push-switch-n27ka and wondered if it was possible to get the LED to work with the Pi.

      It's listed as "230VAC 3A IP67 Black/Blue Illuminated Push Switch" with a rating of "3A AC 250V" and 12v dc. I'm guessing this is too much for a Pi to power from the 3.3v GPIO pins but if anyone knows if it can be done, and what resistor I'd need I'd love to know - I don't understand any of this stuff!

      Thanks
      millski

      1 Reply Last reply Reply Quote 0
      • Substring
        Substring last edited by Substring

        Hi,

        What you're trying to do is a little more complex than what you think. My electronics memories are a little far, but you'd need something like that, with a NPN transistor instead of a PNP i think, with the gpio being at the base of the transistor, the upper voltage being 12V (that you need from a power supply), and calculate intensities so that you can set the resistors values

        Former dev - Please reply with @substring so that i am notified when you answer me
        Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

        millski 1 Reply Last reply Reply Quote 0
        • millski
          millski @Substring last edited by

          @subs Thanks for the info. I don't want to add a 12v power supply just for an LED so I think Ill just use the button without the LED, and look for a 3v power button/LED to replace it with in the future.

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

          Want to support us ?

          62
          Online

          99.7k
          Users

          28.1k
          Topics

          187.1k
          Posts

          Copyright © 2021 recalbox.com