Development Environments Raspberry Pi ® Saman Amighi 04/2014 ® Raspberry Pi Foundation.

Slides:



Advertisements
Similar presentations
ARDUINO CLUB Session 1: C & An Introduction to Linux.
Advertisements

Embedded Sumo 1T4 – 1T5 UTRA.
JAVA Programming Environment © Juhani Välimäki 2003.
BEYOND SMARTPHONES WITH RASPBERRY PI BY - ASHISH KSHIRSAGAR.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Introduction to the Raspberry Pi ® Saman Amighi 10/2013 ® Raspberry Pi Foundation.
Starting Out with C++: Early Objects 5/e © 2006 Pearson Education. All Rights Reserved Starting Out with C++: Early Objects 5 th Edition Chapter 1 Introduction.
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.
Embedded Programming and Robotics Lesson 12 Introducing the Raspberry Pi Intro to Raspberry Pi1.
APT 2.0 Simon Dawes & Keith Rickard Update 1. What is the APT? A utomatic P hotometric T elescope Built by Jack Ells in 1984 (based on JBAA) A utomatic.
RaspberryPi Ira Goldstein Siena College. What is a Raspberry Pi? University of Cambridge’s Computer Laboratory – Decline in skill level – Designed for.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
Chapter Introduction to Computers and Programming 1.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
Introduction to Programming. Our Book in CS Why Program? Lets watch a video
COMPUTER MAIN PARTS Hardware Software. HARDWARE Definition: The set of hardware components that make up the material part (physical) of a computer, unlike.
Chapter 1 Programming Languages. Application Development: Top 10 Programming Languages to Keep You Employed 1. Java 2. C# 3. C++ 4. JavaScript 5. Visual.
Juan Miguel Valverde Martínez.  What is a Home Media Center?  Raspberry Pi  Idea  Interface  Potential.
General Computer Science for Engineers CISC 106 Lecture 02 Dr. John Cavazos Computer and Information Sciences 09/03/2010.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Chapter 1: Introduction to Computers and Programming.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Raspberry Pi.
Raspberry Pi: Presented by: Lakeasha Williams & Venessa Woodson EECE416 Microcomputer Howard University Dr. Charles Kim.
Guide to Linux Installation and Administration, 2e1 Chapter 11 Using Advanced Administration Techniques.
Computer Ports Mouse Port (Input).
Smartmote What your television remote should have been.
Getting To Know Computers COMPUTER BASICS. WHAT IS A COMPUTER? A computer is an electronic device that manipulates information, or “data.” It has the.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
Welcome to Week 4 at the Summer Computer Club Raspberry Pi (contd)
Introduction :  In the beginning, the calculator is the basic idea of computers out, then that arrived at the large computers.  in1980 or late seventies.
Intro to Raspberry Pi A Southwest Florida Hackerspace Workshop Presented by: Russell Benzing & Eric Schiffli.
Bonus EV3 Programming Lessons LEGO MINDSTORMS ev3dev and Raspberry Pi IR Light controller.
Embedded Software Design Week I Class Introduction Course Coverage Hardware Platforms * Some of this slides are inspired/copied from Dr. Mark Brehob’s.
Raspberry Pi Project Control Your Home Lights with a Raspberry Pi.
Introducing the Raspberry Pi Nauru ICT Department April 2016.
 Prepared by: Eng. Maryam Adel Abdel-Hady
