V2013.14. 2 Avon High School Tech Club Agenda Old Business –Executive Committee –LCCUG meeting volunteer(s) –Reward Points Program New Business –Weekly.

Slides:



Advertisements
Similar presentations
MINECRAFT MOD PROGRAMMING Part III of Minecraft: Pi Edition October 31, 2015.
Advertisements

Lecture 1 – Arduino Basics
Centra Quick Tips Press button or Ctrl Key to speak Use button to ask questions Use button for Yes, button for No Use buttons for feedback - Step Out Text.
V Avon High School Tech Crew Agenda Old Business –Delete Files New Business –Week 13 Topics: Website Help Hyland Field Trip Review Coding Video.
MICROCONTROLLERS MODULE 2 Programming, Controlling and Monitoring.
1 Boe-Bot Parts BOE-BOT Lecture #1b DE - Digital Electronics.
V Avon High School Tech Crew Agenda Old Business –Delete Files New Business –Week 7 Topics: Tech Talks Field Trip Complete VirtualBox/Ubuntu.
Embedded Programming and Robotics Lesson 19 Raspberry Pi Programming in C 1.
Dr. Hoganson CSIS HC11 Demo Program This is our first lab using the 68HC11 microcontroller. We will “talk” to the microcontroller from a PC, run.
CS 0008 Day 2 1. Today Hardware and Software How computers store data How a program works Operators, types, input Print function Running the debugger.
INTRODUCTION TO PYTHON PART 2 INPUT AND OUTPUT CSC482 Introduction to Text Analytics Thomas Tiahrt, MA, PhD.
Embedded Programming and Robotics Introduction and Overview Presented by John Cole Senior Lecturer in Computer Science The University of Texas at Dallas,
Embedded Programming and Robotics Lesson 12 Introducing the Raspberry Pi Intro to Raspberry Pi1.
Image of Arduino. Arduino discussion Address issues with circuit walk-through – Electricity, Programming, Arduino Concepts Work on BeatTable (next week)
Raspberry Pi Training Truman College Goals of our Training Today Unbox and boot up the Raspberry Pi (RPi) Learn how to access the desktop graphical.
SINGLE BOARD COMPUTERS -KEVIN JOSE. WHY DO WE USE THEM? Good performance at low price GPIO capability to interact with the outside world Small form factor,
BASIC Stamp Editor Once installed, the Stamp Editor will be available on your desktop, and as a menu option under Start  Program Files  Parallax Inc.
V Avon High School Tech Crew Agenda Old Business –Delete Files New Business –Week 10 Topics: Coming up: –Yearbook Picture: Feb 7 12:20PM.
V Avon High School Tech Club Agenda Old Business –Delete Files New Business –Week 16 Topics: Intro to HTML/CSS –Questions? Tech Club Forums.
V Avon High School Tech Club Agenda Old Business –Delete Files New Business –Week 18 Topics: Intro to HTML/CSS: Questions? Summer Work Letter.
Presented by Chad Kafka This Month’s Topic: Wikispaces Advanced Today’s session is an introduction to what a WIKI is and how they can be used in education.
RASPBERRY PI IMPLEMENTING BINARY COUNTING Marlon Myers Computer Hardware Systems: EMT 2370 Instructor: Prof. Carranza.
IPad Appy Hour Session 3 With Bob and Lori. Agenda Ice Breaker Updates on Session 2 apps Student Directed Inquiry Game-Based Classroom Response System.
Introduction to Programming Workshop 1 PHYS1101 Discovery Skills in Physics Dr. Nigel Dipper Room 125d
Arduino. What is it? A open-source software suite and single-board microcontroller. Allows easy and affordable prototyping of microcontroller applications.
Intro to Python Adriane Huber Debbie Bartlett Python Lab #1Python Lab #1 1.
Introduction to Python Lesson 1 First Program. Learning Outcomes In this lesson the student will: 1.Learn some important facts about PC’s 2.Learn how.
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)
The George Washington University Electrical & Computer Engineering Department ECE 002 Dr. S. Ahmadi Class3/Lab 2.
Python for intel Galileo GEN2 TYWu. Software Download/Setup "Bigger" Linux Image Download the Arduino IDE for Galileo –
Intro to Raspberry Pi A Southwest Florida Hackerspace Workshop Presented by: Russell Benzing & Eric Schiffli.
Bonus EV3 Programming Lessons By Droids Robotics LEGO MINDSTORMS and Raspberry Pi Communicator.
Bonus EV3 Programming Lessons By Droids Robotics LEGO MINDSTORMS and Raspberry Pi IR Light controller.
Bonus EV3 Programming Lessons LEGO MINDSTORMS ev3dev and Raspberry Pi IR Light controller.
First Meeting. Meeting Guidance  Respect the teachers and volunteers.  Respect other students and share equally.  Be kind to the laptops and the robots!
Debugging Lab Antonio Gómez-Iglesias Texas Advanced Computing Center.
Embedded Software Design Week V Python Lists and Dictionaries PWM LED 1-Wire Temperature Sensor.
Embedded Software Design Week V Advanced Python 7- segment Display.
Raspberry Pi Project Control Your Home Lights with a Raspberry Pi.
Programming in Arduino Materials:Arduino Board Casperelectronics Pre Pres. Notes Photos from workshop?
Embedded Software Design Week III Processor Basics Raspberry Pi -> Blinking LEDs & pushing buttons.
Having fun with code, using Arduino in a middle school CS classroom
Class 1: Building a Raspberry Pi LED Flasher
By Rick Darby Sponsors: Geekspace Gwinnett The WorkSpot
RASPBERRY PI WORKSHOP.
Create Your Own Quiz using_Python KS3 COMPUTING KS3 Computing
Chapter A - The Raspberry Pi Computer
McMaster IEEE Student Branch
3.4 User Interfaces This tutorial will give you a first-hand experience of: Navigating the directory structure in a CLI and an unfamiliar GUI Running the.
Arduino Development for Beginners
Simple LED circuit.
WORKSHOP LED CONTROL.
RASPBERRY PI WORKSHOP.
Building Raspberry Pi Controllers with Python
Session 3 DIY Moderate Project
Lighting LEDs with a RASPBERRY PI
Hacking Minecraft on the Raspberry Pi using Python
Internet-of-Things (IoT)
Building an Internet of Things Device
What is a 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.
Reading / Writing analogue devices LED + Game-controller
Raspberry Pi 2/3 GPIO - LED, Button
Arduino Part 4 Let there be more light.
RPi 2/3 GPIO + Web(Flask)
Passive Infrared Sensor
SE-3910 Real-time Systems Week 4, Class 1 Quick-Quiz (Ungraded!)
Controlling LED with PWM
The Python interpreter
Chapter 7 IoT Physical Devices and Endpoints
Presentation transcript:

