This shows you the differences between two versions of the page.
iot:res:electronics [2015/06/22 01:49] madalina.tanea [Button] |
iot:res:electronics [2015/06/22 01:50] (current) madalina.tanea [Button] |
||
---|---|---|---|
Line 56: | Line 56: | ||
{{ :iot:res:button_correct.png?300 |}} | {{ :iot:res:button_correct.png?300 |}} | ||
- | This time you will not have a short circuit because if the button is pressed there is the R resistor. The R resistor is called a pull up resistor// and the whole system is called a //voltage divider//. If the button is pressed our pin's value will be LOW. | + | This time you will not have a short circuit because if the button is pressed there is the R resistor. The R resistor is called a //pull up resistor// and the whole system is called a //voltage divider//. If the button is pressed our pin's value will be LOW. |
You can also connect the resistor to the Ground. Now you have a pull-down resistor and the pin's value will be HIGH when the button is pressed and low otherwise. | You can also connect the resistor to the Ground. Now you have a pull-down resistor and the pin's value will be HIGH when the button is pressed and low otherwise. | ||
Line 63: | Line 63: | ||
Whenever you connect anything to your board you must assure that the it is not powered up. Otherwise you might accidentally create a short-circuit and burn the board. | Whenever you connect anything to your board you must assure that the it is not powered up. Otherwise you might accidentally create a short-circuit and burn the board. | ||
- | Only after you assured that everything is correctly connected, you may safely power it up.\par | + | Only after you assured that everything is correctly connected, you may safely power it up. |