[Book]
Main Page |Book|Search:
[Add to or Correct This Page]

Transducers

The first thing you need to do is find converters between the actions in the physical world and the elecrical energy that the computer can deal with. For instance an ordinary wall switch is able to convert pressure from your finger into electrical energy. These converters are called transducers. Finding the right transducers for your situation or contriving your situation to fit your transducers will probably be the technical challenge that will require the most creativity. If you are lucky your transducer might be something like a microphone or video camera that plugs directly into the regular old computer that you already know how to use. Or there may be an off -the-shelf stand alone (if you can afford it) or at least ic modules that don't require you to do much building.. Otherwise you will be you will need to get down to actually hooking electronic components with a microcontroller.

We will describe transducers here that run the gamut from low to high level. At a low level will be simple inexpensive switches that require you do do some circuitry and programming. It will help focus your search if you have [categorized] your needs and if you are working at a low level have an idea of the class of transducer (eg switch,variable resistor,electronictally thrown switch) that will mostly likely fit your needs. At a medium level are "modules" like the ir distance sensors that surround the tranducer little surrounding circuitry to work more easiely with a microcontroller. At the high end are stand alone i/o devices like a magnetic postion tracker which come ready to send or recieve data from a serial port with requiring you to set up a microcontroller at all.

Sensing Movement

Burgular Alarm Switch

Position

Rotational Movement

Video Tracking

see [VideoTracking]

Making Movement

Sensing Light

Making Light

Touch

Sensing Sound

  1. Max/MSP is particularly strong in this area. For volume, you just use the MSP adc~ object and connect it to a float~ box, which will show you the incoming instantaneous amplitudes. The best tool for doing a more fuller analysis is Miller Puckette’s fiddle~ object at http://www-crca.ucsd.edu/~tapel/software.html. Fiddle~ will work with both Max/MSP and PD, which is a shareware mMax-like environment for Windows.
  2. The Director MX Xtra GetSoundLevel (http://www.physicalbits.com) is also easy to work with for getting sound amplitude. It gives you the general sound input level, or two separate left and right levels if you use a stereo microphone. If you spread two microphones out, this could give you rough position information of a object emitting a constant sound. There are also xXtras for sensing pitch, using FFT. One that we like is the asFFT xtraXtra, available from ASCI (http://www.as-ci.net/asFFTXtra/).
  3. Java can get sound input in several ways, but the most powerful way is to use the JSynsyn classes (http://www.softsynth.com/jsyn/). JsynJSyn includes tools for both analysis and synthesis of sound using Java. Amit Pitaru has extended Processing using JsynJSyn in a tool kit called Sonia (http://www.pitaru.com/sonia/). Live sound input and analysis is one of the many things you can do with Sonia.

Making Sound

Identity

Tracking objects in a space becomes more complicated when you’re trying to track more than one. Not only do you need to know where each object is, but also which one is where. Many of the sensors covered here will not support multiple targets. For example, our beloved IR and Uultrasonic sensors will bounce off the closest target, not noticing any targets behind it. The main technique for establishing identity of multiple targets is to give each targets a distinct signature.

Three of the most common commercial identification technologies can interface relatively easily with a microcontroller or a multimedia computer: Bbarcode scanners, RFID tags, and magnetic swipe card readers. Radio Frequency Identification (RFID) tags are stickers or small tokens which that carry a unique ID number. When radio waves are bounced off an RFID tag, the tag reflects the radio wave back, but the reflection carries the ID number with it. Passive RFID tags get their energy from the radio wave itself, and require no battery or other form of power. Passive RFID tags only work over short distances. If you’ve ever bought a book or a CD and seen the sticker with a spiral metal pattern on it, you’ve seen a passive RFID tag. Active RFID tags have their own power source, and can work over longer distances. These are much more expensive than passive tags. They’re used in commuter toll booth passes like EZ-Pass. The receivers for RFID range in cost from $100 and up. SkyetTek (http://www.skyetek.com) sells a small receiver for avout about $100 that interfaces via RS-232 serial to a microcontroller, and can be embedded into many projects. Passive RFID tags cost less than a dollar apiece, generally. Barcode scanners use a laser to scan the pattern of light and dark bands on a UPC symbol, and convert it into a string of text. They’re ubiquitous in retail stores these days. You can find barcode scanners with RS-232 serial ports relatively easily. Symbol Technologies (http://www.symbol.com) is the biggest manufacturer of barcode scanners, and has a wide range available. Used barcode scanners are easy to find on eBay as well. They usually come with software for printing the out the barcode stickers. Magnetic swipe card readers ise use a magnetic tape recorder head to read the magnetic tape on a credit card or ID card and convert it to a string of text. They’re also easy to find on eBay and many of the electronics retailers mentioned in this book. Interfacing them to a microcontroller is a little trickier; it generally involves synchronous serial communication.

While commercial ID systems aren’t terribly difficult to use, they don’t work well at longer ranges (greater than a meter). In addition, the expense and overhead of learning the protocols may be more than you need. There are many more homegrown solutions for identifying objects as well. Generally, any property that you can be sense can be assigned to in varying degrees to use as a signature to distinguish each object that you want to track. Following are three approaches to one problem, the tracking of game pieces on a board (e.gfor example, chess, checkers, etcand so on).

[Add to or Correct This Page]|[Yes, this is a Wiki]