SlideShare a Scribd company logo
Pull-up & Pull-down Resistors


Often we want to connect a digital input line to
our microcontroller. Typically this might be to
allow us to monitor the on-off state of a switch.

Eg.
            5V



                           Microcontroller
                 switch

          0V
       (gnd or    )


At first glance this seems fine.

When the switch is closed, the pin on our
microcontroller is tied to 0 volt, ie. low.

In contrast when the switch is open we would
want the pin to be 5 volts, or high.
The input pin would tend to “float” high. This
however isn’t a true input signal, it is a very
weak input and can readily switch from high to
low through the slightest of electrical
interference in any of the wiring.
A simple solution might appear to involve
simply connecting the other end of the switch
to our 5 volt supply


          5V



                         Microcontroller
               switch

        0V
     (gnd or    )


This will give us a 5 volt (high) signal on the
input pin when the switch is open. When the
switch is closed however we will get a short
between supply and ground => zero
resistance => infinite current - this is not good
news.
The problem can be remedied by simply
putting a resistor into the circuit. This is the
pull-up resistor.


            5V
                 10 kΩ

                            Microcontroller
                 switch

          0V
       (gnd or    )

When the switch is open, the input to the
microcontroller is high. There is no direct
connection to the 5v rail, however because the
input impedence to the microcontroller is high,
very little of the 5v is dropped over the pull up
resistor.

When the switch is closed current flows down
through the resistor and through the closed
switch to ground. The input pin is tied to
ground and so will read low.

This gives us what we want.
A variation on this is the pull-down resistor.
This ties the input pin to ground rather than the
supply voltage.

ie.
             5V
                  switch

                            Microcontroller
                  10 kΩ
           0V
        (gnd or    )

More Related Content

What's hot

MOSFET AND JFET
MOSFET AND JFETMOSFET AND JFET
MOSFET AND JFET
Sumair Hassan
 
Cmos logic
Cmos logicCmos logic
Chapter 6: Sequential Logic
Chapter 6: Sequential LogicChapter 6: Sequential Logic
Chapter 6: Sequential Logic
Er. Nawaraj Bhandari
 
Short channel effects
Short channel effectsShort channel effects
Short channel effects
aditiagrawal97
 
I2C
I2CI2C
Pass Transistor Logic
Pass Transistor LogicPass Transistor Logic
Pass Transistor Logic
Diwaker Pant
 
Pass transistor logic
Pass transistor logicPass transistor logic
Pass transistor logic
Tripurna Chary
 
Layout02 (1)
Layout02 (1)Layout02 (1)
Layout02 (1)
venkat1234_nxp
 
Mosfet’s
Mosfet’sMosfet’s
Mosfet’s
Ishwar Bhoge
 
differential amplifier for electronic
differential amplifier for electronicdifferential amplifier for electronic
differential amplifier for electronic
Faiz Yun
 
NMOS PPT for 2nd year
NMOS PPT for 2nd yearNMOS PPT for 2nd year
NMOS PPT for 2nd year
faltuthings
 
All flipflop
All flipflopAll flipflop
All flipflop
DHEERAJ CHOKSE
 
Power Electronics
Power ElectronicsPower Electronics
Power Electronics
Mirza Baig
 
Flip flop conversions
Flip flop conversionsFlip flop conversions
Flip flop conversions
uma jangaman
 
Latches and flip flop
Latches and flip flopLatches and flip flop
Latches and flip flop
Shuaib Hotak
 
Flip flops, counters & registers
Flip flops, counters & registersFlip flops, counters & registers
Flip flops, counters & registers
Dharit Unadkat
 
Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic Circuit
Ramasubbu .P
 
Sequential circuit
Sequential circuitSequential circuit
Sequential circuit
Brenda Debra
 
Vlsi design mosfet
Vlsi design mosfetVlsi design mosfet
Vlsi design mosfet
vennila12
 
Jk flip flop
Jk flip flopJk flip flop
Jk flip flop
Priyank Soni
 

What's hot (20)

MOSFET AND JFET
MOSFET AND JFETMOSFET AND JFET
MOSFET AND JFET
 
Cmos logic
Cmos logicCmos logic
Cmos logic
 
Chapter 6: Sequential Logic
Chapter 6: Sequential LogicChapter 6: Sequential Logic
Chapter 6: Sequential Logic
 
Short channel effects
Short channel effectsShort channel effects
Short channel effects
 
I2C
I2CI2C
I2C
 
Pass Transistor Logic
Pass Transistor LogicPass Transistor Logic
Pass Transistor Logic
 
Pass transistor logic
Pass transistor logicPass transistor logic
Pass transistor logic
 
