Steve LeibsonLeibson's Law: It takes 10 years for any disruptive technology to become pervasive in the design community. This blog is about the disruptive technologies that either have or will win over electronic engineers, some that won't, and why. Written by Steve Leibson, Tensilica's Technology Evangelist. See my history site at www.hp9825.com.

View Steve Leibson's profile on LinkedIn

Profile

RSS Feed

  • Add this blog to your RSS newsreader!

Recent Posts

Recent Comments

Most Commented On

Archives

By Category

Blog

Wednesday, May 2, 2007

Hacking Old 97, Part 3: USB to UART conversion and software

May 2 2007 10:34AM | Permalink | Email this | Comments (3) |
Blog This! using:  Blogger.com | LiveJournal |
Digg This | Slashdot This | add to Del.icio.us


When we last left this discussion, I had just finished building an optical head for the serial port on my old Fluke 97 Scopemeter using a matched optoelectronic pair consisting of a 3mm IR LED and phototransistor. The project’s overall goal is to get the Fluke Scopemeter interfaced to a PC for screen captures. Fluke built a screen-printing ability into this instrument and it’s capable of driving specific Epson dot-matrix and HP ThinkJet printers through its optical serial interface. Fluke also sells optical-to-RS-232C and optical-to-USB conversion cables and sold a compatible version of its FlukeView software, since obsoleted. All this stuff regularly shows up on eBay.

Spark Fun CP2103 Breakout BoardI could have bought one of Fluke’s cables and the software (the obsoleted version supposed still resides on the CD along with newer versions), but took the task as a learning opportunity, and am glad I did. It’s made me acquainted with a vendor in Boulder, Colorado named Spark Fun, which offers inexpensive breakout boards based on Silicon Labs CP2102 and CP2103 USB-to-UART converter chips. For about $20 plus shipping, Spark Fun will put an operational converter on a board into your hands.

I ordered Spark Fun’s CP2103-based BOB-00199 breakout board and it arrived in a few days. It’s fully assembled and it’s tiny. The biggest component on the board, by far, is the USB connector. I pulled the board from the package and plugged it into a PC. The PC’s Plug-n-Pray USB driver recognized the CP2103 on the board, went out onto the Internet, pulled in the appropriate driver, and installed the driver. I now had a new COM port. That’s about as easy as it gets to add a new device, especially an instrument controller.

The only hardware task remaining was to house the board, add a couple of resistors in the process, and attach a DB-25 connector to mate to the 99-cent serial I/O PC ribbon cable I had adapted to my DIY optical head. The configuration suggested that a plastic DB-25 backshell might serve to house the breakout board, resistors, and connector. So, it was off to the two local parts suppliers near work: Anchor Electronics and HSC Electronic Supply.

97 Schematic ThumbnailProject Schematic (click on thumbnail for bigger image)

At HSC, I found an old AMP plastic backshell that’s been around at least as long as I’ve been designing products, and that’s really a long, long time. I’d brought the Spark Fun breakout board with me and dropped it into the AMP backshell. It fit exactly! The backshell held the board securely and the USB connector poked out of the backshell’s extra-large cable port. What a find! I took the parts home, soldered up the resistors, added an inch of ribbon cable to make the four connections from the breakout board to the DB-25 connector, and buttoned up the assembly. Then I plugged the ribbon cable’s DB-25 connector into the assembly and the other end onto the optical head.

 


Spark Fun breakout board fits perfectly in an AMP backshell
 

Spark Fun breakout board assembly detail


Spark Fun breakout board assembly detail

Ready for the smoke test.

I’d already downloaded Jan Wagner’s ScopeGrab32 software for the Fluke 97. Starting it up, I waited for it to find the COM port and the Scopemeter at the other end of the cable. Nothing happened. It took a bit of fiddling to discover that I had to leave the Scopemeter set to 1200 baud (!) until the ScopeGrab32 software finds it. Then I can jump to the speedy 9600-baud setting for the image transfers. Success at last! Hack finished.

 

 Final ScopeGrab32 screen capture


Reader Comments


at 3/13/2008 10:39:40 PM, Mikeshond said:
I hope this finds you well, as it has been a while since this was posted or updated. I am curious about the CP breakout board, as i have tried and tried to make up a DB9 to IR Interface with no avail. The breakout, minus the optics and resistors and lenghts of cable is all that required? no caps to clean up and boost signals? no diodes to setup rails and grounds? simply solder up 4 wires, 2 resistors and your in business?

at 3/14/2008 8:51:02 AM, Steve Leibson said:
Mikeshond, yes the schematic doesn't lie. I wired it up just like the schematic shows and it works just fine. No signal boosting is needed. Spark Fun's assembled break-out board makes everything just too easy. The hard parts were mechanical: devising a way to hold the opto devices to the side of Old 97 and finding a plastic backshell that fit perfectly without the need for any filing or cutting.

at 3/22/2008 9:20:07 AM, Silkenbömer said:
Hallo Habe ein Flunke 99ScopeMeter Serie 2.Möche in am PC aschliesen.Gibs es jetzt ein PM 9080/001 der preisgünstig nachgebaut wurde, oder ein Satz zum nachbauen.Habe nach ihren Angaben im Inernet nachgesehen,jedoch nichts brauchbares gefunden.Ebenso sit es mit der Software Flunke View TM ScopeMeter for Windows aus. Bitte um Info. Georg Silkenbömer Germany NRW g.silkenboemer@t-online.de MfG Georg Silkenbömer

Post a comment


Display Name

Before submitting this form, please type the characters displayed above:


ADVERTISEMENT

©1997-2008 Reed Business Information, a division of Reed Elsevier Inc. All rights reserved.
Use of this Web site is subject to its Terms of Use | Privacy Policy

Please visit these other Reed Business sites