459 46 Analogue input The BBC Microcomputer is fitted with a socket at the back marked ‘analogue in’. Into this socket you can plug paddles and joysticks as well as voltages which the computer can measure. Paddles usually consist of a box with a knob like a record player volume control. The computer can tell the position of the paddle and so it can be used in games and more serious programs to move things around the screen. Joysticks, on the other hand, can be moved left and right as well as up and down. As a result you can move an object anywhere on the screen not just up and down a particular line.
Both paddles and joysticks can be fitted with push buttons and the computer can detect when these buttons are pressed. The BBC Microcomputer can be connected to four paddles or two joysticks. The BASIC function ADVAL can be used to detect the position of each control and of the fire buttons. A second use for the analogue input is to measure voltages. Note that the analogue inputs have no built-in protection against excess voltages. You must therefore be careful not to apply a voltage greater than 1.8 volts or less than 0 volts to any of these inputs.
In addition you should keep leads plugged into the analogue inputs away from devices which produce large static voltages such as televisions and some other mains equipment. Each of the four inputs can accept voltages in the range 0 to 1.8V and will produce a corresponding number in the range 0 to 65520. Since it is possible to use a transducer to produce a voltage proportional to temperature, light intensity, smoke density, water pressure, gas concentration etc, it is possible to use the computer to monitor all these things. If the unit is to be used to measure absolute voltages then it should be calibrated individually. In practice 1.0V input typically produces a reading of 35168.
Although the unit is fitted with a 12 bit converter, the user should not rely on more than 10 bit accuracy unless great care is taken with screening and analogue ground connections.