Another slice of pi Hands-ON with the raspberry pi computer Aisd science + mathematics x conference 2017 Anita Johnson – kealing middle school Teach electives at Kealing (magnet & academy): robotics (LEGO and Arduino) Coding (beginning and advanced) Second year of teaching (ACC; Intel Corporation) Not a math or science teacher, but there are coding applications Computational thinking is critical All summer news about machine learning, artificial intelligence No TEKS, but somewhat aware This turned into 3 classes (6 hours) Coding (Scratch and Python) Physical computing – robotics, light displays, sensors Raspberry Pi Hampered by lack of AISD support for this device
ANOTHER SLICE OF PI Overview – hardware and software What’s the big deal? Examples & demos Hands-on, questions, discussion Wanted to teach! Teach coding to anybody, anytime Once we get connected, you’re free to play (just no Internet)
ATTENDEES WILL… Know and understand the basic features of the Raspberry Pi Explore the vast universe of Raspberry Pi projects Get ideas about what the RPi can do for you Get ideas about how to use in your classes Do something that you didn’t know you could do! Leave curious and fearless! My Los are not lofty In fact, soft and not particularly measurable! Already curious
What is a raspberry pi - hardware Small, inexpensive computer ($65-$150) 1.2 GHz ARM processor, 1 Gb RAM (Pentium+) USB x4, Bluetooth, WiFi, Ethernet, HDMI Camera interface Micro SD card instead of a hard drive General Purpose I/O (GPIO) pins $35 by itself Closer to $65 with power $7, HDMI cable $7, case $8, micro SD card $8 AND Keyboard/mouse $15 wired $20 wireless HDMI screen $65 So $150 for a desktop computer OR WiFi enabled device running VNC (e.g. Chromebook) GPIO – more on this later
WHAT IS A RASPBERRY PI - SOFTWARE Free download Operating system - Linux Debian (“Raspbian”) Windows-like graphical user interface (GUI) Scratch, Python, Java, Wolfram Mathematica Libre Office suite Sonic Pi Minecraft Pi Show live demo here?
Raspberry pi vs chromebook Advantages – it’s a computer Programming languages: Python, Mathematica Other advantages Size – can incorporate in projects (e.g. robots) You own it Replace the micro SD card Any software you want BUT not supported by AISD **GPIO pins** Physical computing If “hard drive” gets messed up (students), just swap out an $8 SD card Same price as a Chromebook GPIO Inputs: buttons, knobs, switches, sensors Outputs: lights, motors Can control with code Arduino? How I got into all of this
GPIO pins – the special sauce Connect to motors, sensors, LEDs, Internet of Things (IoT) Many third party “hats” with multiple connections No need to know electronics A zillion open source project & code ideas (resources)
Hardware add-ons Sense Hat Explorer Hat Robotics AIY Voice Box GoPiGo RaspiRobot3 AIY Voice Box …and any electronics
Connecting to the rpI Keyboard, mouse, USB monitor
CONNECTING TO THE RPI Laptop/computer with Ethernet cable
CONNECTING TO THE RPI – “headless” Any device (desktop/lapop/Chromebook/Android/iOS) over WiFi to RPi wired to network switch Any device over WiFi to RPi back over WiFi to router (no Internet if you can’t control the router)
Setup & connect If you have a laptop, you can use it instead of a Chromebook Download VNC viewer at https://www.realvnc.com/en/download/viewer/ Remove contents from box and attach power stick to RPi
SETUP AND CONNECT Push button on power stick Change your WiFi connection to HornetLAN1 Password: icyskates631 You will not have Internet connectivity! Open VNC Viewer and enter the address that is formed with your RPi number: 192.168.1.1XX where XX is the number on your Rpi Example: If the number is 3, then enter 192.168.1.103
SETUP AND CONNECT Ignore message and Click on Continue Enter Username: pi Password: klg^HRNZ17 If necessary, click on appropriate icon at bottom to make full screen
DEMOS and HANDS-ON Navigating the Rpi Linux Python Sense Hat: sparkles, environ Other explorations ExplorerHatPro Be curious! Limited due to configuration here (no Internet access) Do the best we can Don’t have enough cameras, can share
PYTHON Text-based coding Suitable for grade 7+ Taught many schools and colleges (e.g. ACC) as first coding language
SENSE HAT 8x8 RGB LED matrix a mini joystick Gyroscope/accelerometer/magnetometer Temperature/humidity/barometric pressure Python library AstroPi
SENSE HAT – ASTRO Pi
Raspberrypi.org Great follow-along lessons Most teach coding Some are applicable to subject areas Free courses at https://www.futurelearn.com/partners/raspberry-pi
OTHER RESOURCES raspberrypi.org MagPi – free PDF downloads instructables.com hackster.io adafruit.com Books! codecademy.com: Python (new 8/1) and others (HTML/CSS/JavaScript) Google Remote Pandora player DIY Amazon Echo Robots (including self-driving with AI) Twitter CAM (if snake moves, takes a picture and tweets it) Twitter Lights (if any tweet has @kealinglights and #[colorname], lights change to that color Candy dispenser (if they type something happy) Facial recognition