Author Topic: First Time Using Pull-Up / Pull-Down Resistors, Did I Do It Right?  (Read 280 times)

0 Members and 1 Guest are viewing this topic.

Offline Max HoldcroftTopic starter

  • Contributor
  • Posts: 35
  • Country: au
Hey all,

Basically the title. I have a push button connected to a pin on a microcontroller that I want to be able to detect the pushing of. I've connected this to a pull-up resistor. I'm running the microcontroller off 2.8v input, and the resistor is 4.7K ohms. This is my first time using these, and I just wanted to check I did it right.

Thanks in advance!

Max :)
 

Offline ledtester

  • Super Contributor
  • ***
  • Posts: 3183
  • Country: us
Re: First Time Using Pull-Up / Pull-Down Resistors, Did I Do It Right?
« Reply #1 on: July 28, 2024, 12:10:42 pm »
Yes you did it right.
 

Offline rich t

  • Contributor
  • Posts: 49
  • Country: us
    • rtestardi's github pages site
Re: First Time Using Pull-Up / Pull-Down Resistors, Did I Do It Right?
« Reply #2 on: July 28, 2024, 12:31:14 pm »
Many microcontrollers also have built-in pull-ups you can enable in software.

In general, the one thing you don't want to do is pull up beyond the microcontroller supply voltage.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf