The ultrasonic ranging modules in the autofocus cameras made by the
Polaroid Corporation have always appealed to robotics enthusiasts, and
the same basic design has appeared in several different implementations.
All of these function similarly, emitting a short ping at about 50 kHz
upon demand and returning an "echo" ranging signal. The
modules (as salvaged from cameras) are robust, cheap, always seem to work
and there are lots of them available. I can't resist them and have paid
as little as $0.50 for the cameras (which contain several other useful
parts) at garage sales. Three basic camera types that are commonly available
in thrift stores or eBay are shown here. Several sources on the Web (for
example
robotprojects.com)
detail modifications required to salvage the modules from the older style
Pronto OneStep (left, center) or similar models, but these modules (right,
top) suffer from limitations such as the requirement that they be powered
down after each ranging cycle. The boards are odd-shaped and contain
shutter and motor drive functions that are not particularly useful for
experimenters.
For some years Polaroid has offered a general-purpose ranging module (Series 6500) and a variety of transducers, but they are still somewhat expensive. Evidently, Polaroid has recently ceased production of these boards. Thus, it is worth having a closer look at the ranging modules in the later model autofocus cameras, such as the "Sun Autofocus 660" or the less common "Impulse AF" (above, left and right). In these cameras, some of the camera-specific functions have been relocated to chips on flexible circuit boards elsewhere in the camera, and the resulting simplified ranging module looks very similar to the Series 6500 module. However, the internal circuitry is not the same. The differences reside primarily in the digital chip (U2) that handles the logic functions and oscillator timing.
In this article I describe in some detail how to remove and modify the ranging modules from the Sun 660 and Impulse AF cameras, such that they function identically to the Series 6500 modules. The modified modules do not require external components for interfacing and have multiple-echo capabilities. Note: I recently obtained and disassembled one of the the Polaroid "Spectra" cameras. All that is written below applies to that camera as well, but "J1" has 17 pins to accomodate the switches added to the board.
Pin | "Impulse AF" Function | "Sun 660" Function |
1 | GND | GND |
2 | Pin 16 U2 (BLNK) | Pin 16 U2 (BLNK) |
3 | RC delay, pin 15 U2 (input?) | Pin 15 U2 (BINH) |
4 | INIT - pin 14 U2 | INIT - pin 14 U2 |
5 | Filter | Filter |
6 | OSC | OSC |
7 | ECHO (active high, pullup) | ECHO (active high, pullup) |
8 | Input, diode to pin 15 U2 | V+ |
9 | V+ |
The digital chip (U2) has the same pinout as the Series 6500 chip (TL851), but with some internal differences. After a couple of hours of experimentation with an oscilloscope and a computer to drive the board I determined the following (mostly using the board from the Impulse AF camera, but the Sun 660 seems to behave very similarly):
The Sun 660 and Impulse AF ranging modules can be used without modification if one is not interested in the BINH or BLNK functions. However, in order to reset the digital chip in these modules, after each ranging cycle the module must be powered down as with the older autofocus cameras. One solution, requiring a bit of extra circuitry, is provided in the article by Dennis Clark. The disadvantage of this approach is that there must be 3 signal lines from the controlling microprocessor: PowerUp, INIT and ECHO. A delay must follow the PowerUp signal for the oscillator to stabilize before INIT is applied.
Both of these camera boards can be made to function exactly like the Series 6500 module, which requires only the two signal lines INIT and ECHO for the simplest applications. This simply involves replacing the digital chip U2 as follows. One source of these chips (TL851) is Acroname.
Start by removing the useless connector at "J1". It is possible to remove it pin-by-pin with a solder pencil and a pair of needlenose pliers, but using the soldervac will give you necessary practise for the chip removal. With the board clamped upside down in a vise, heat up each pin connection until the solder melts and quickly suck up the solder by cycling the pump and the yellow release lever shown in the figure. It helps to put the white teflon tip flat as possible on the board, but work quickly! As shown below, if the pin moves in the hole after this procedure, it is free. You may have to "pop" it free with a small pointed tool. When all 8 (9) pins have been desoldered, the connector can be pulled out easily as shown above right.
Next, desolder U2. Clamp the board upside down in a vise. With practise,
this takes about 10 minutes (if you are nervous, try removing chips from
a junked circuit board). Note: the Sun 660 modules are double sided and
have "plated through" connectors which are harder to desolder than the
single-sided Impulse AF boards, but the Sun 660s seem to be more readily
available. As each pin is desoldered, test to see if it can be wiggled
with a small screwdriver as shown here (pin 15 of U2).
In this case, all of the pins have been successfully desoldered even though
some solder remnants are visible. Sometimes a pin can be popped loose with
a bit of pressure. Avoid overheating the signal traces as they
will break free from the board! If they break or come off, the connections
can usually be repaired with fine wire. I slipped and damaged the trace
above pin 3 of U2, but the board still works. When all pins are loose,
remove the chip by prying gently. Note the ground connection to pin 3 on
the top of the board in the figure at right. Insert a 16 pin IC
socket and solder it to the board. Be sure to inspect the modified board
carefully with a magnifying glass to ensure that there are no solder bridges
between pins or traces. It is a good idea to plug the "old" chip back into
the new socket and retest the board before moving on to the next step.
The 12 V stepper motor works well on 5 volts and allows a maximum half-stepped
angular resolution of 0.9 degrees. Since the sonar transducer has a response
pattern that is about 15 degrees wide, the sonar image obtained by the
scanner is a smeared out view of its surroundings. The response pattern
of the detector (the point spread function) is published, so my next project
will be to use image deconvolution to correct for this smearing effect.
Feel free to email me with comments and/or suggestions.
Impulse AF, Sun 660 and Pronto OneStep are trademarks of the Polaroid
Corporation.
Thanks to Colin Mitchell for help with image compression.
Copyright (C) 2002 by S. James Remington. (email)