DPNM Lab., POSTECH 1/8 CS490K - Internet of Things (IoT) Jonghwan Hyun DPNM Lab. Department of Computer Science and Engineering, POSTECH

Slides:



Advertisements
Similar presentations
Internet of Things with Intel Edison GPIO on Edison
Advertisements

V Avon High School Tech Club Agenda Old Business –Executive Committee –LCCUG meeting volunteer(s) –Reward Points Program New Business –Weekly.
Motor Control Lab Using Altera Nano FPGA
New Module - Inside DeMux to Encode Switch Data Sleep Mode Sleep Light Indicator.
Introduction to the Raspberry Pi ® Saman Amighi 10/2013 ® Raspberry Pi Foundation.
Embedded Programming and Robotics Lesson 12 Introducing the Raspberry Pi Intro to Raspberry Pi1.
RaspberryPi Ira Goldstein Siena College. What is a Raspberry Pi? University of Cambridge’s Computer Laboratory – Decline in skill level – Designed for.
Part 1 Using the ARM board And start working with C Tutorial 5 and 6
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,
DPNM Lab., POSTECH 1/25 CS490K - Internet of Things (IoT) Jonghwan Hyun DPNM Lab. Department of Computer Science and Engineering, POSTECH
DPNM Lab., POSTECH 1/29 CS490K - Internet of Things (IoT) Jonghwan Hyun DPNM Lab. Department of Computer Science and Engineering, POSTECH
Raspberry Pi GPIO Pin naming conventions Using sysfs
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.
1. Upgrading via the Network Booting Preparing Materials -PC server with a wired LAN port -Upgrade file for the network booting(bin type) Upgrade Procedure.
Raspberry Pi: Presented by: Lakeasha Williams & Venessa Woodson EECE416 Microcomputer Howard University Dr. Charles Kim.
July 7, 2003 Slide 1 of 6 Automation, Robotics and Mechatronics Lab, SUNY at Buffalo Introduction To Programming Chetan Jadhav Talib Bhabharawala Seung-Kook.
DPNM Lab., POSTECH 1/44 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)
1-3 GPIO_Output(LuminaryLibrary) 1.Alter the output current to 4mA 2.Let LED0 turn on but LED 1 turn off. Modify your program in E:\yourname\arm.
Python for intel Galileo GEN2 TYWu. Software Download/Setup "Bigger" Linux Image Download the Arduino IDE for Galileo –
Embedded Software Design Week I Class Introduction Course Coverage Hardware Platforms * Some of this slides are inspired/copied from Dr. Mark Brehob’s.
Introduction to the DE0 Board Prof. Taeweon Suh Computer Science & Engineering Korea University COSE221, COMP211 Computer Logic Design.
Prestige NAND Flash DOWNLOAD. Prepare ITEM. 1.PC - Run Tftpd32 program. (Tftpd setup.exe install ) 2. Download DVR B/D 3. Download Serial B/D 4.
Rasberry pi 2 model B. Selve computeren i rasberry pi’en.
Raspberry Pi Project Control Your Home Lights with a Raspberry Pi.
Introducing the Raspberry Pi Nauru ICT Department April 2016.
Introduction to Arduino A very basic intro to Arduino, the IDE and the Servos class.
Raspberry Pisentation. Power Micro SD card slot Ethernet Jack Video 4 Pole Screw Hole 4 Screw Hole 3 Screw Hole 2 Screw Hole 1 Camera Ribbon Input.
Raspberry PI 2 Installation & Demo App By Wayne Keadle.
Arduino “Getting Started” Instructor : Dr Matthew Miss Khin Yi Kyaw
An introduction to the Raspberry Pi. What is a Raspberry Pi?  University of Cambridge’s Computer Laboratory  Decline in skill level  Designed for education.
Get Started with Raspberry Pi- Single Board Computer.
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.
RaspberryPi.
Workshop on Raspberry Pi 3
Ira Goldstein Siena College
Class 1: Building a Raspberry Pi LED Flasher
RASPBERRY PI WORKSHOP.
Embedded Software Development with Python and the Raspberry Pi
Chapter A - The Raspberry Pi Computer
1 Button 2 Buttons Light Emitting Diodes LED and Buttons
The Raspberry Pi Initiative
UltraSonic Sensor VCC is the pin that powers the device, connect to 5V. Trigger is the pin that sends out the burst. Echo is the pin that outputs when.
COMP211 Computer Logic Design Introduction to the DE2 Board
RASPBERRY PI WORKSHOP.
Building Raspberry Pi Controllers with Python
Session 3 DIY Moderate Project
Lighting LEDs with a RASPBERRY PI
An introduction to the Raspberry Pi
مقدمة في الاردنيو د فضل الاكوع.
Internet-of-Things (IoT)
What we learn during Program
Internet-of-Things (IoT)
Building an Internet of Things Device
Welcome to Digital Electronics using the Arduino Board
Reading / Writing analogue devices LED + Game-controller
Raspberry Pi Stefan konzelmann
Raspberry Pi 2/3 GPIO - LED, Button
CTY SAR FCPS Shawn Lupoli, Elliot Tan
Lab 1. Introduction to the DE2 Board
Tareq Khan, Ph.D. Assistant Professor,
Lecture 4. Introduction to the DE2 Board
Passive Infrared Sensor
Controlling LED with PWM
Chapter 7 IoT Physical Devices and Endpoints
Raspberry Pi Hardware By: Mike Kwiatkowski.
IoT System Development with Raspberry Pi and Django
Edge TPU Coral Dev Board: A tutorial
Presentation transcript:

