13.07.2015 Views

Hacking Sensor Interfaces - MSc Sound Design

Hacking Sensor Interfaces - MSc Sound Design

Hacking Sensor Interfaces - MSc Sound Design

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Types of SwitchThe most common switches we encounter from day to day are push switches (push on – release off, or viceversa) and toggle switches (flick it over – it stays over, e.g. on/off switch). These are designed for control byhuman fingers and are not well-suited to sensing objects. The switches listed below are adapted for specialsensing applications and are much more useful for hacking purposes.Tilt SwitchMakes a connection when tilted beyond a certain angle. Easy to use, cheap and good for detecting generalmovement. Might be used on a motorcycle anti-theft alarm. Get more sensitivity by using several togethermounted at different angles.Reed SwitchConnection is made or broken by moving a magnet close to – or away from – the switch, whose contactsare extremely light and hence moved by the magnetic field. Typically used in burglar alarm systems todetect opening of windows and doors.Pressure Mat/Dance MatA pressure mat is a large flat switch that makes a connection when you step on it. Used in burglar alarmsby hiding them under door-mats and stair carpets where intruders won’t see them. A simple way ofdetecting someone entering your installation space. Dance Mats such as those used with game consoles(e.g. Dance Dance Revolution) are similar but feature multiple switches.MicroswitchSmall, sensitive switch capable of detecting small movements mechanically via a lever mechanism. Typicaluse is again on burglar alarms, to detect someone opening the case. Useful for detecting the opening of abox lid or the arrival of a sliding/moveable object.Types of <strong>Sensor</strong>There are many different kinds of sensor you can connect in the configurations shown above, and someonline lists are provided in the Further Reading section. O’Sullivan and Igoe’s book also has a very goodoverview.Light-Dependent Resistor (LDR)As the name suggests, this is a component whose resistance changes depending on the amount of lightfalling on it. These are cheap, reliable and very versatile. Put one in a cupboard and detect the opening ofthe door as light falls inside. Put one under an opaque object and you can detect when it’s lifted up. Canalso create a simple interface with existing equipment – stick one on an indicator LED or display to sensewhen something has happened (e.g. screen of mobile phone lighting up when someone calls).Infra-red DistanceSends out a beam of invisible infra-red light which bounces off a nearby object and provides a measure ofdistance from the sensor. This is typically short-range (less than a metre), but varies with different models.Output may be analogue or digital. Sharp have a good range of these, and GP2D12 has an analogueoutput. These are used in Roland musical instruments such as the MC-505 and known as the “D-beam”.Infra-red ProximitySimilar to Infra-red distance, but the aim is to detect the presence or absence or an object, over a largerdistance. The classic one is a Passive Infra-red <strong>Sensor</strong> (PIR) which is used in alarm systems high up in thecorner of a room, and to trigger automatic lights in driveways and gardens. Output is digital: on or off.Infra-red ReflectorAnother kind of infra-red sensor whose purpose is to detect linear or rotational movement. The object thatmoves typically has a wheel with slits in, or has black and white stripes, and the IR sensor detects blackareas or the slots, each of which will result in a digital pulse. Counting the pulses gives an measure ofposition, while counting the rate of pulses measures speed. Used in car rev-counters and the older ballbasedcomputer mice. Can be fiddly to set up right since not all blacks appear black to an IR photodiode,Chris Hand 28/1/10 4/10

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!