Pi kit has arrived

After many months of preparation, resource writing and waiting for orders to be signed at school I’ve now taken delivery of my first 10 Raspberry Pi kits.

The Pi project has started!

Within the next 4 weeks I will be running my first Saturday morning club and after-school twilight training session for local primary school teachers.

10Pi-s3 10Pis 10Pis-2


The objectives of the project are:

  • To work jointly with local Primary Schools in developing computer programming through a range of Saturday workshops and skills days in the Academy.
  • To make available (and give) Raspberry Pi kits to partner schools (supported by resources, lesson plans and CPD sessions)
  • To support Primary to Secondary transition
  • Raise aspirations and build confidence

The main strands of the project include:

  • Saturday sessions - open to all, invitation, 10-15 families over 5 sessions in the Summer term held in the Academy.
  • Skills days in the Academy - targeted through transition work at the end of the Summer term. Primarily aimed at G&T students.
  • Project kits & staff CPD with kits available from September.


Comments

Disco lights

A simple Python script which generates a random number (3, 5 or 7) and uses that number to switch on a LED.

disco




The LEDs are connected to pins 3,5 and 7 with a resistor connected to the cathode of each LED (short leg) connected to pins 17,20 and 25.

import time
import RPi.GPIO as GPIO
import random

GPIO.cleanup()
GPIO.setmode(GPIO.BOARD)
GPIO.setup(3,GPIO.OUT)
GPIO.setup(5,GPIO.OUT)
GPIO.setup(7,GPIO.OUT)

GPIO.output(3,GPIO.LOW)
GPIO.output(5,GPIO.LOW)
GPIO.output(7,GPIO.LOW)

time.sleep(1)

list = [3,5,7]

while True:
light = random.choice(list)
GPIO.output(light,GPIO.HIGH)
time.sleep(0.5)
GPIO.output(light,GPIO.LOW)

Please leave any comments and suggestions below.


Comments