pcomp office hours w/ chino



pulldown resistor

pulldown resistor

  • switch is after power supply; input pin goes HIGH when pressed because voltage from power source is able to flow through to input pin
    • digital input is path of least resistance after a switch > goes HIGH
  • “pulls” random inputs from digital/analog input to ground
  • stabilizes the input signal

 


pullup resistor with LED and code (reads a digital input and turns on an LED when input goes HIGH)

pull up resistor

  • pull up resistor equalizes voltage between digital input and power source
  • switch is before ground;¬†when button is pressed, input pin goes LOW because current can then flow to ground

Leave a Reply

Your email address will not be published. Required fields are marked *