Header Ads

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.

Our purpose is to learn about using Raspberry Pi and control with other tools such as Computer TV Keyboard Mouse.

Hardware components


Raspberry Pi
x
1

Push Button
x
1

LED
x
1

100 ohm Resistor
x
1

Breadboard (generic)
x
1

Jumper Wires
x
4






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.

How To Set Up

1 comment:

Powered by Blogger.