KK1 Raspberry Pi

Semester 1 2017

What you need

OS version

Headless


Code:

Class07:

gpio-controlpanel.py
… And some more button & led files

Class08:

class8

Similar to last week, download this zip file to your raspberry pi, and unzip into a folder “class8” inside /home/documents/PythonScripts/

Class09:

PiRoller

Unzip into /home/documents/NodejsProjects/

Class11:

  1. BlueDot

2. OLED suite for python.

Class12:

Blynk for Raspberry Pi3. (javascript)

Class13:

Pi Camera UPDATED 10AM 24/5/17

Unzip all of “cameraW13” into python folder

Class14:

PiBlynk-py

Class15:

Accel Files

Class16:

TKINTER


The classes:

KK1

  • Class01 Intro

    What is this Raspberry Pi?   $60 computer board Linux operating system Wifi / lan / bluetooth GPIO to control “gadgets” Designed for learning & playing Besides regular PC use and coding experiments, your “RPi” might be: Firewall or network router HDD farm for all your terabyte drives Media centre to your TV and iPad A remote alarm station Website host Internet-of-Things platform Usually the class ppt or pdf file(s) will appear on this page … Continue reading Class01 Intro

  • Class02 Overview of Using the RPi

    This week we look at how to use your RPi. We delve into many of the programs that come pre-installed, and see how to connect to internet by lan or by wifi.   Bring headphones this week. Overheads:  class2-a    class2-b

  • Class03 Put Linux on your Laptop!

    Using Virtualbox (you need to install it on your laptop), we set up “virtual machines” for: Debian – stock standard linux “Pixel for PC” – a functioning RPI replica Get comfortable with Linux on your own laptop. Your Windows or Mac treats the Linux as another program, resizable, killable, overlappable. But the Linux thinks it owns the computer. PPT: class3-a class3-b DOC: VB-installing-VDIs

  • Class04 Control RPI from Laptop

    Today we dispense with all those “console” peripherals cluttering our desk: HDMI monitor Keyboard Mouse And we use the laptop as the remote “console”,  across your local network, either LAN or Wifi.  For most of following classes this mode is a lot more convenient. Don’t ever lose those other console devices, though. If one day we get a tricky problem to solve on our RPi setup, we might need to temporarily plug them all back … Continue reading Class04 Control RPI from Laptop

  • Class05 Terminal

    The Terminal Command line Root access   Presentation

  • Class06 Scratch

    Scratch programming Presentation

  • Class07 GPIO – first look

    Our first look at the GPIO system. Buttons = simple inputs LEDs = simple outputs Pulsed output (PWM) = graded brightness on a LED, or an audio tone on a buzzer. Note that this week has the first “code” required. For that,  go to the CODE page on this site. The Presentation

  • Class08 – GPIOs with Python

    GPIO control from Python Some more devices to connect to your RPi (PIR & Buzzer). Coding GPIO with python. Presentation And don’t forget the script files from the CODE page.

  • Class09 – Remote from phone

    Pi Roller Using accelerometer readings of your smartphone as Raspberry Pi input. An introduction to: accelerometers magnetometers gyros height measurement And more to come. This is a big topic! Homework to prepare. Presentation Instructions

  • Class10 – Media Centre

    We look at TWO media centre versions: — LibreElec — OSMC There is no VNC headless operation, so you need mouse, keyboard and screen. SD card flashed with NOOBS menu and both OSs will be distributed in class. Instructions

  • Class11 – OLED display on RPi

    We will connect this tiny display to Raspberry Pi, and learn how to put messages there from our python projects. Preparatory  homework: Try out “BlueDot” app.    Instructions. Presentation  

  • Class12 – Tablet/Phone Controller for RPi

    Using your iPhone, Android or tablet as a very configurable controller for Raspberry Pi functions. Works anywhere from across the internet. And includes OLED display functions using javascript (nodejs). Preparatory Homework. Blynk – Instruction Sheet Presentation

  • Class13 – RPi Camera

    RPi camera. From command prompt, from python, from blynk. Still shots and video and timelapse. Presentation

  • Class14 – Blynk handphone controller APP (pt 2)

    We expand the possibilities of controlling the RPi from phone. PWM TNET terminals into OS and javascript GPS and Accelerometer sensors to RPI Camera control GPIO “alerts” to your phone And cross-communicating Rpi to Rpi – creating a “swarm” Info Presentation

  • Class15 – Accelerometer on the RPi

    Accelerometer on the Raspberry Pi. We use this device to piece together a whole project: Accelerator yields pitch and roll. Attached to a float, it could measure water level in a tank. We can use that to send levels or alarms to smartphone. An exercise in hacking python to do a custom job for us.   PPT

  • Class16 – GUI Interfacing Design for GPIO

    TKinter – GUI/controls for simple python projects on Raspberry Pi. Presentation

 

Raspberry Pi, Internet of Things, Cloud and Code