Raspberry Pi Model 2 B Electronics Project — Part 1
1 min readMar 29, 2020
Setup Steps and Resources
- https://www.raspberrypi.org/documentation/installation/installing-images/linux.md — To install the OS to a SD card
- https://www.raspberrypi.org/documentation/configuration/wireless/headless.md--Enable SSH
- http://www.knight-of-pi.org/setup-simultanous-ethernet-and-wifi-access-for-the-raspberry-pi-3/ — To configure the wifi module and Ethernet
- 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
- https://www.digikey.co.uk/en/resources/conversion-calculators/conversion-calculator-resistor-color-code-5-band — Resistor conversion website
- https://gpiozero.readthedocs.io/en/stable/installing.html — Installing gpiozero
Single LED
- https://projects.raspberrypi.org/en/projects/physical-computing/3 — Single lit LED project
Single blinking LED
- https://projects.raspberrypi.org/en/projects/physical-computing/4
- https://projects.raspberrypi.org/en/projects/physical-computing/5
- https://gpiozero.readthedocs.io/en/stable/ — About section for blinking LED
Single Blinking LED with Switch
- https://projects.raspberrypi.org/en/projects/physical-computing/6
- https://gpiozero.readthedocs.io/en/stable/api_input.html
- https://projects.raspberrypi.org/en/projects/physical-computing/7
- https://projects.raspberrypi.org/en/projects/physical-computing/8
from gpiozero import LED
from gpiozero import Button
import time
from signal import pauseled = LED(17)
button = Button(2)button.wait_for_press()
print("You pushed the button")while True:
led.on()
time.sleep(1)
led.off()
time.sleep(1)
if button.is_pressed:
breakbutton.when_pressed = led.on
button.when_released = led.offpause()print("exiting")