LED Control

Outline

  • We’ll make a LED blink in this post. Gotta start somewhere.

Preview

Materials

  • Raspberry Pi
    • For example through CanaKit
    • $70 on amazon
  • electric cables
    • $7 on amazon
    • There are probably cheaper options
  • electronics start kit
    • $13 on amazon
    • There are definitely cheaper options
    • For this tutorial, we’re just using an LED, a 1k resistor, and a breadboard
  • commonly available materials
    • keyboard
    • mouse
    • monitor
    • hdmi-to-hdmi cable to connect raspberry pi to monitor
  • total cost: $90 + cost of common materials

Walkthrough

  • set up the raspberry pi
  • set up raspberry pi wifi connection and ssh
    • connect pi to monitor, mouse, keyboard
    • follow these instructions to set up ssh
      • hostname -I to get ip address
      • ssh pi@<ip address>
        • from your other computer
      • default password is raspberry
  • set up raspberry pi with LED
    • see Raspberry Pi Cookbook instructions tutorial
    • download my version of the code
      • run sudo python 1_led.py from cmd line

Result

Blake Wulfe
Blake Wulfe
Research Engineer