Magpi48

Page 51

Tutorial Pin 1 of Raspberry Pi GPIO

470R

0.1uF

300R

270R

Signal

>STEP-03

Wire up the track side

Flip the board over and add the surface-mount resistors and capacitors; through-hole parts can be substituted if you prefer. Use flexible wires to make the other connections. Mount the three LEDs and angle them by about 45° towards the sensor; note here that the flat spot on the LED denotes the cathode, which is usually the shortest leg. Fix the sensor to a bracket, attach the bracket to the board, and wire it up to the sensor.

raspberrypi.org/magpi

- + Sensor

The swimming figure was isolated frame by frame from a swimming animation, and the complete sequence for a full stroke is 24 frames long. The figure had a water level line where the colours changed slightly, as if seen underwater. This was achieved by adding a blue tint to the colours under this line. However, this still gave the impression that the swimmer was swimming on top of the water. To get round this, the part of the figure under water was given a 66% opacity

August 2016

51


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.