Timeline for 12V LED/switch - where to insert resistor to connect to PI GPIO
Current License: CC BY-SA 4.0
15 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 5, 2022 at 22:05 | review | Close votes | |||
Mar 13, 2022 at 3:05 | |||||
Feb 16, 2022 at 16:31 | vote | accept | dbmitch | ||
Feb 16, 2022 at 0:03 | answer | added | Seamus | timeline score: 2 | |
Feb 15, 2022 at 21:54 | comment | added | dbmitch | Thanks @Milliways - I think I figured out what you meant by a divider when I saw your circuit diagram and the example I used on the resistor calculation page. Makes sense - I was never able to get voltage down to less than 6V using the series method I showed above. | |
Feb 15, 2022 at 21:38 | answer | added | dbmitch | timeline score: 1 | |
Feb 15, 2022 at 21:36 | comment | added | Milliways | DO NOT do this. You will put 12V on the GPIO and damage the Pi. You NEED a divider. If you are lucky the series resistors may limit the current to a sufficiently low level, but still risky. | |
Feb 15, 2022 at 18:38 | comment | added | dbmitch | It's not that I'm against diodes it's just that I have a whack of resistors - no diodes on hand. | |
Feb 15, 2022 at 18:37 | comment | added | Seamus | Your diagram is helpful, but it omits a detail. I think I understand your question now & will post an answer shortly. In the meantime, please take a look at this related Q&A & let me know if you're averse to using Zener diodes? | |
Feb 15, 2022 at 18:22 | comment | added | Seamus | OK - sorry for the confusion... you edited your question & added the schematic - which answered the Q in my comment, so I deleted my comment :P | |
Feb 15, 2022 at 18:14 | comment | added | dbmitch | No - sorry not at all - I just want to use the Pi to detect when the outside button circuit is closed (by it being pressed). The GPIO on the Pi can be monitored with code and do something when the button is pressed. | |
Feb 15, 2022 at 18:12 | history | edited | dbmitch | CC BY-SA 4.0 |
Add circuit lab diagram showing what I'm trying
|
Feb 15, 2022 at 17:35 | history | edited | dbmitch | CC BY-SA 4.0 |
Add link to Amazon product
|
Feb 15, 2022 at 17:29 | history | edited | dbmitch | CC BY-SA 4.0 |
Added actual part
|
Feb 15, 2022 at 2:09 | comment | added | Milliways | "I have a button that hosts the LED." - this belongs in the Question. You need to supply details of the device you ACTUALLY have - but I doubt it is usable (without significant additional circuitry. | |
Feb 14, 2022 at 21:24 | history | asked | dbmitch | CC BY-SA 4.0 |