Control you Raspberry Pi with a BUTTON
Vložit
- čas přidán 23. 07. 2024
- 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...
Subscribe for more Raspberry Pi tutorials :) czcams.com/users/samwestbytech...
I may earn commission if you purchase from the links below:
MY CAMERA: amzn.to/3reaDlK
MY MICROPHONE: amzn.to/3fhunSN
MY LIGHTING: amzn.to/3dHll1i
FREE Amazon Prime: amzn.to/3ren80W
FREE Audible Plus: amzn.to/3xYzJsR
RASPBERRY PI 4: amzn.to/3BC4i9I
RASPBERRY PI PICO START KIT: amzn.to/3REvjis
RASPBERRY PI CAMERA V2: amzn.to/3QFp90c
ELECTRONICS COMPONENT STARTER KIT: amzn.to/3qB23xg
ASSORTED SENSOR KIT: amzn.to/3U7M7zV
USB SPEAKER: amzn.to/3La4foK
USB 1080P WEBCAM: amzn.to/3Lq0OL7
GPIO tutorial series playlist - • Blinking LED Raspberry...
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 - 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 - Věda a technologie
Dude I’m learning more and more with your video , thanks man . Please continue to upload more basic stuff so that I can be strong in basics and learn more
Second generation Westby teaching me electronics, good work!
Keep making these, they are super helpful
Super simple and clean!! 1 thing I’m super new to coding this and struggling to find a way to use a push button to trigger camera I have hooked up I can preview it etc but desperately need a script
Great tutorial
great video. One thing, would've liked to have heard precisely how the second "while" loop worked, eg the waiting (looping), toggle, the delay (sleep), etc. figured it out though, thank you
Sir kindly make a video to control a servo motor by using Open-Cv with raspberry pi 4
How to use this button as controller arrow to raspbian keyboard?
Thank you Sam... I am just wondering, do we really need "sudo nano..." while we run Python without sudo? Great tutorials, best regards from Australia.
can i add as many buttons as i want? and make a keyboard?
THE SUBSCRIBE BUTTON WAS PRESSED! 😁
Just wondering if you can use a button to terminate a running program on raspberry pi
yes you can using subprocess python library
Great videos. FYI you can a typo in your title. “Control youR”
Does it have to be gpio 2 ?
No
I have a bigger button than yours? How do I set it up to work
You have to figure out which wires to which thing. Figure out which wires are connected when the button is pressed and which wires are disconnected when the button is released
What if i dont want the button to be on the breakboard?
I use the breadboard so I don’t have to solder anything. If you don’t want to use a breadboard, you can connect the wires of the components into the circuit I talk about
@@SamWestbyTech Thanks
How can i get this working with raspberry pi pico?
why to teach python on the teminal ???