1 Button 2 Buttons Light Emitting Diodes LED and Buttons

Slides:



Advertisements
Similar presentations
The Important Thing About By. The Important Thing About ******** The important thing about ***** is *****. It is true s/he can *****, *****, and *****.
Advertisements

Raspberry Pi The singing jelly baby.
LED Display. LED Typical LED forward bias voltage: 1.5 to 2.0 V Typical currents needed to light LED range from 2 to 15 mA.
V Avon High School Tech Club Agenda Old Business –Executive Committee –LCCUG meeting volunteer(s) –Reward Points Program New Business –Weekly.
1 Powers of Two: Trace Ex. Print powers of 2 that are  2 N. Increment i from 0 to N. Double v each time. int i = 0; int v = 1; while (i
Simple Electronics: Ring Oscillator
P1f(i) Data Transmission You will learn about: How Infrared is used Analogue and Digital Signals
Chapter 9 IF Statement Bernard Chen. If Statement The main statement used for selecting from alternative actions based on test results It’s the primary.
RASPBERRY PI IMPLEMENTING BINARY COUNTING Marlon Myers Computer Hardware Systems: EMT 2370 Instructor: Prof. Carranza.
Coding By: Katie XXXXXX. Agenda Programming Languages Hardware Coding Example 1: Hello World Coding Example 2: Fibonacci Sequence Coding Example 3: Balloon.
NPN Foundations of Technology NPN © 2013 International Technology and Engineering Educators Association, STEM  Center for Teaching and Learning™ Foundations.
Basic Stamp OEM module By Wilmer Arellano. OEM BASIC Stamp 2sx Wiring diagram Note: - is connection to negative pole of the battery 220 Ohm Push button.
Measuring the Current and Voltage of a 820 Ω Resistor Setting for Multimeter = 200 mA DC Measure Voltage in 2 V increments up to 20 V.
Robotics Research Laboratory Louisiana State University.
Development Environments Raspberry Pi ® Saman Amighi 04/2014 ® Raspberry Pi Foundation.
Engineering 1040: Mechanisms & Electric Circuits Winter 2015 Interfacing Light-Emitting Diodes (LEDs) & Push Buttons to Microcontrollers.
How an NPN Transistor Works
Braille Printer An-Najah National University Faculty of Engineering Braille Printer Prepared by : Rbee waheeb Supervisor: Dr. Nidal Farahat May
DPNM Lab., POSTECH 1/8 CS490K - Internet of Things (IoT) Jonghwan Hyun DPNM Lab. Department of Computer Science and Engineering, POSTECH
Welcome to Week 4 at the Summer Computer Club Raspberry Pi (contd)
Hacking Minecraft on the Raspberry Pi using Python
Bonus EV3 Programming Lessons LEGO MINDSTORMS ev3dev and Raspberry Pi IR Light controller.
CheckBox i Option Button. Private Sub Command1_Click() Check1 = 1 If Check1 = 1 Then Text1.FontBold = True Else Text1.FontBold = False End If Check2 =
Multipurpose Helper By: Tylee Thompson. Multi usages  Helps to keep track of the lines of words you may have left off from reading.  The middle of the.
Light Emitting Diode (LED). $5 each $0.001/hr.
Hacking Minecraft on the Raspberry Pi using Python Lesson 2 1.
Embedded Software Design Week V Advanced Python 7- segment Display.
Raspberry Pi Project Control Your Home Lights with a Raspberry Pi.
Raspberry Pi project - 라즈베리파이로 핑퐁게임하기 신동윤 박지환.
Output and Actuator Output: Any signal or information, digital or analog that has been decided in a system by a systematic processing way is known as.
Embedded Software Design Week III Processor Basics Raspberry Pi -> Blinking LEDs & pushing buttons.
Raspberry pi GPIO Basic’s Lecturer: Reza Arjmandi Summer 2016 Preface: This chapter contains some basic recipes for setting up and using the Raspberry.
What is your age in binary? I am is a decimal number Use this table to convert a decimal number into a binary number. To make 12 I need to add 8.
Light Dependent Resistor
DSC - fundamente MPU MCU DSP DSC Alternative Freescale
WORKSHOP LED CONTROL.
RASPBERRY PI WORKSHOP.
Building Raspberry Pi Controllers with Python
Session 3 DIY Moderate Project
Lighting LEDs with a RASPBERRY PI
Objective of the lesson
Hacking Minecraft on the Raspberry Pi using Python
Electronics – Learning Outcomes
Hacking Minecraft on the Raspberry Pi using Python
Hacking Minecraft on the Raspberry Pi using Python
BBC Microbit.
Internet-of-Things (IoT)
Match the circuit symbols How many of these can you name?
Raspberry Pi: External Inputs & Outputs
Traffic light programming challenges
Raspberry Pi with Pibrella
Motion Controlled Servo Motor
BASIC ELECTRONICS - Basic electronic component:- V Sr.No
Reading / Writing analogue devices LED + Game-controller
Project # Smart Home REU student: Jason Ling Graduate mentors: Safa Bacanli Faculty mentor(s): Damla Turgut Week 3 (May 28 – June 4, 2018) Accomplishments:
IF Statements.
CheckBox i Option Button
Raspberry Pi 2/3 GPIO - LED, Button
RPi 2/3 GPIO + Web(Flask)
How a PNP Transistor Works
Light Dependent Resistor
Passive Infrared Sensor
Controlling LED with PWM
Lecture 8: Arduino 20 March 2019.
Logically, the output will be 1
In this task you will see different shapes.
BASIC ELECTRONICS - Basic electronic component:- V Sr.No
Chapter 7 IoT Physical Devices and Endpoints
Table 1. Measurements of LEDs
Presentation transcript:

1 Button 2 Buttons Light Emitting Diodes LED and Buttons Raspberry Pi Projects 1 Button 2 Buttons Light Emitting Diodes LED and Buttons

Simply Button import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setup(17, GPIO.IN,pull_up_down=GPIO.PUD_UP) while True: input_state = GPIO.input(17) if input_state == False: print('Thanks MESEF') time.sleep(0.2)

2 Buttons from time import sleep import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) button1=17 button2=12 GPIO.setup(button1,GPIO.IN,pull_up_down=GPIO.PUD_UP) GPIO.setup(button2,GPIO.IN,pull_up_down=GPIO.PUD_UP) while(1): if GPIO.input(button1)==0: print("Button 1 was pressed:") sleep(0.1) if GPIO.input(button2)==0: print("Button 2 was pressed:")

Simple LED from gpiozero import LED from time import sleep led = LED(17) while True: led.on() sleep(2) led.off()

Button and LED from time import sleep import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) button1=17 LED1=21 GPIO.setup(button1,GPIO.IN,pull_up_down=GPIO.PUD_UP) GPIO.setup(LED1,GPIO.OUT) BS1=False while(1): if GPIO.input(button1)==0: print ("Button 1 was pressed") if BS1==False: GPIO.output(LED1,True) BS1=True sleep(0.5) else: GPIO.output(LED1,False)