Layout02 (1)
Layout02 (1)Layout02 (1)
Layout02 (1)
 
Mosfet’s
Mosfet’sMosfet’s
Mosfet’s
 
differential amplifier for electronic
differential amplifier for electronicdifferential amplifier for electronic
differential amplifier for electronic
 
NMOS PPT for 2nd year
NMOS PPT for 2nd yearNMOS PPT for 2nd year
NMOS PPT for 2nd year
 
All flipflop
All flipflopAll flipflop
All flipflop
 
Power Electronics
Power ElectronicsPower Electronics
Power Electronics
 
Flip flop conversions
Flip flop conversionsFlip flop conversions
Flip flop conversions
 
Latches and flip flop
Latches and flip flopLatches and flip flop
Latches and flip flop
 
Flip flops, counters & registers
Flip flops, counters & registersFlip flops, counters & registers
Flip flops, counters & registers
 
Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic Circuit
 
Sequential circuit
Sequential circuitSequential circuit
Sequential circuit
 
Vlsi design mosfet
Vlsi design mosfetVlsi design mosfet
Vlsi design mosfet
 
Jk flip flop
Jk flip flopJk flip flop
Jk flip flop
 

Viewers also liked

Why sending patches back is so important
Why sending patches back is so importantWhy sending patches back is so important
Why sending patches back is so important
Macpaul Lin
 
OpenWRT, A value-add base solution for your product. (2nd, Macpual)
OpenWRT, A value-add base solution for your product. (2nd, Macpual)OpenWRT, A value-add base solution for your product. (2nd, Macpual)
OpenWRT, A value-add base solution for your product. (2nd, Macpual)Macpaul Lin
 
Bootstrap process of u boot (NDS32 RISC CPU)
Bootstrap process of u boot (NDS32 RISC CPU)Bootstrap process of u boot (NDS32 RISC CPU)
Bootstrap process of u boot (NDS32 RISC CPU)
Macpaul Lin
 
1169_ali_mohamed
1169_ali_mohamed1169_ali_mohamed
1169_ali_mohamedMohamed Ali
 
AVR_Course_Day7 timers counters and interrupt programming
AVR_Course_Day7 timers counters and  interrupt programmingAVR_Course_Day7 timers counters and  interrupt programming
AVR_Course_Day7 timers counters and interrupt programming
Mohamed Ali
 
USB Specification 2.0 - Chapter 9 - Device Framework
USB Specification 2.0 - Chapter 9 - Device FrameworkUSB Specification 2.0 - Chapter 9 - Device Framework
USB Specification 2.0 - Chapter 9 - Device Framework
Macpaul Lin
 
U boot porting guide for SoC
U boot porting guide for SoCU boot porting guide for SoC
U boot porting guide for SoC
Macpaul Lin
 
AVR_Course_Day2 what is pcb
AVR_Course_Day2 what is pcbAVR_Course_Day2 what is pcb
AVR_Course_Day2 what is pcb
Mohamed Ali
 
Interrupt
InterruptInterrupt
Interrupt
roshan_rawat
 
DPA
DPADPA
Interrupts
InterruptsInterrupts
Interrupts
guest0f0fd2c
 
8051 architecture
8051 architecture8051 architecture
8051 architecture
sb108ec
 
AVR Fundamentals
AVR FundamentalsAVR Fundamentals
AVR Fundamentals
Vinit Vyas
 
Interrupts
InterruptsInterrupts
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERSPIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
VISHNU KP
 
AVR_Course_Day1 basic electronics
AVR_Course_Day1 basic electronicsAVR_Course_Day1 basic electronics
AVR_Course_Day1 basic electronics
Mohamed Ali
 
Hardware interfacing basics using AVR
Hardware interfacing basics using AVRHardware interfacing basics using AVR
Hardware interfacing basics using AVR
Mohamed Abdallah
 

Viewers also liked (17)

Why sending patches back is so important
Why sending patches back is so importantWhy sending patches back is so important
Why sending patches back is so important
 
OpenWRT, A value-add base solution for your product. (2nd, Macpual)
OpenWRT, A value-add base solution for your product. (2nd, Macpual)OpenWRT, A value-add base solution for your product. (2nd, Macpual)
OpenWRT, A value-add base solution for your product. (2nd, Macpual)
 
Bootstrap process of u boot (NDS32 RISC CPU)
Bootstrap process of u boot (NDS32 RISC CPU)Bootstrap process of u boot (NDS32 RISC CPU)
Bootstrap process of u boot (NDS32 RISC CPU)
 
1169_ali_mohamed
1169_ali_mohamed1169_ali_mohamed
1169_ali_mohamed
 
