Welcome to Week 4 at the Summer Computer Club Raspberry Pi (contd)

Slides:



Advertisements
Similar presentations
Amplifying Signals Breadboarding: from a diagram to an actual working amplifier.
Advertisements

V Avon High School Tech Club Agenda Old Business –Executive Committee –LCCUG meeting volunteer(s) –Reward Points Program New Business –Weekly.
CSC 405 Lab 1 - Building a Simple Combinatorial Circuit In this laboratory exercise you will learn about the layout of some small-scale integrated circuits.
Fair Use Building and Research Labs Presents
MICROCONTROLLERS MODULE 2 Programming, Controlling and Monitoring.
Presentation by John Lamb Trainee Master Teacher Monkwearmouth Academy Physical Computing with the Raspberry Pi.
Investigating Basic Circuits Pre-Activity Discussion
Embedded Programming and Robotics Lesson 1 Basic Electricity and Electronics Transistor Basics Lesson 1 -- Basic Electricity1.
Presented by Tim Surtell in association with
LED Display Prof. Betty Lise Anderson. Here’s what you’re going to build.
PRACTICAL ELECTRONICS MASTERCLASS (Mr Bell) (COMPUTERS REQUIRED FOR 1 ST PERIOD) 1.
Welcome to Week 5 at the Summer Computer Club GPS and Geocaching.
Week 10 Today 1.Homework presentations and critique. 2.Review digital and analog inputs. 3.DIY - jumpers, soldering etc.
Ch4 Electronic Components Circuit/Schematic Symbols.
ENGR 1181 First-Year Engineering Program College of Engineering Engineering Education Innovation Center First-Year Engineering Program Solar Energy Meter.
1 Applied Control Systems Technology. 2 Pin configuration Applied Control Systems.
Introductory Electronics Summer Institute 2004 Michelle Vidberg Peter Beens.
Circuits Lab ENGR 1181 Lab #3. Circuits in the Real World Many engineering fields and products require the use of circuits. Some are more complicated.
Practice Problems to become familiar with circuits and circuit diagrams.
Experiments Day 1 & 2 Resistors, Potentiometers and Photocells.
Experiments Day 1 Resistors.. Electronic Technology Definition: The technology of using small amounts of electricity for controlling, detecting, collecting,
First, let’s review the structure and use of a breadboard.
Software and documentation Download and install: “Setup-Stamp-Editor-Lrg-v2.2.6.exe”  Downloads  BASIC Stamp software BASIC Stamp Syntax.
Introduction to Electric Circuits. What is Electricity? No one really knows… A good definition for our class is: “Electricity is the flow of electrons.
Solar Energy Lab 1 ENGR Today's Learning Objectives  After today's class, students will be able to: Describe and build both a calibration and solar.
Circuits, Systems, & the Arduino. Challenge: Make the bulb light up! -Make observations and explain why it has the setup it does? - What are the components.
How an NPN Transistor Works
Analog to Digital Converter David Wallace English 314.
Basic Stamp OEM module By Wilmer Arellano. 2  The BASIC Stamp 2 OEM is a discreet component version of the BS2 which may be purchased in kit form. 
What is a circuit? A set of connected electrical components that provide one or more complete paths for the movement of charges. A set of connected electrical.
Detection Circuit ENGR Pre Lab.
INTERNET OF EVERYTHING SDU 2016 Week 4. Simple Digital and Analog Inputs  The Arduino’s ability to sense digital and analog inputs allows it to respond.
An introduction to PIC’s for KS3 and KS4. Mr Rooks Hetton School.
Basic Stamp OEM module By Wilmer Arellano. 2  The BASIC Stamp 2 OEM is a discreet component version of the BS2 which may be purchased in kit form. 
Electronics for Physical Computing Materials: capacitor, diode, LED, transistor, switch,resistor, relay, proto board, multimeter.
Praxis I 13 Oct Outline Component & Device Measurement and Instrument Datasheet How to build circuit using breadboard.
Controlling an LED with a switch. 2 breadboard place where you can build electric circuits really quickly the magical breadboard.
Diode Foundations of Technology Diode © 2013 International Technology and Engineering Educators Association, STEM  Center for Teaching and Learning™ Foundations.
Number Systems Decimal Can you write 12,045 in expanded form? Base? Allowable digits for each place?
Set up your circuit board 2 batteries, bulb, switch, and variable resister.
Prototyping with Microcontrollers and Sensors. Overview Objective Background Information Problem Statement Materials Procedure Assignment Closing.
Having fun with code, using Arduino in a middle school CS classroom
Introduction to Electric Circuits
Class 1: Building a Raspberry Pi LED Flasher
Assist. Prof. Rassim Suliyev - SDU 2017
Prototyping with Microcontrollers and Sensors
Circuit Simulation Training
Microprocessors Tutorial 1: Arduino Basics
WORKSHOP LED CONTROL.
Fair Use Building and Research Labs Presents
Building Raspberry Pi Controllers with Python
Arduino Basics Rajeev Dwivedi, PhD.
How to avoid catching things on fire.
Circuit Introduction Section 1:
Electronic Education Kits
ARDUINO     What is an Arduino? Features 14 Digital I/O pins 6 Analogue inputs 6 PWM pins USB serial 16MHz Clock speed 32KB Flash memory 2KB SRAM.
EET 2259 Unit 12 Data Acquisition
Internet-of-Things (IoT)
Churchmead Design Technology
Basic Electronics Part Two: Electronic Components.
Fair Use Building and Research Labs Presents
Basic circuits Electrical circuits Electrical properties Ohm’s law
Chapter 1 Introduction of Arduino
CTY SAR FCPS Shawn Lupoli, Elliot Tan
Ohm’s Law and Circuit Basics
CTY SAR FCPS Shawn Lupoli, Elliot Tan
testing and experimenting with electronic circuits
I/O Experiments Assignment 1.
2019 Investing Now Summer Program
Presentation transcript:

