100 likes | 118 Views
Raspberry Pi with Pibrella. Objectives. Sequence instructions Use selection (if, then, else) Use repetition Make lights flash and buzzers sound Push the big red button!. Getting started. We're going to be using Scratch to program the Pibrella
E N D
Objectives Sequence instructions Use selection (if, then, else) Use repetition Make lights flash and buzzers sound Push the big red button!
Getting started We're going to be using Scratch to program the Pibrella Firstly, we need to start the GPIO (General Purpose Input Output) Server We'll then turn on the red light These commands are case sensitive, so check you use of lower and upper case (capital) letters carefully
Challenges - Lights Program a key to turn the red light off Program a key make the red light flash Program a key to make the yellow light flash Program a key to make the green light flash Program a key to turn all lights off! Program a key to make the traffic light sequence
Big red button We're now going to program the Big Red Button to make things happen... We'll start by making it turn a light on
Challenges Make the green light always on unless the big red button is pushed Make the big red button work light a pedestrian crossing...
Buzzer Can you make it beep? You'll need to broadcast this command: buzzer1000 buzzer0 (to make it stop!)