19
Learning Lab: Raspberry Pi STEM Kit By Lt Col Jonathan Lartigue 2017 National Conference San Antonio, Texas • 2 September 2015

Learning Lab: Raspberry Pi STEM Kit...Learning Lab: Raspberry Pi STEM Kit By Lt Col Jonathan Lartigue 2017 National Conference San Antonio, Texas • 2 September 2015 Topics Covered

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Learning Lab: Raspberry Pi STEM Kit...Learning Lab: Raspberry Pi STEM Kit By Lt Col Jonathan Lartigue 2017 National Conference San Antonio, Texas • 2 September 2015 Topics Covered

LearningLab:RaspberryPiSTEMKit

By Lt Col Jonathan Lartigue2017 National Conference

San Antonio, Texas • 2 September 2015

Page 2: Learning Lab: Raspberry Pi STEM Kit...Learning Lab: Raspberry Pi STEM Kit By Lt Col Jonathan Lartigue 2017 National Conference San Antonio, Texas • 2 September 2015 Topics Covered

TopicsCovered• Introduction• Kit Components• Workbook Modules• Learning Lab Exercise

Page 3: Learning Lab: Raspberry Pi STEM Kit...Learning Lab: Raspberry Pi STEM Kit By Lt Col Jonathan Lartigue 2017 National Conference San Antonio, Texas • 2 September 2015 Topics Covered

TheRaspberryPiDevice

Page 4: Learning Lab: Raspberry Pi STEM Kit...Learning Lab: Raspberry Pi STEM Kit By Lt Col Jonathan Lartigue 2017 National Conference San Antonio, Texas • 2 September 2015 Topics Covered

CoreRaspPi StarterKit

Page 5: Learning Lab: Raspberry Pi STEM Kit...Learning Lab: Raspberry Pi STEM Kit By Lt Col Jonathan Lartigue 2017 National Conference San Antonio, Texas • 2 September 2015 Topics Covered

Add-OnSensorPacks

Page 6: Learning Lab: Raspberry Pi STEM Kit...Learning Lab: Raspberry Pi STEM Kit By Lt Col Jonathan Lartigue 2017 National Conference San Antonio, Texas • 2 September 2015 Topics Covered

ProposedSTEMKitContents

24-29 August 20152015 National Conference 6

Add-on Kit 1

•Anemometer•Temperature, Humidity, & Pressure Sensors

Add-on Kit 2

• Real-time clock• LCD and

Keypad• GPS Chip

Add-on Kit 3

• Color Touchscreen

• Pulse Sensor

Add-on Kit 4

• Sensor Pack 900• Camera Board

Page 7: Learning Lab: Raspberry Pi STEM Kit...Learning Lab: Raspberry Pi STEM Kit By Lt Col Jonathan Lartigue 2017 National Conference San Antonio, Texas • 2 September 2015 Topics Covered

ProposedSTEMKitCosts

Page 8: Learning Lab: Raspberry Pi STEM Kit...Learning Lab: Raspberry Pi STEM Kit By Lt Col Jonathan Lartigue 2017 National Conference San Antonio, Texas • 2 September 2015 Topics Covered

WorkbookExercises• The Core Kit and four

Add-On kits will support 15 pre-defined projects.o Each activity module

comes with complete instructions, source code, and wiring diagrams.

• Modules will be distributed as a PDF copy of an unpublished manuscript.o Permission from the author

for use within Civil Air Patrol will be provided.

Page 9: Learning Lab: Raspberry Pi STEM Kit...Learning Lab: Raspberry Pi STEM Kit By Lt Col Jonathan Lartigue 2017 National Conference San Antonio, Texas • 2 September 2015 Topics Covered

IncludedLessons

Page 10: Learning Lab: Raspberry Pi STEM Kit...Learning Lab: Raspberry Pi STEM Kit By Lt Col Jonathan Lartigue 2017 National Conference San Antonio, Texas • 2 September 2015 Topics Covered

IncludedLessons

Page 11: Learning Lab: Raspberry Pi STEM Kit...Learning Lab: Raspberry Pi STEM Kit By Lt Col Jonathan Lartigue 2017 National Conference San Antonio, Texas • 2 September 2015 Topics Covered

SupportedProjects• Three Getting Started

Guideso Getting Started Guide, Part 1

