Control you Raspberry Pi with a BUTTON

  Переглядів 13,077

Sam Westby Tech

Sam Westby Tech

День тому

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 :) ukposts.info...
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

КОМЕНТАРІ: 19
@scottrupprecht4161
@scottrupprecht4161 Місяць тому
Second generation Westby teaching me electronics, good work!
@moganthkumar5831
@moganthkumar5831 Рік тому
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
@kevinangers
@kevinangers Рік тому
Keep making these, they are super helpful
@123123mike
@123123mike 6 місяців тому
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
@RBIBIANO
@RBIBIANO Рік тому
How to use this button as controller arrow to raspbian keyboard?
@jahanstuddy1664
@jahanstuddy1664 Рік тому
Sir kindly make a video to control a servo motor by using Open-Cv with raspberry pi 4
@XxtheonexX1011
@XxtheonexX1011 2 місяці тому
can i add as many buttons as i want? and make a keyboard?
@kaashyapmithra7430
@kaashyapmithra7430 Рік тому
THE SUBSCRIBE BUTTON WAS PRESSED! 😁
@user-rc4np6mp3d
@user-rc4np6mp3d 10 місяців тому
Just wondering if you can use a button to terminate a running program on raspberry pi
@winwiths.g6155
@winwiths.g6155 6 місяців тому
yes you can using subprocess python library
@cd819
@cd819 11 місяців тому
Does it have to be gpio 2 ?
@bobbobsen1234
@bobbobsen1234 8 місяців тому
No
@connortaco56
@connortaco56 Рік тому
I have a bigger button than yours? How do I set it up to work
@SamWestbyTech
@SamWestbyTech Рік тому
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
@fizzwaregaming8966
@fizzwaregaming8966 Рік тому
What if i dont want the button to be on the breakboard?
@SamWestbyTech
@SamWestbyTech Рік тому
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
@fizzwaregaming8966
@fizzwaregaming8966 Рік тому
@@SamWestbyTech Thanks
@fizzwaregaming8966
@fizzwaregaming8966 Рік тому
How can i get this working with raspberry pi pico?
@odedgilad9761
@odedgilad9761 4 місяці тому
why to teach python on the teminal ???
Control an RGB LED with your Raspberry Pi
13:33
Sam Westby Tech
Переглядів 10 тис.
Turning a Raspberry Pi Pico into a GPU!
16:42
element14 presents
Переглядів 98 тис.
😱СНЯЛ ФИКСИКОВ НА КАМЕРУ‼️
00:35
OMG DEN
Переглядів 1,3 млн
The World's Fastest Cleaners
00:35
MrBeast
Переглядів 87 млн
Blinking LED Raspberry Pi Tutorial
12:32
Sam Westby Tech
Переглядів 18 тис.
Raspberry Pi RetroPie Shutdown Button
6:31
Pi Spy
Переглядів 40 тис.
How to Use Push Buttons With Raspberry Pi GPIO (with Python gpiozero)
10:18
Auto start any program on your Raspberry Pi 4 or Pi 5  Super easy !
2:53
1500 watts and a Wire
Переглядів 311
The Pi Pico has problems, so I made my own, the ProPico
7:17
Dmytro Engineering
Переглядів 34 тис.
A Better Way to Waterproof Fabric
28:50
NightHawkInLight
Переглядів 10 тис.
Raspberry Pi 5 M.2 HatDrive!
15:48
ExplainingComputers
Переглядів 222 тис.
Raspberry Pi Object Detection Tutorial
9:20
Sam Westby Tech
Переглядів 66 тис.
Raspberry Pi Servo Motor Control - No Jitter!
13:52
Gary Explains
Переглядів 50 тис.
Result of the portable iPhone electrical machine #hacks
1:01
KevKevKiwi
Переглядів 7 млн
All New Atlas | Boston Dynamics
0:40
Boston Dynamics
Переглядів 5 млн
Обзор Nothing ear (3) и ear (a) - ПРОРЫВ за $100
17:34
Я Создал Новый Айфон!
0:59
FLV
Переглядів 1,6 млн