AVR_Course_Day7 timers counters and interrupt programming
AVR_Course_Day7 timers counters and  interrupt programmingAVR_Course_Day7 timers counters and  interrupt programming
AVR_Course_Day7 timers counters and interrupt programming
 
USB Specification 2.0 - Chapter 9 - Device Framework
USB Specification 2.0 - Chapter 9 - Device FrameworkUSB Specification 2.0 - Chapter 9 - Device Framework
USB Specification 2.0 - Chapter 9 - Device Framework
 
U boot porting guide for SoC
U boot porting guide for SoCU boot porting guide for SoC
U boot porting guide for SoC
 
AVR_Course_Day2 what is pcb
AVR_Course_Day2 what is pcbAVR_Course_Day2 what is pcb
AVR_Course_Day2 what is pcb
 
Interrupt
InterruptInterrupt
Interrupt
 
DPA
DPADPA
DPA
 
Interrupts
InterruptsInterrupts
Interrupts
 
8051 architecture
8051 architecture8051 architecture
8051 architecture
 
AVR Fundamentals
AVR FundamentalsAVR Fundamentals
AVR Fundamentals
 
Interrupts
InterruptsInterrupts
Interrupts
 
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERSPIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
PIC-MICROCONTROLLER TUTORIALS FOR BEGINNERS
 
AVR_Course_Day1 basic electronics
AVR_Course_Day1 basic electronicsAVR_Course_Day1 basic electronics
AVR_Course_Day1 basic electronics
 
Hardware interfacing basics using AVR
Hardware interfacing basics using AVRHardware interfacing basics using AVR
Hardware interfacing basics using AVR
 

Similar to Pull up & pull-down resistors

Stabilised Power Supplies
Stabilised Power SuppliesStabilised Power Supplies
Simple Automatic Water Level Controller by using ic 555 timer.
Simple Automatic Water Level Controller by using ic 555 timer.Simple Automatic Water Level Controller by using ic 555 timer.
Simple Automatic Water Level Controller by using ic 555 timer.
PRASHANTH RAO
 
Clap switch mini project using 555 timer IC
Clap switch mini project using 555 timer ICClap switch mini project using 555 timer IC
Clap switch mini project using 555 timer IC
Erole technologies Pvt. Ltd
 
Simple Automatic Water Level Controller
Simple Automatic Water Level ControllerSimple Automatic Water Level Controller
Simple Automatic Water Level Controller
selvalakshmi24
 
switch circuit control
switch circuit controlswitch circuit control
switch circuit control
Kumar Shivam
 
Fed vonverter project design and progress report
Fed vonverter project design and progress reportFed vonverter project design and progress report
Fed vonverter project design and progress report
MehboobUET
 
Ic555
Ic555Ic555
Ic555
piyurahul
 
UNIT-5.pptx.ppt
UNIT-5.pptx.pptUNIT-5.pptx.ppt
UNIT-5.pptx.ppt
Saravanan Pazapughal
 
Comparator
ComparatorComparator
Comparator
C035RiteshJadhav
 
3.Arduino projects.pptx
3.Arduino projects.pptx3.Arduino projects.pptx
3.Arduino projects.pptx
Mohamed Essam
 
Switches and LEDs interface to the 8051 microcontroller
Switches and LEDs interface to the 8051 microcontrollerSwitches and LEDs interface to the 8051 microcontroller
Switches and LEDs interface to the 8051 microcontroller
University of Technology - Iraq
 
Sepic
SepicSepic
Integrated circuit
Integrated circuitIntegrated circuit
Integrated circuit
ddsshukla
 
zero cross detector.pptx
zero cross detector.pptxzero cross detector.pptx
zero cross detector.pptx
Aman bharti
 
Pass Transistor Logic
Pass Transistor LogicPass Transistor Logic
Pass Transistor Logic
Sudhanshu Janwadkar
 
10 lm 555 timer
10 lm 555 timer10 lm 555 timer
10 lm 555 timer
Md. Khairul Alam t@ifur
 
Mains operated under voltage over voltage trip switch
Mains operated under voltage over voltage trip switchMains operated under voltage over voltage trip switch
Mains operated under voltage over voltage trip switch
Edgefxkits & Solutions
 
LIGHT DETECTOR USING NAND GATE
LIGHT DETECTOR USING NAND GATELIGHT DETECTOR USING NAND GATE
LIGHT DETECTOR USING NAND GATE
abdullahkhalid50
 
WIRE BREAK CIRCUIT ALARAM
WIRE BREAK CIRCUIT ALARAMWIRE BREAK CIRCUIT ALARAM
WIRE BREAK CIRCUIT ALARAM
rookiedope8326
 
