loading
2 Comments

Tell us about yourself!

Complete Your Profile
  • Arduino: How to Connect Common Sensors and Items

    You could make use of the integrated pullup-resistors on the digital pins instead of connecting buttons for example to 5V. So you just need to connect one side to ground and the other side to a digital pin.In the script, you set the pin as an output and then write digitalwrite(pin, HIGH); this way the normal state is HIGH and if you push the button the pin reads LOW. Very easy, less parts. Works with other parts on your list as well.

    You could make use of the integrated pullup-resistors on the digital pins instead of connecting buttons for example to 5V. So you just need to connect one side to ground through and the other side to a digital pin. In the script, you set the pin as an output and then write digitalwrite(pin, HIGH); this way the normal state is HIGH and if you push the button the pin reads LOW. Very easy, less parts. Works with other parts on your list as well.

    View Instructable »