DPNM Lab., POSTECH 1/8 CS490K - Internet of Things (IoT) Jonghwan Hyun DPNM Lab. Department of Computer Science and Engineering, POSTECH Sep. 17, 2015 Introduction to Raspberry Pi #2

DPNM Lab., POSTECH 2/8 CS490K - Internet of Things (IoT) Connecting to Raspberry Pi  Connect Raspberry Pi and your laptop using Ethernet cable  Plug in power cable to Raspberry Pi  IP settings for your laptop IP: Netmask:  Connect to Raspberry pi Using SSH client (console) Using RDP client (GUI) IP: ID/PW: root/raspberry

DPNM Lab., POSTECH 3/8 CS490K - Internet of Things (IoT) Programming Tutorial – Blinking LED  Raspberry Pi On-board LED OK (ACT): SD card access indicator PWR: 5V input power present FDX: Ethernet Full Duplex connection LNK: Ethernet connection present 10M: 100 Mbps Ethernet connection

DPNM Lab., POSTECH 4/8 CS490K - Internet of Things (IoT) Programming Tutorial – Blinking LED  Which LED can be controlled by user? PWR: hardwired to the on-board 3.3V FDX: hardwired to the USB/Ethernet chip LNK: hardwired to the USB/Ethernet chip 10M: hardwired to the USB/Ethernet chip OK (ACT): hardwired to GPIO 16 Programmed in the 'firmware' to indicate SD card activity

DPNM Lab., POSTECH 5/8 CS490K - Internet of Things (IoT) Programming Tutorial – Blinking LED  Control ACT LED Available as /sys/class/leds/led0/ The kernel LED driver, which controls led0, has "triggers" which let some other part of the kernel control the LED The default trigger for the LED is 'mmc0', which makes it turns on when the SD card is accessed Deactivate the trigger Turn on/off LED manually Let the LED to go back to its default function cat /sys/class/leds/led0/trigger none [mmc0] echo none >/sys/class/leds/led0/trigger echo 1 >/sys/class/leds/led0/brightness echo 0 >/sys/class/leds/led0/brightness echo mmc0 >/sys/class/leds/led0/trigger

DPNM Lab., POSTECH 6/8 CS490K - Internet of Things (IoT) Programming Tutorial – Blinking LED  Blinking ACT LED Using Python Use GPIO16 to control the LED Active-low LOW: turn the LED ON HIGH: turn the LED OFF Use Python GPIO library

DPNM Lab., POSTECH 7/8 CS490K - Internet of Things (IoT) Programming Tutorial – Blinking LED  Blinking ACT LED Using Python Include python GPIO module Pin numbering declaration GPIO.BOARD – Board numbering scheme. The pin numbers follow the pin numbers on header P1 GPIO.BCM – Broadcom chip-specific pin numbers. These pin numbers follow the lower-level numbering system defined by the Raspberry Pi’s Broadcom-chip brain Set a Pin Mode Digital Output import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) # set up GPIO output channel GPIO.setup(16, GPIO.OUT) # LED On GPIO.output(16, GPIO.LOW) # LED Off GPIO.output(16, GPIO.HIGH)

DPNM Lab., POSTECH 8/8 CS490K - Internet of Things (IoT) Programming Tutorial – Blinking LED  Blinking ACT LED Using Python #!/usr/bin/python import RPi.GPIO as GPIO from time import sleep GPIO.setmode(GPIO.BCM)# Needs to be BCM. GPIO.setup(16, GPIO.OUT) # Set up GPIO output channel try: while 1: GPIO.output(16, GPIO.LOW) # LED On sleep(2) # Wait a bit GPIO.output(16, GPIO.HIGH) # LED Off except KeyboardInterrupt:# If CTRL+C is pressed, exit cleanly: GPIO.cleanup() # cleanup all GPIO

DPNM Lab., POSTECH 9/8 CS490K - Internet of Things (IoT) Programming Tutorial – Blinking LED  Blinking ACT LED Using Python python blink.py

DPNM Lab., POSTECH 10/8 CS490K - Internet of Things (IoT) IoT Assignment #3  This assignment is to be done individually and is worth a total of 4% of the final mark.  Please pick a platform from the following site:  Study it and present it in class.  Your presentation should include: Description of the platform Describe what it provides and what it is designed for. Describe how one can use it for developing an IoT system One or more example IoT systems that have been developed using it.  You may include one or more diagrams to describe the platform.  Due: midnight, Mon., Sept. 28.  Have fun!