computational thinking and cyberscience

28
Raspberry Pis Computational Thinking and Cyberscience Carolyn Lauzon – Department of Energy, Office of Science Ti Leggett – Argonne Leadership Computing Facility

Upload: others

Post on 30-Dec-2021

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Computational Thinking and Cyberscience

Raspberry PisComputational Thinking and

Cyberscience

Carolyn Lauzon – Department of Energy, Office of Science

Ti Leggett – Argonne Leadership Computing Facility

Page 2: Computational Thinking and Cyberscience

Choose your own adventure

Introduction - Computational Thinking and Raspberry Pi ------------- 3 – 21

• Continuation of Introduction

Computing Tracks

• Demo - Tiny Titan Supercomputing Demo

• Talk - History and Future of Supercomputing

• Demo – Machine Learning on an Rpi

Cyberscience

• Hacking Demo 1 - DDOS demo

• Hacking Demo 2 - ARP Poisoning

• Alt – practice run for middle schoolers

Page 3: Computational Thinking and Cyberscience

www.anl.gov

Computational Thinking & Raspberry PisDiscovering Problem Solving Using Computer Science

• Ti Leggett – Deputy Project Director & Deputy Director of Operations• Argonne Leadership Computing Facility (ALCF)

Page 4: Computational Thinking and Cyberscience

Argonne Leadership Computing Facility4

Why computational thinking?

Argonne Leadership Computing Facility4

Page 5: Computational Thinking and Cyberscience

Argonne Leadership Computing Facility5

Problem Solving by Pattern Matching• Critical skill, not just in computer science

• Break the problem down

• What are you trying to solve?

• What do you know/have?

• Do you know what you don’t know?

• How do you find out what you don’t know?

• Do you notice any patterns?

• After solution, can you simplify/optimize the solution further?

Page 6: Computational Thinking and Cyberscience

Argonne Leadership Computing Facility6

Examples• Helping my son with math homework

• Assembling a wheelbarrow

• Building a house in Minecraft

Page 7: Computational Thinking and Cyberscience

Argonne Leadership Computing Facility7

My Story

Page 8: Computational Thinking and Cyberscience

Argonne Leadership Computing Facility8

Tools to help teach computational thinking

Page 9: Computational Thinking and Cyberscience

Software Resources

• MIT Scratch

• http://scratch.mit.edu

Page 10: Computational Thinking and Cyberscience

Software Resources

• MIT Scratch

• https://scratch.mit.edu

• Code.org

• https://code.org

Page 11: Computational Thinking and Cyberscience

Software Resources

• MIT Scratch

• https://scratch.mit.edu

• Code.org

• https://code.org

• Alice

• https://www.alice.org

Page 12: Computational Thinking and Cyberscience

Argonne Leadership Computing Facility12

What’s the difference?• MIT Scratch

• More open ended

• Community based• Code.org

• Aligned with Common Core

• Step by Step

• Hour of Code• Alice

• Focuses more on visual and interactive

• Not as widely used as other two

Page 13: Computational Thinking and Cyberscience

Hardware Resources

• Lab computers, laptops, & tablets

Page 14: Computational Thinking and Cyberscience

Hardware Resources

• Lab computers, laptops, & tablets

• Arduinos

• https://www.arduino.cc

Page 15: Computational Thinking and Cyberscience

Hardware Resources

• Lab computers, laptops, & tablets

• Arduinos

• https://www.arduino.cc

• BeagleBone

• https://beagleboard.org/bone

Page 16: Computational Thinking and Cyberscience

Hardware Resources

• Lab computers, laptops, & tablets

• Arduinos

• https://www.arduino.cc

• BeagleBone

• https://beagleboard.org/bone

• PINE64

• https://www.pine64.org

Page 17: Computational Thinking and Cyberscience

Hardware Resources

• Lab computers, laptops, & tablets

• Arduinos

• https://www.arduino.cc

• BeagleBone

• https://beagleboard.org/bone

• PINE64

• https://www.pine64.org

• Raspberry Pi

• https://www.raspberrypi.org

Page 18: Computational Thinking and Cyberscience

Argonne Leadership Computing Facility18

What’s the difference?• BeagleBone, PINE64, & Raspberry Pi

• Full fledged computers

• Run an OS

• Programmed with many different languages

• More general purpose

• More easily use networks

• Large amount of RAM• Arduino

• Microcontroller

• No OS, what you “flash” on it is the only thing that runs

• Great for “real time” applications

• Low power & can be tiny• All have General Purpose I/O (GPIO)

• Sensors, motors, relays

Page 19: Computational Thinking and Cyberscience

Argonne Leadership Computing Facility19

Why the Raspberry Pi?

• It’s cheap: $35• Works with common components• TV, keyboard, mouse, wireless, Bluetooth

• Updated versions regularly• Faster, more RAM, better I/O, etc.

• Flexible• Runs Windows & Linux

• Huge user community• Many existing projects and examples

• MagPi • Free to download monthly magazine

• Lots of accessories• Cameras, LCDs, sensors, cases

Page 20: Computational Thinking and Cyberscience

Argonne Leadership Computing Facility20

Introduction to theRaspberry Pi

Argonne Leadership Computing Facility20

Page 21: Computational Thinking and Cyberscience
Page 22: Computational Thinking and Cyberscience

GPIO PinsUSB Ports

Ethernet

Stereo AudioHDMIMicro USB Power

Page 23: Computational Thinking and Cyberscience

Programmable LEDs

Camera ConnectorProcessor & GPU

External Display Connector

Model

Page 24: Computational Thinking and Cyberscience

Micro SD Card Slot

Mounting Holes

Mounting Holes Image Credit: Les Pounder

https://bit.ly/2KdFnMd

Page 25: Computational Thinking and Cyberscience

Argonne Leadership Computing Facility25

• HDMI monitor or TV

• HDMI cable

• USB keyboard and mouse

• 8GB+ micro SD card

• SD card reader (your laptop may have one built in)

• OS image

• Raspbian: https://www.raspberrypi.org/downloads/raspbian/

• Software to write to the SD card

• https://etcher.io/

• Micro USB power adapter

• Many cell phone chargers will work

• Make sure it is at least rated for 2.5A output

• If in doubt, buy a UL rated one for a Raspberry Pi 3

What do you need to get started?

Page 26: Computational Thinking and Cyberscience

Choose your own adventure

Computational Thinking and Raspberry Pi Continued

Computing Tracks

• Demo - Tiny Titan Supercomputing Demo

• Talk - History and Future of Supercomputing

• Demo – Machine Learning on an Rpi

Cyberscience

• Hacking Demo 1 - DDOS demo

• Hacking Demo 2 - ARP Poisoning

• Alt – practice run for middle schoolers

Page 27: Computational Thinking and Cyberscience

INTRO END

Page 28: Computational Thinking and Cyberscience

Argonne Leadership Computing Facility28

AcknowledgementThis presentation used resources of the Argonne Leadership Computing Facility at Argonne National Laboratory, which is supported by the Office of Science of the U.S. Department of Energy, Office of Science, under contract number

DE-AC02-06CH11357.