Instructions

This script controls the paddle.
The two sensors are queried at the GPIO-pins 24 and 26 in an endless loop. When a sensor is touched, the associated LED is switched on for 0.1
seconds. The movement of the paddle by 20 coordinate units up or down is much more important than the brief lighting up of the LED.
When the paddle has reached the upper edge, it should not move any further. For this, we use an if-query to check whether the y-position ex-
ceeds 200. If this is the case, the y-position is set to 200. According to the same principle, the position is set to –200 when the paddle has
reached the bottom edge.
10. Day
Controlling a flashing light with putty
Putty conducts current about as well as the human skin does. It can easily be formed in any desired shape, and a putty contact is much easier
to grasp than a simple piece of wire. The area on which the hand touches the contact is much larger. Thus, a "loose contact" is less likely to
occur.
A putty sensor is made of a piece of putty, a wire and an alligator clamp cable.
Components: 1 x plug board, 1 x LED red, 1 x 220-Ohm resistor, 1 x 20 MOhm resistor, 2 x wire bridges
(sensor contact), 4 x connection cables, 1 x alligator clamp cable, 1 x putty contact
The experiment of the 10th day no longer simply switches the LED on or off with the sensor contact but lets it flash at an adjustable speed while
the putty sensor is being touched.
The program
The program uses a variable that is displayed on the stage with a slider. This way, you can change the flashing frequency while the program is
running.