Sensors - how they work
At the most basic level, sensors work by creating circuit which allows current to flow - the EZIO
reads the resistance of the current to detect the activation level of a sensor.
In the case of an analogue sensor, this is returned as a
resistance reading in the range 0 - 255, with 0 being no activation and
255 being full activation. For example, a touch sensor that is not
being touched will return a reading of approx. 0 and depending on the
amount of pressure being applied will return a value up to 255.
For digital sensors, they return a 0 or 1 reading based
on whether the circuit is open or closed. NOTE: In contradiction to
logic, the EZIO returns 0 when a digital sensor is activated and a 1
when deactivated - keep this in mind when developing.
Make your Own
Digital Touch Sensor
There are a number of touch strip scraps which can be wired to create a
digital touch sensor. See diagram below for instructions.
Custom Pressure Mat
The image below shows how a pressure mat is made, use these principles
to create on of your own. Place a thin piece of foam - with regular
holes large enough to allow contact - between two sheets of conductive
material, connect a wire to each conducting sheet. Connect one wire to
the GND connector on the EZIO and the other to a DIGITAL IN and you now
have a custom pressure mat. Be sure to pick a foam that is thin enough
- this could alternately be any other non-conductive material, its main
purpose being to separate the conductive sheets. When choosing a
conductive material make sure it is something that does not crease
easily, as this may cause permanent contact to be made.
|