Logic not gate tutorial with logic gate truth table
Logic not gate tutorial with logic gate truth tableLogic not gate tutorial with logic gate truth table
Logic not gate tutorial with logic gate truth table
guru nanak institute of technology
 

Similar to Pull up & pull-down resistors (20)

Stabilised Power Supplies
Stabilised Power SuppliesStabilised Power Supplies
Stabilised Power Supplies
 
Simple Automatic Water Level Controller by using ic 555 timer.
Simple Automatic Water Level Controller by using ic 555 timer.Simple Automatic Water Level Controller by using ic 555 timer.
Simple Automatic Water Level Controller by using ic 555 timer.
 
Clap switch mini project using 555 timer IC
Clap switch mini project using 555 timer ICClap switch mini project using 555 timer IC
Clap switch mini project using 555 timer IC
 
Simple Automatic Water Level Controller
Simple Automatic Water Level ControllerSimple Automatic Water Level Controller
Simple Automatic Water Level Controller
 
switch circuit control
switch circuit controlswitch circuit control
switch circuit control
 
Fed vonverter project design and progress report
Fed vonverter project design and progress reportFed vonverter project design and progress report
Fed vonverter project design and progress report
 
Ic555
Ic555Ic555
Ic555
 
UNIT-5.pptx.ppt
UNIT-5.pptx.pptUNIT-5.pptx.ppt
UNIT-5.pptx.ppt
 
Comparator
ComparatorComparator
Comparator
 
3.Arduino projects.pptx
3.Arduino projects.pptx3.Arduino projects.pptx
3.Arduino projects.pptx
 
Switches and LEDs interface to the 8051 microcontroller
Switches and LEDs interface to the 8051 microcontrollerSwitches and LEDs interface to the 8051 microcontroller
Switches and LEDs interface to the 8051 microcontroller
 
Sepic
SepicSepic
Sepic
 
Integrated circuit
Integrated circuitIntegrated circuit
Integrated circuit
 
zero cross detector.pptx
zero cross detector.pptxzero cross detector.pptx
zero cross detector.pptx
 
Pass Transistor Logic
Pass Transistor LogicPass Transistor Logic
Pass Transistor Logic
 
10 lm 555 timer
10 lm 555 timer10 lm 555 timer
10 lm 555 timer
 
Mains operated under voltage over voltage trip switch
Mains operated under voltage over voltage trip switchMains operated under voltage over voltage trip switch
Mains operated under voltage over voltage trip switch
 
LIGHT DETECTOR USING NAND GATE
LIGHT DETECTOR USING NAND GATELIGHT DETECTOR USING NAND GATE
LIGHT DETECTOR USING NAND GATE
 
WIRE BREAK CIRCUIT ALARAM
WIRE BREAK CIRCUIT ALARAMWIRE BREAK CIRCUIT ALARAM
WIRE BREAK CIRCUIT ALARAM
 
Logic not gate tutorial with logic gate truth table
Logic not gate tutorial with logic gate truth tableLogic not gate tutorial with logic gate truth table
Logic not gate tutorial with logic gate truth table
 

More from prathik

Ieee format
Ieee formatIeee format
Ieee format
prathik
 
Thyristor Commutation Techniques
Thyristor Commutation TechniquesThyristor Commutation Techniques
Thyristor Commutation Techniques
prathik
 
Ave - TV receiver (PAL - D circiut main)
Ave - TV receiver (PAL - D circiut main)Ave - TV receiver (PAL - D circiut main)
Ave - TV receiver (PAL - D circiut main)
prathik
 
Ecom
EcomEcom
Ecom
prathik
 
Ecom
EcomEcom
Ecom
prathik
 
"Dad you are the best"
"Dad you are the best""Dad you are the best"
"Dad you are the best"
prathik
 
" Dad you are the best "
" Dad you are the best "" Dad you are the best "
" Dad you are the best "
prathik
 
Microcontrollers 80 Marks Sample Question Paper
Microcontrollers   80 Marks Sample Question PaperMicrocontrollers   80 Marks Sample Question Paper
Microcontrollers 80 Marks Sample Question Paper
prathik
 
Microcontrollers 80 Marks Sample Question Paper
Microcontrollers   80 Marks Sample Question PaperMicrocontrollers   80 Marks Sample Question Paper
Microcontrollers 80 Marks Sample Question Paper
prathik
 
Industrial Electronics 80 Marks Sample Test Paper
Industrial Electronics    80 Marks Sample Test PaperIndustrial Electronics    80 Marks Sample Test Paper
Industrial Electronics 80 Marks Sample Test Paper
prathik
 
