robertferanec , 01-15-2020, 06:23 AM
If you like, you can use pull up on board like this. There are a few things to consider:
- many chips include internal Pull up, you may not even need that external pull up, just enable it inside of the chip
- you need to be sure, that signal will be de-bounced. When you press a button like this, you will often get multiple impulses - that can cause a lot of problems with your software (even if you think you just pressed the button once, you still may get number of impulses). There are several ways how to filter that impulses - some chips have build in de-bouncing filter, it can be filtered by software, it can be de-bounced outside of the chip as I have it done in 28pins
Does it answer your question?
Calculate value:
Depends what current you need for the input pin to register High/Low and is still reliable and immune for noise - usually for input pins very small current is required. You do not want to use a too low pull up as then your board will have unnecessary higher power consumption (when you press the button, current will flow through resistor to GND - that is wasted power).
For calculation it is all about R=U/I and P=U.I, but general values for standard pull ups are 10k for 5V and 4.7k for 3.3V. However you have to be very careful - in some situations you need different pull ups, e.g. if you need something stronger (often for I2C) 2.2k is used or if there is internal pull up / down resistors inside of CPU or MCU, often 1k resistors are used.
Comments:
FurkanDursun, 01-16-2020, 01:34 AM
So Why we use these resistors on 28Pin project. I Think Arduino have internal Pull Up.