V

2 Avon High School Tech Club Agenda Old Business –Executive Committee –LCCUG meeting volunteer(s) –Reward Points Program New Business –Weekly Quiz –Updated Website Raspberry Pi Sensor Project –Intro to Python –LED

3 Avon High School Tech Club Executive Committee President –Name Vice President –Name Communications Director –Name Treasurer –Name Term begins next school year

4 Avon High School Tech Club Lorain County Computer User Group Website: Established around 1990 The majority of their members are retired Have a variety of knowledge and skills June 10 th Meeting: 6:00 – 7:30PM Present on a topic of our choice Volunteers?

5 Avon High School Tech Club Avon Library Explorers Program June 24 th at the Avon Public Library –Mini Explorers (Pre K - Kindergarten) 12:30-1:30 PM –Explorers (1 st - 5 th Grade) 2:00 -3:00 PM Theme is “Fun with Robotics” Game/activity/experiment that will be engaging, but not too advanced for respective age groups Any kid-friendly games or activities that we want to develop would be perfect No longer needed

6 Avon High School Tech Club Weekly Quiz What command should you use to immediately & gracefully shutdown and halt the Raspberry Pi? – sudo shutdown –h now What command would you use to find the amount of free memory? – free -h Which command shows a list of commands you recently typed? – history What command would you use to reconfigure the Raspberry Pi? – sudo raspi-config What Raspberry Pi feature will we use to communicate with off- board sensors? –GPIO No perfect scores!

7 Avon High School Tech Club Reward Points Program Earn reward points for: –Completing surveys, polls, etc. –Completing weekly tasks –Completing projects –Participate during meetings –Volunteer opportunities Redeem points for: –Tech Club gear –Other prizes Create reward levels

8 Avon High School Tech Club Raspberry Pi Sensor Project Goals for today: –Editors –Intro to Python –Connect LED

9 Avon High School Tech Club Getting Started: Editors nano IDLE Geany

10 Avon High School Tech Club Our First Python Program Create the hellopi.py file using nano as follows: nano -c hellopi.py Within our hellopi.py file, add the following code: #!/usr/bin/python #hellopi.py print ("Hello Raspberry Pi") When done, save and exit (Ctrl + X, Y, and Enter) To run the file, use the following command: python hellopi.py

11 Avon High School Tech Club Challenges for Reward Points Change “Hello Raspberry Pi” text to red Show CPU speed or Temperature Add ‘LED on/LED off’ to blink code Have the on/off message coincide with LED See website code samples for guidance

12 Avon High School Tech Club Using GPIO: Raspberry Pi Pinout

13 Avon High School Tech Club Using GPIO: Power a LED 1.Resistor connects between Ground and LED cathode (short lead) 2.Connect jumper from 3.3v to LED anode (long lead) 3.Connect black wire to Ground, pin 6 4.Connect red wire to 3.3v, pin 1

14 Avon High School Tech Club Using GPIO: Code to Blink LED #!/usr/bin/env python # Must be run as root: sudo python blink11led.py # Import necessary modules # Provides various time-related functions import time # Control Raspberry Pi GPIO channels import RPi.GPIO as GPIO

15 Avon High School Tech Club Using GPIO: Code to Blink LED # Blinking function, turns LED on/off def blink(pin): # Turn LED on GPIO.output(pin, GPIO.HIGH) # Pause for 1 second time.sleep(1) # Turn LED off GPIO.output(pin, GPIO.LOW) # Pause for 1 second time.sleep(1) return

16 Avon High School Tech Club Using GPIO: Code to Blink LED # Use Raspberry Pi board pin numbers GPIO.setmode(GPIO.BOARD) # Set the output channel/pin GPIO.setup(11, GPIO.OUT) # Blink LED 10 times for i in range(0,10): blink(11) # Reset any GPIO pins when you exit the program GPIO.cleanup()

17 Avon High School Tech Club Using GPIO: Blinking LED 1.Remove red wire 2.Connect yellow wire from pin 11 to anode of LED (long lead)

18 Avon High School Tech Club More Python Fun Code samples: –Add colors to terminal –Get system information See our webpage under ‘Raspberry Pi Workshop’ –Look for ‘additional Python examples to try!’

Avon High School Tech Club 19 Backup Slides

20 Avon High School Tech Club How do Python Programs Run?