Welcome to Week 4 at the Summer Computer Club Raspberry Pi (contd)

Homework - Week3 Go through Khan Academy data-types-and-variables Binary Numbers Python lists For loops While loops Fun with strings Factorial Program (Simple) Flowchart Two programs: 1. Hello world, printing Hello to all students in the Friends Computer club with as few lines of code as possible 2. Simple Factorial Program that takes a number from user and computes its factorial. 3. Calculator (Holiday week)

Electronics in depth Instructional Videos (Watch out for more from Adafruit Videos) A For Ampere B for Battery Circuit Playground Explaining Electrical Circuit

Basics Breadboard ( started/breadboard) started/breadboard Breadboard is a way of constructing electronics without having to use a soldering iron. Components are pushed into the sockets on the breadboard and then extra 'jumper' wires are used to make connections. LED Light emitting device Resistor Limit current through circuit

Your first Pi program to light an LED Step1: Draw a circuit Step2: Map it to the Breadboard. Where is Python in all this? Step3: Use the logic inside your program to act as the battery source

Sample program to light an LED

Pseudo code to light an LED 1.Import libraries containing functions [import …] 2.Initialize GPIO pins [GPIO.setmode(GPIO.BCM)] 3.Setup LED name and pin [RED_LED=23] 4.Configure LED to be output [GPIO.setup(RED_LED, GPIO.OUT)] 5. Enable pin [GPIO.output(RED_LED,True)]

Homework – Week 4 Build a 3 bit binary display using Red, Green, Blue LED’s. Requirements Request user for a number between 0 and 7 (All others should be appropriately rejected) Convert number to 3 bit binary format. Display Most Significant Bit as Red, Middle Bit as Green and Least Significant Bit as Blue. (Ex: Number 5 would convert to Red:On, Green:Off, Blue:On and the number 4 would convert to Red:On, Green:Off, Blue:Off) Three things needed for homework to be complete Circuit Diagram – One is enough, which will be the same for all 3 LED’s. Use resistor of 10K ohms in the diagram. Bread board connectivity diagram. – Ground is on 3H. – Pin 18 (Red LED) is on 6H – Pin 23 (Green LED) is on 8H – Pin 24 (Blue LED) is on 9H – Cobbler spans from Row 1 to Row 15. Python Code to display the LED’s. – Initially as a test use prints to display which LED’s would be on and off.