Raspberry Pi Using Push Button to Control LED
Project Practicum: Raspberry Pi Using Push Button to Control LED | Directions By Tharoeun Thap | Creator By: Heng Lyhor |
What is the Raspberry Pi?
The Raspberry Pi is a low cost, credit-card sized computer that plugs into a computer monitor or TV, and uses a standard keyboard and mouse. It is a capable little device that enables people of all ages to explore computing, and to learn how to program in languages like Scratch and Python.Hardware components
Raspberry Pi
|
x
|
1
|
|
Push Button
|
x
|
1
|
|
x
|
1
|
||
100 ohm Resistor
|
x
|
1
|
|
Breadboard (generic)
|
x
|
1
|
|
Jumper Wires
|
x
|
4
|
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhY-vG5RkCB-9tk7LdbZMERcpA8WGt1KVrpH8Z9TvYYeCISgHsp_qCo47l43scXZal0XqV_OjFHGtpOUMXPJsaadQWDeXsUkHnUG5onYd8viHUgP82kvk0pezbaTLQQ8o-dZJugiegkabo/s200/cobbler_cable-800x800.jpg)
GPIO Breakout x 1
How to switch on your LED using a button with your Raspberry Pi. Push buttons or switches connect two points in a circuit when you press them. This tutorial turns on one LED when the button pressed once, and off when pressed twice. Υou will also learn how to use 'flag' variable to control an event.
so grate
ReplyDelete