Control you Raspberry Pi with a BUTTON

Опубликовано: 07 Октябрь 2024
на канале: Sam Westby Tech
20,787
357

This video shows you how to control your Raspberry Pi using a button. I also show you how to turn an LED an and off using a button and the Raspberry Pi GPIO pins. This builds off part 1 - Blinking LED    • Blinking LED Raspberry Pi Tutorial  

Subscribe for more Raspberry Pi tutorials :) https://www.youtube.com/samwestbytech...

I may earn commission if you purchase from the links below:

MY CAMERA: https://amzn.to/3reaDlK
MY MICROPHONE: https://amzn.to/3fhunSN
MY LIGHTING: https://amzn.to/3dHll1i

FREE Amazon Prime: https://amzn.to/3ren80W
FREE Audible Plus: https://amzn.to/3xYzJsR

RASPBERRY PI 4: https://amzn.to/3BC4i9I
RASPBERRY PI PICO START KIT: https://amzn.to/3REvjis
RASPBERRY PI CAMERA V2: https://amzn.to/3QFp90c
ELECTRONICS COMPONENT STARTER KIT: https://amzn.to/3qB23xg
ASSORTED SENSOR KIT: https://amzn.to/3U7M7zV
USB SPEAKER: https://amzn.to/3La4foK
USB 1080P WEBCAM: https://amzn.to/3Lq0OL7

GPIO tutorial series playlist -    • Blinking LED Raspberry Pi Tutorial  

0:00 Intro
0:23 Materials
Raspberry Pi
Male-Female jumper x3
Small piece of wire (optional)
Breadboard
Button
LED
~100 ohm resistor (BrBkBr)
1:27 Part 1 Recap
Raspberry Pi Foundation's tutorial - https://projects.raspberrypi.org/en/p...
2:02 Set up the circuit
3:47 Set up the code
5:35 Add the LED circuit
6:55 Add the LED toggling code
9:16 LED as a switch
11:20 Thank you