In this tutorial, I will show how to plug and control


One thing to know: When a Nusbio gpio is open in input mode, it is automatically in pull up mode.

  • If the gpio has no connection to ground the state is High with a 1 volt value.
  • If the gpio has a connection to ground the state is low.
  • If the gpio has a connection to ground and a connection to a gpio in high state or to VCC the state is high.
If you do not know what this mean, you can ignore it for now, just follow the tutorials.



Source Code

Breadboarding

  • PIR Motion Sensor
  • Interruptor 2 wires
  • Interruptor 3 wires








In this tutorial, I will show how to plug and control buttons using different wiring

  • 2 wires with pull up resistor
  • 3 wires with pull down resistor



Source Code
More about pull down and pull up resistor:

Breadboarding

  • 2 Wires - Pull up resistor
  • 3 Wires - Pull down resistor