• Introduction to Raspberry Pi, kit contents, and digital circuits

o Getting Started Guide, Part 2• Working with the

breadboard and electronic components.

• Introduction to programming with Python

o Getting Started Guide, Part 3• Advanced Topics

Page 12: Learning Lab: Raspberry Pi STEM Kit...Learning Lab: Raspberry Pi STEM Kit By Lt Col Jonathan Lartigue 2017 National Conference San Antonio, Texas • 2 September 2015 Topics Covered

IncludedProjects

24-29 August 20152015 National Conference 12

• Three Beginner Exerciseso Keypad Security Locko Reaction-Time Simulator Gameo Heart Rate Monitor

• Three Novice Exerciseso Morse Code Generatoro ‘Simon Says’ Gameo Sensor Pack Mini-Labs (four mini exercises)

Page 13: Learning Lab: Raspberry Pi STEM Kit...Learning Lab: Raspberry Pi STEM Kit By Lt Col Jonathan Lartigue 2017 National Conference San Antonio, Texas • 2 September 2015 Topics Covered

IncludedProjects

24-29 August 20152015 National Conference 13

• Four Intermediate Exerciseso World Clocko Tic-Tac-Toe Game (with touchscreen)o Turbulence and Earthquake Monitoro Home Security Monitor

• Two Advanced Exerciseso Build-Your-Own Airport Weather Stationo Build-Your-Own GPS System

Page 14: Learning Lab: Raspberry Pi STEM Kit...Learning Lab: Raspberry Pi STEM Kit By Lt Col Jonathan Lartigue 2017 National Conference San Antonio, Texas • 2 September 2015 Topics Covered

• Hello, World!

LearningLabExercise

Page 15: Learning Lab: Raspberry Pi STEM Kit...Learning Lab: Raspberry Pi STEM Kit By Lt Col Jonathan Lartigue 2017 National Conference San Antonio, Texas • 2 September 2015 Topics Covered

LearningLabExercise// Hello, RasPi// file: hello.c

#include <stdio.h>

int main(void){printf("Hello, 2017

CAP National Conference Attendees!\n");return 0;

}

# Hello, RasPi!# file: hello.py

print(“Hello, 2017 CAP National Conference Attendees!”)

Page 16: Learning Lab: Raspberry Pi STEM Kit...Learning Lab: Raspberry Pi STEM Kit By Lt Col Jonathan Lartigue 2017 National Conference San Antonio, Texas • 2 September 2015 Topics Covered

Blinky:WiretheBreadboard• You’ll need:

o RasPi Cobbler Adaptero A Light Emitting Diode

(LED)

o One Resistoro One Push Button

Page 17: Learning Lab: Raspberry Pi STEM Kit...Learning Lab: Raspberry Pi STEM Kit By Lt Col Jonathan Lartigue 2017 National Conference San Antonio, Texas • 2 September 2015 Topics Covered

Blinky:WritetheCode(v1.0)# RasPi Blinky Exercise, Version 1# file: blinky1.py

import RPi.GPIO as GPIOimport time

GPIO.setmode(GPIO.BOARD)GPIO.setup(40,GPIO.OUT)

for i in range(50):GPIO.output(40,True)time.sleep(1)GPIO.output(40,False)time.sleep(1)

GPIO.cleanup()

Page 18: Learning Lab: Raspberry Pi STEM Kit...Learning Lab: Raspberry Pi STEM Kit By Lt Col Jonathan Lartigue 2017 National Conference San Antonio, Texas • 2 September 2015 Topics Covered

Blinky:WritetheCode(v2.0)# RasPi Blinky Exercise, Version 2# file: blinky2.py

import RPi.GPIO as GPIOimport time

GPIO.setmode(GPIO.BOARD)GPIO.setup(40,GPIO.OUT)GPIO.setup(38,GPIO.IN, pull_up_down = GPIO.PUD_DOWN)

# This is an endless loop, not very elegantwhile True:if (GPIO.input(38) == 1):

GPIO.output(40,True)else:

GPIO.output(40,False)

GPIO.cleanup()

Page 19: Learning Lab: Raspberry Pi STEM Kit...Learning Lab: Raspberry Pi STEM Kit By Lt Col Jonathan Lartigue 2017 National Conference San Antonio, Texas • 2 September 2015 Topics Covered

Questions?