Running GPIO





See the video for connecting everything. Then, when you're ready to run the program:

sudo python gpioexample.py

Once hitting enter, the LED light should turn on, and you should have the password question in the terminal.

If you type the correct password, then you should see that the LED turns off for four seconds before turning back on. If you type the wrong password, the light should not turn off.

Now that you have a very basic example of using the GPIO pins, let's take this up a notch.

The next tutorial:






  • Robotics with the Raspberry Pi
  • Programming GPIO example
  • Running GPIO
  • Building Autonomous / RC car intro
  • Supplies needed
  • Motor Control
  • Connecting the four motors
  • Forward and Reverse
  • Turning
  • Pivoting
  • User Control
  • Remotely controlling the car
  • Adding a distance sensor (HC-SR04)
  • Programming with the distance sensor
  • Autopilot and/or auto-correct
  • Autonomous Beginnings
  • Testing Autonomous Code
  • Streaming video example one
  • Less latency streaming option