Skip to content

GPIO Input/Output examples for the rpi using nerves

Notifications You must be signed in to change notification settings

zacck-zz/nerves_io

Repository files navigation

Simplistic Example Circuit for Using GPIO for inputs and outputs

Requisites

  1. Raspberry PI
  2. Jumper Wires
  3. LED
  4. Push Button Switch
  5. 10K ohms Resistor
  6. 560 ohmS Resistor

Steps

  1. Build a Ground Rail from your raspberry PI we will use this to ground the switch and the LED later on
  2. Connect one end of your 560 Ohms resistor to ground and the other end to one of the LED legs
  3. Connect the other leg of the LED to the to a GPIO pin in this example it is GPIO17
  4. Connect one end of your 10k Ohms resitor to a 5V source and one of the usable legs of your switch
  5. Connect the other usable leg of your Switch to a GPIO pin in this case GPIO26

Checkout the image below for an example

img_20190217_175214

About

GPIO Input/Output examples for the rpi using nerves

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages