News:

LATEST RELEASE:  FPP 8.1 - Download from here - https://github.com/FalconChristmas/fpp/releases/tag/8.1

+-+-

+-User

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+-Site Stats

Members
Total Members: 16578
Latest: grantpatterson
New This Month: 16
New This Week: 7
New Today: 4
Stats
Total Posts: 133511
Total Topics: 16613
Most Online Today: 44
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 1
Guests: 28
Total: 29

How to connect a button (via GPIO) to a K16A-B

Started by pierlux, September 17, 2022, 11:34:01 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

k6ccc


Quote from: pck on May 21, 2023, 01:30:30 PMFor me, its best to go with a driver transistor. 
Agree 100% with that low of current capability on the GPIO pins.
Using LOR (mostly SuperStar) for all sequencing - using FPP only to drive P5 and P10 panels.
My show website:  http://newburghlights.org

Jim

pierlux

Alright I brushed up on the suggested transistors using this great write up but really, are these easy to use modules really that bad? 

pck

I'm sure the relay module will work. If its more convenient for you to wire up than soldering, its a way to go. Its just overkill. The module uses a transistor to turn on the relay which then powers your led. A single cheap tiny 2N2222 can power the relay directly, no relay middleman. 

k6ccc

Agree with pck - that module is MASSIVE overkill.  I think his last sentence had a brain thought run together.  Should have read " 2N2222 can power the LED directly, no relay middleman".

One 2N2222 transistor, two resistors and the LED.
Using LOR (mostly SuperStar) for all sequencing - using FPP only to drive P5 and P10 panels.
My show website:  http://newburghlights.org

Jim

pierlux

The module is nice for the software engineer in me: plug-n-play. No resistor to compute.  I probably could get the transistor and resistor working but I'm trying to keep it simple.

Now, for the last bit of complexity: in my 3 wire setup illustrated above, is it alright if I have a 3.3V wire, and a 12V wire sharing the same ground? The 3.3V is for the button GPIO, and the 12V will be coming from the relay module.

I think it'll be alright (I don't want 12V to feed back into the GPIO) because the LED acts as a diode (allowing current to only flow in one direction).

k6ccc

Yes, all the grounds should be tied together.
Using LOR (mostly SuperStar) for all sequencing - using FPP only to drive P5 and P10 panels.
My show website:  http://newburghlights.org

Jim

MikeKrebs

On the 3.3/12V ground sharing question. If the 12V is on the output of relay, it doesn't matter. The keep it simple part in me says run the 3.3v/ground for the button and run 12v/ground for the LED.

If you were talking about a controller and pixels where we were concerned about having a common understanding of ground, then they would get grounded together.

k6ccc

Quote from: MikeKrebs on May 23, 2023, 08:53:40 PMOn the 3.3/12V ground sharing question. If the 12V is on the output of relay, it doesn't matter. The keep it simple part in me says run the 3.3v/ground for the button and run 12v/ground for the LED.

If you were talking about a controller and pixels where we were concerned about having a common understanding of ground, then they would get grounded together.

You are correct in this specific situation.
Using LOR (mostly SuperStar) for all sequencing - using FPP only to drive P5 and P10 panels.
My show website:  http://newburghlights.org

Jim

Support FPP

+- Recent Topics

F8-PB V1.2 by darylc
October 07, 2024, 10:07:09 PM

Composite analog video output on Pi 4 / FPP 8.1 by MikeKrebs
October 07, 2024, 08:48:24 PM

color issues by Poporacer
October 07, 2024, 07:27:35 PM

FPP 8.1 Released! by Santacarl
October 07, 2024, 09:52:08 AM

PiCap V2 Manual by Brenton
October 07, 2024, 06:44:44 AM

Moving from FPP 3.x to 5. Anything to look out for? by breese
October 07, 2024, 04:27:47 AM

Max Outputs per Port - Impact from Refresh Rate by darylc
October 06, 2024, 09:34:59 PM

F16V5 - SRx1v5 Channel 1 Blinking by PIC
October 06, 2024, 04:12:33 PM

FPP 8.0 and 8.1 Issues with HDMI Audio by computermoose44
October 06, 2024, 03:25:53 PM

Upgrading my Kulp controller and navigation buttons don't work by Poporacer
October 06, 2024, 10:21:50 AM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod