Computer Control

Scratch for Computing
Scratch is a superb programming environment for the teaching of computing (computer science) and computer control.  A good starting point is the Scratch chapter form The Raspberry Pi Education Manual.  


Control programs can be simulated/modelled on screen using sprites (see the Lighthouse v2.sb, level_crossing_simulation v2.sb and Computer Controlled Vehicle.sb examples below).  With the addition of a Scratch compatible interface it is possible to incorporate an element of physical computing.

PicoBoard - these can be purchased for about £40.  They are and input only device.  The board has a number of built in sensors for light and sound, it has four inputs for resistance measurement, a slider to give a variable input and a push to make switch input.  It can be used with cheap, off the peg, components such as LDRs, and thermistors (see Data Logging page on this site and Pico barrier.sb example below).



LEGO WeDo - a WeDo kit can be purchased for about £110.  The WeDo interface has the advantage of being an input/output device but it functions are very limited.  It comes with two inputs - a tilt sensor and a distance sensor.  The output is to a motor.  (see WeDo Alligator v2.sb, WeDo_flight_simulator.sb and WeDo_vehicle distance sensor v2.sb examples below).



ċ
Computer Controlled Vehicle.sb
(23k)
Graham Hastings,
May 3, 2013, 4:24 PM
ċ
Lighthouse v2.sb
(124k)
Graham Hastings,
May 4, 2013, 12:13 AM
ċ
Pico barrier.sb
(991k)
Graham Hastings,
May 4, 2013, 12:16 AM
Ċ
Graham Hastings,
May 10, 2013, 3:36 PM
ċ
WeDo Alligator v2.sb
(389k)
Graham Hastings,
May 4, 2013, 12:14 AM
ċ
WeDo_flight_simulatorv3.sb
(515k)
Graham Hastings,
May 19, 2013, 12:36 PM
ċ
WeDo_vehicle distance sensor.sb
(28k)
Graham Hastings,
May 10, 2013, 3:34 PM
ċ
level_crossing_simulation v2.sb
(987k)
Graham Hastings,
May 4, 2013, 12:11 AM
ą
Graham Hastings,
May 3, 2013, 4:52 PM
ą
Graham Hastings,
May 10, 2013, 3:42 PM
ą
Graham Hastings,
May 3, 2013, 4:56 PM
Comments