Raspberry Pi Model 2 B Electronics Project — Part 1

Setup Steps and Resources

  1. https://www.raspberrypi.org/documentation/installation/installing-images/linux.md — To install the OS to a SD card
  2. https://www.raspberrypi.org/documentation/configuration/wireless/headless.md--Enable SSH
  3. http://www.knight-of-pi.org/setup-simultanous-ethernet-and-wifi-access-for-the-raspberry-pi-3/ — To configure the wifi module and Ethernet
  4. https://www.digitalocean.com/community/tutorials/how-to-configure-ssh-key-based-authentication-on-a-linux-server — To allow me to ssh with my public key
  5. https://www.digikey.co.uk/en/resources/conversion-calculators/conversion-calculator-resistor-color-code-5-band — Resistor conversion website
  6. https://gpiozero.readthedocs.io/en/stable/installing.html — Installing gpiozero

Single LED

  1. https://projects.raspberrypi.org/en/projects/physical-computing/3 — Single lit LED project

Single blinking LED

  1. https://projects.raspberrypi.org/en/projects/physical-computing/4
  2. https://projects.raspberrypi.org/en/projects/physical-computing/5
  3. https://gpiozero.readthedocs.io/en/stable/ — About section for blinking LED

Single Blinking LED with Switch

  1. https://projects.raspberrypi.org/en/projects/physical-computing/6
  2. https://gpiozero.readthedocs.io/en/stable/api_input.html
  3. https://projects.raspberrypi.org/en/projects/physical-computing/7
  4. https://projects.raspberrypi.org/en/projects/physical-computing/8
from gpiozero import LED
from gpiozero import Button
import time
from signal import pause
led = LED(17)
button = Button(2)
print("You pushed the button")
while True:
if button.is_pressed:
button.when_pressed = led.on
button.when_released = led.off

On an adventure

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store