Jump to content
Sign in to follow this  
stemmo

How to connect a GPIO to GND via relay

Recommended Posts

Hi all,

I need to connect in the simplest mode a GPIO pin (as INPUT) to the contact of a relay (not the control pins of the replay) that connects the pin to the GND.

Of course I'm using the internal pull-up resistor but I don't know the value of this one.

Is it a problem to connect the pin directly to GND or better to use a resistor to limit? Value?

Thanks a lot!

Regards

Edited by stemmo

Share this post


Link to post
Share on other sites

Hi, you should use 2 resistors. The first one (10K) connected to 3.3V (yellow pin) and GPIO input and second one (1K) connecting GPIO input and relay contact.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...