PROGRAMMING USING PYTHON LANGUAGE ASSIGNMENT 1. INSTALLATION OF RASPBERRY NOOB First prepare the SD card provided in the kit by loading an Operating System.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Farhin Al Masud What is Raspberry PI? o Low cost, credit card sized computer o SOC (System on a chip) o Founded by Raspberry PI foundation.
Raspberry PI 2 Installation & Demo App By Wayne Keadle.
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.
RaspberryPi.
Building Raspberry Pi Controllers with Python
Workshop on Raspberry Pi 3
Ira Goldstein Siena College
BASIC PROGRAMMING C SCP1103 (02)
RASPBERRY PI WORKSHOP.
Development Environment
Computer System Laboratory
Prepared by: Raghad J Foqha Supervisor: Dr. Saed Tarapiah
Chapter A - The Raspberry Pi Computer
Running your own web server
Topics Introduction Hardware and Software How Computers Store Data
BASIC PROGRAMMING C SCP1103 (02)
Topics Introduction to Repetition Structures
A microcontroller Raspberry Pi 2 Model B V1.1 RPi
Building Raspberry Pi Controllers with Python
Lighting LEDs with a RASPBERRY PI
Raspberry Pi.
Raspberry Pi Pi 2 Model B.
An introduction to the Raspberry Pi
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.
Understand the interaction between computer hardware and software
General Computer Science for Engineers CISC 106 Lecture 03
Hardware is… Software is…
Chapter 7 IoT Physical Devices and Endpoints
Raspberry Pi Hardware By: Mike Kwiatkowski.
Presentation transcript:

Development Environments Raspberry Pi ® Saman Amighi 04/2014 ® Raspberry Pi Foundation

Raspberry Pi Created by the Raspberry Pi Foundation Built to be an educational tool Credit Card size computer Linux Based Can be powered up with existing power supplies or batteries

Raspberry Pi Key Parts Ports USB (1/2) Keyboard Mouse Power (microUSB) SD Card HDMI or TV Video Network/LAN (100) Other GPIO pins Audio Jack Status LEDs

Raspberry Pi General Purpose Input Output (GPIO) Key Pins 1 – 3.3 V 2 – 5 V 6 – Ground 7 – GPIO4* 13 – GPIO21/27

Raspberry Pi First steps Purchase Raspberry Pi Purchase Components Create SD card Boot up initial Image Login

Next Steps Decide on a project Which project do you want to work on? Electronics – 3 hours - $50 Media Center – 3-5 hours - $30 Linux box with 100% up time – 1 hours - $0 Printer Server (CUPS) – 1 hours - $0 NAS – 3 hours - $100 Laptop (Atrix Lapdock) – 3 hours - $100

Development Enviroment Decide on a Development Enviroment Where? Work on the Raspberry PI Work on your own Computer How? Which editor to use Locally - VI, EMACS, NANO, etc. Remotely - Windows- Notepad, Mac – TextWrangler Required native SFTP and backups

Development Environment (cont’d) Decide on a Development Environment (cont’d) Programming Language C/C++ Python Shell Scripts (+Cron) PHP Etc Native Compilers/Processors GCC++ Python PHP Non-Native Ino/Arduino Ruby

Language Examples C/C++ C++ - Compiled Language case sensitive Difficult to work with strings Very specific on variable types Code char myString[10]; int iMyInt; strcpy(myString,”Hello”); Int myFunction(int ilocalInteger) { return ilocalInteger+1;}

C++ Example bool MPU9150::begin(mpu9150_gyr o_range_t g_rng, mpu9150_accel_range_t a_rng, byte addr) { Wire.begin(); address_ = addr; // Make sure the correct device is actually connected if (read8(MPU9150_WHO_AM_I) != MPU9150_ID) { return false; } // Set the gyro range write8((byte)MPU9150_GYRO _CONFIG, (byte)g_rng << 3); // Set the accel range write8((byte)MPU9150_ACCEL _CONFIG, (byte)a_rng << 3); // Set the clock source and take the device out of sleep mode write8((byte)MPU9150_PWR_ MGMT_1, 0x02); return true; }

Language Examples Python Python – Interpretive Language Case sensitive Indentation heavy (instead of using {} or terminators) Loose on type definitions ( 1 = “1”) Can be run interactively python func1.py OR python and use command line Print “Hello World” a = 5 mult(a)

Python Example Command Line $ python -c 'print "Hello World!"’ Code import re for test_string in [' ', 'ILL-EGAL']: if re.match(r'^\d{3}-\d{4}$', test_string): print test_string, 'is a valid US local phone number' else: print test_string, 'rejected'