Digital Communication 80 Marks Sample Test Paper
Digital Communication   80 Marks Sample Test PaperDigital Communication   80 Marks Sample Test Paper
Digital Communication 80 Marks Sample Test Paper
prathik
 
Principles Of Computer Architecture And Maintenance 80 Marks Sample Questio...
Principles Of Computer Architecture And Maintenance   80 Marks Sample Questio...Principles Of Computer Architecture And Maintenance   80 Marks Sample Questio...
Principles Of Computer Architecture And Maintenance 80 Marks Sample Questio...
prathik
 

More from prathik (12)

Ieee format
Ieee formatIeee format
Ieee format
 
Thyristor Commutation Techniques
Thyristor Commutation TechniquesThyristor Commutation Techniques
Thyristor Commutation Techniques
 
Ave - TV receiver (PAL - D circiut main)
Ave - TV receiver (PAL - D circiut main)Ave - TV receiver (PAL - D circiut main)
Ave - TV receiver (PAL - D circiut main)
 
Ecom
EcomEcom
Ecom
 
Ecom
EcomEcom
Ecom
 
"Dad you are the best"
"Dad you are the best""Dad you are the best"
"Dad you are the best"
 
" Dad you are the best "
" Dad you are the best "" Dad you are the best "
" Dad you are the best "
 
Microcontrollers 80 Marks Sample Question Paper
Microcontrollers   80 Marks Sample Question PaperMicrocontrollers   80 Marks Sample Question Paper
Microcontrollers 80 Marks Sample Question Paper
 
Microcontrollers 80 Marks Sample Question Paper
Microcontrollers   80 Marks Sample Question PaperMicrocontrollers   80 Marks Sample Question Paper
Microcontrollers 80 Marks Sample Question Paper
 
Industrial Electronics 80 Marks Sample Test Paper
Industrial Electronics    80 Marks Sample Test PaperIndustrial Electronics    80 Marks Sample Test Paper
Industrial Electronics 80 Marks Sample Test Paper
 
Digital Communication 80 Marks Sample Test Paper
Digital Communication   80 Marks Sample Test PaperDigital Communication   80 Marks Sample Test Paper
Digital Communication 80 Marks Sample Test Paper
 
Principles Of Computer Architecture And Maintenance 80 Marks Sample Questio...
Principles Of Computer Architecture And Maintenance   80 Marks Sample Questio...Principles Of Computer Architecture And Maintenance   80 Marks Sample Questio...
Principles Of Computer Architecture And Maintenance 80 Marks Sample Questio...
 

Recently uploaded

20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
DianaGray10
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
SOFTTECHHUB
 
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Vladimir Iglovikov, Ph.D.
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
Uni Systems S.M.S.A.
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
Neo4j
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Malak Abu Hammad
 
Data structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdfData structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdf
TIPNGVN2
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Speck&Tech
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
Daiki Mogmet Ito
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
Claudio Di Ciccio
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
Neo4j
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems S.M.S.A.
 

Recently uploaded (20)

20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
 
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
 
Data structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdfData structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdf
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
 

Pull up & pull-down resistors

  • 1. Pull-up & Pull-down Resistors Often we want to connect a digital input line to our microcontroller. Typically this might be to allow us to monitor the on-off state of a switch. Eg. 5V Microcontroller switch 0V (gnd or ) At first glance this seems fine. When the switch is closed, the pin on our microcontroller is tied to 0 volt, ie. low. In contrast when the switch is open we would want the pin to be 5 volts, or high.
  • 2. The input pin would tend to “float” high. This however isn’t a true input signal, it is a very weak input and can readily switch from high to low through the slightest of electrical interference in any of the wiring.
  • 3. A simple solution might appear to involve simply connecting the other end of the switch to our 5 volt supply 5V Microcontroller switch 0V (gnd or ) This will give us a 5 volt (high) signal on the input pin when the switch is open. When the switch is closed however we will get a short between supply and ground => zero resistance => infinite current - this is not good news.
  • 4. The problem can be remedied by simply putting a resistor into the circuit. This is the pull-up resistor. 5V 10 kΩ Microcontroller switch 0V (gnd or ) When the switch is open, the input to the microcontroller is high. There is no direct connection to the 5v rail, however because the input impedence to the microcontroller is high, very little of the 5v is dropped over the pull up resistor. When the switch is closed current flows down through the resistor and through the closed switch to ground. The input pin is tied to ground and so will read low. This gives us what we want.
  • 5. A variation on this is the pull-down resistor. This ties the input pin to ground rather than the supply voltage. ie. 5V switch Microcontroller 10 kΩ 0V (gnd or )