circuit cellar vol 01 no 02 mar-apr 1988

49
8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988 http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 1/49

Upload: nayyar-mahmood

Post on 02-Jun-2018

226 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 1/49

Page 2: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 2/49

Page 3: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 3/49

March/Atxil

  1988

 

The Core Audience

lh e   essential ingredient in any successful publication is a dedicated core audience. The core audience consistsof readers who personally identify with the purpose and value of a publication. In the extreme, publications withstrong identities even develop unique “personalities” that core readers form lasting relationships with.

Depending upon a publication’s purpose, the composition and necessity for a dedicated core audience varies.

I don’t generally think of Good Housekeeping or TV Guide as being particularly concerned about core audiences,for example. But, a technical magazine like Scientific American, which is designed for a minimum level of scientific understanding and interest, has almost a cult following.

Publishers have to be careful when they change their goals. Unlike time-critical news or event-basedmagazines, core-audience-critical technical publications have to be constantly aware of their prime directivesso that they don’t dilute or ignore the core audience in a frenzy to meet financial objectives.

A circulation manager once described the delicate process of increasing publication revenues to me in thefollowing way: Think of carefully breaking an egg in the center of a spinning turntable. At the center is a well-

defined and boundaried area (the yoke) surrounded by an almost infinitely expandable unboundaried area (thewhite). Metaphorically speaking, the yoke is the core readership and the white is the general-interest audienceof the publication.

Expansion and contraction of readership and revenue is dynamic. The rotation rate of the turntable representsa complex compromise of editorial, reader, and revenue objectives. When the platter spins at a reasonable rate,following a well-planned path, the yoke will remain intact and the white will expand out uniformly. If, as theresult of an abrupt change in objectives, however, the platter is spun very fast or with sudden acceleration, thesituation changes radically.

Initial appearances can actually misrepresent actual results. The white will indeed expand out very quicklyand appear to demonstrate substantial gain but, left unchecked, this applied energy can rupture the yoke causingthe core audience to spill out at the same rate of expansion.

Reader profiles are not just emotionless demographics. Specialized journals like INK have a vested interestin a cohesive and dedicated core audience. The uniqueness of a technical journal is that its readers are also itsauthors. While we are often disparagingly called “techies,” INK truly has a nonsuperficial core reader andexperience shows most of these readers are also experts at the center of innovation. As a core reader of INK you are in good company!

Successful technical journals are those that have forged a proper balance between business and editorial

objectives. I for one am dedicated to keeping INK’s direction consistent with its significance. I am proud to bea techie, and I make no bones about it!

Page 4: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 4/49

Circuit Cellar ink

Dear Steve,

As a nonelectrical engineer, I have followed your articles in BYTE for many years. I’ve put together a fewof your kits. I have always admired your ability to writeabout electronics in an understandable way. Occasion-ally I have plagerized portions of your work or madea few copies for the students in my classes.

I’ve been interested in instrumentation throughoutmy professional career (as an agricultural engineer) andhave always played with electronics. Several years ago

I struck out on my own (nonengineering) but found thatI missed it so I returned to another university.

While there, I homed in on the BCC52 and taught acourse in experimental data acquisition using it. Themore I used it the more I liked it. I am now developinga course in Sensors and Control for students headed intoindustrial jobs, and food engineering.

I have always wished there was more of what youwrite about. I have subscribed to Popular Electronicssince high school and now Radio Electronics andComputer Smyth. I welcome Circuit Cellar INK and just thought you should hear from one of the silent

(electronic) majority.Keep up the tutorials; I always learn something new.

Kenneth A. JordanTucson, AZ

Dear K en,

Thanks for t he vot e of confi dence, Ken. I w i l l endeavor 

t o keep Cir cuit Cell ar IN K bot h entertai ning and inf or- 

mat iv e. I look ed over t he class material s and BASIC

52 programs you sent . The w ay i t i s present ed could 

benefi t many peopl e. Perhaps you should upl oad t hese 

class mat eri al s to t he Cir cuit Cel la r BBS and share t hem 

w it h ot her r eaders.

-- Steve 

Dear Steve,

It has been a long time coming, but you’ve finallygot it in published form...BRAVO! I can’t wait for thenext issue. I would like to comment on Mr. Tom

Cantrell’s article on “RISC vs Reality, an Exercise inAcronyms.” It appears as if the one-sided, so called“facts” about RISC CPUs   and the performance they can provide is something that Mr. Cantrell doesn’t seem tofully understand. RISC CPUs   may not be for everyuser, but if it is speed and performance you desire inyour computing needs you just may have found whatyou’ve been looking for.

RISC doesn’t mean cutting corners on the hardware, but I will agree that the software will need to be muchsmarter on these types of systems. For some of us

advanced “hackers,” computational performance is allthat matters. Software or no. I hope he reads your opening editorial. It is what’s inside the box that counts! Not to mention, your specific needs and/or applicationswhen it comes to the RISC. Steve, if I may be so bold,let me direct my additional comments to Mr. Cantrell personally.

Frankly, I’m shocked Mr. Cantrell. RISC -- is for student computers? Acronyms! What are people goingto think about RISC when they read your article? The power that can be achieved from a RISC CPU offerstremendous and dramatic performance improvements

over traditional computer architectures. By reducingthe use of microcode, limiting references to mainmemory, and using RISC optimizing compilers thatmanage and analyze the instruction flow, the results arequite clear. Compilers maximize the concurrency of such operations as storage, branching, and

floating-

 point ins tructions. The machine code they produceimproves application performance by maximizingregister usage, minimizing memory references, andgrouping similar operations.

 Notice the “key” word here is “application”! Thisoptimization of instruction flow reduces wait states andincreases the efficiency and performance of the RISCCPU. Using simpler instruction sets and minimizingmicrocode translations result in CPU instructions beingexecuted in one machine cycle and increased through- put respectively. In addition, if instructions are uni-form in length, the need to order or schedule instruc-tions prior to their execution is reduced. The result isa smoother flow of instructions through the CPU andfaster execution times. Such architectures most oftendepend less on memory referencing for instructionfetching and translation as well; that further increases

Page 5: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 5/49

  1988

system efficiency.Speaking of memory, RISC CPUs  employ data and

instruction caches that greatly reduce the need for argument and instruction fetching thereby accelerating

system speed. Instruction set complexity is a VERYBIG DEAL! System performance may only be onefactor in achieving success in the market, but depend-ing on what market you’re in, it may be everything youneed.

Don’t get me wrong, I enjoyed your editorial andlook forward to a response from you or Steve concern-ing my somewhat biased view of the RISC CPU. Inclosing, I thought you might be interested in myfavorite toy, which is what I’ve been referring tothroughout this letter.

It is the Prime PCXL 5521 Graphics Workstation. A

supermini VME computer utilizing a fully customizedCMOS VLSI, IO-MIPS, 32-bit RISC CPU; 4-MFLOPScoprocessor; 12 MB ECC MOS memory; 17 VLSI lo-

MHz highly pipelined graphics engines handling145,000 3D 32-bit FLOP coordinates per second,accelerated by 14 custom-VLSI processors for graph-ics management, providing 16.7 million RGB, 24-bitdisplayable colors, 1280 x 1024-pixel   resolution for true, real-time interaction with 3D graphics and com- plex 4D transformations.

Enough acronyms for you? My business would benext to impossible without the RISC CPU. I’m now an

independent designer of ultra high resolution computer animated graphics for the post video productionindustry, and previously have been a systems telecom-munications engineer for several years, working spe-cifically with the D.O.D. For writing, I use a PC/XTcompatible, manufactured by Ericsson InformationSystems and Microsoft. Word processing by MultiMateAdvantage 3.6.

RichGaskill

President The Graphics WorkshopGarland, TX

Dear M r. Gask i l l ,

I ’ m sorry if you w ere disturbed by my edit orial . I went out of my w ay t o say a few good thi ngs about RISC.

I ’m all for any thing that helps keep t he big guys honest .I concede t hat as a mark et i ng issue, RISC has a big 

impact (i t i s gi vi ng a lot of peopl e an excuse to change).W it ness all t he exci t ement ov er t he AT& T-Sun affai r.M y ori ginal st atement, “I nstr ucti on set complexit y i s 

not t hat big a deal,” is open t o int erpretat ion. I’l l restat e 

it as “Instructi on set complexit y has li tt le to do w it h system performance.” 

I agree w i t h most of w hat you say, because most of i t i sn’t about inst ructi on set s. Rather, as i s often the case,

w hat star t s as a pi t ch for RI SC evol ves into a discussion 

of cache, mul t i regi ster set s, and opt imi zing compi l ers.These w ere al l deemed w ort hy l ong ago. Thir t y l ashes w i t h an Et hernet cable (and not t he t hin stuf f)! “RISC CPUs  empl oy dat a and inst ructi on caches that 

great l y reduce t he need for ar gument and i nstr ucti on fetching, accelerat i ng system speed.” A rrgghh - - more RISCSpeak Do you mean to imply t hat CISCs don’t ,or can’ t , have cache ? What does dat a cache have to do w it h inst ruct ion set complexit y? As for “Such archi t ectu res most oft en depend less on 

memory referenci ng for i nstr ucti on fet ching...,” even 

RISC proponent s admi t t he archit ecture exhibi t s more,not less, instruct ion t raffi c than CISC. For exampl e,compari ng tw o memory locati ons requires three instruc- 

t ions on a RISC LD ,LD ,CM P versus one instr ucti on on 

a CISC (CMP). The real argument i s how much the i ncrease in number of i nstr ucti ons executed is off set by faster i nst ructi on execut i on.

Even your w orkstat i on RISC CPU needs a f l oa t i ng -

point coprocessor (or a more opti mal opti mi zer). You have complex inst ructi ons aft er al l ! 

The key factor s for syst em perf ormance are mul t i - processi ng (ar chi t ectu re) and process/speed (implem-

entation). These, not instruction set complexity, are what separat e a CRAY from a PC.

I appreciat e your comments as a fel l ow INK reader.“What’ s i nsi de the box st i l l counts,” not w hat t hey say.

Tom Cantrell 

Dear Steve,

Congratulations on your new publication, and Iwish you great success. It is badly needed because mostof the other magazines contain nothing but low-levelapplications and advertising hype.

I don’t hesitate to tell our readers about other good publications (a little different than BYTE’s attitude!!),and I’ll announce it [INK] in the next issue.

Best of Luck,Art

rlson

Editor/Publisher

The Computer JournalColumbia Falls, MT

Page 6: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 6/49

Circuit Cellar Ink

Page 7: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 7/49

March/Ant i1 1988

Circuit Cellar NeighborhoodStrategic Defense InitiativeThe Bal l istic Dynamics of Plastic Soda Bottles  by Steve Ciarcia and Ed Nisley

 You know how a. picture is worth a thousand words? Well.  a personal

visit can amount to an experience of a  lifetime. Let me e-\piain,

You may have seen mention of the Circuit Cellar Research staff here and in other publications. No,it is not tongue-in-cheek oxymoron

attempting to suggest that I do thework of many people. The Re-search group is a living, breathing bunch of high-tech individual swho do a lot of the backgroundresearch (some might call it thedirty work) and correspondence for Circuit Cellar and INK. These people live all over the country butthe majority of them live in the Northeast.

Last summer I decided to have a

 picnic/party/meeting at my housefor as many of this group who couldshow up. While we communicatedregularly via BBS and mail, it wouldgive a few of us an opportunity to“press the flesh.” This would also be my first meeting with Ed Nisley.

From what I am told (theywouldn’t lie, would they?), peoplelike Ciarcia-hosted parties. I don’t bring in any dancing girls but if youhave a tendency to overeat, you’reat the right place. I love to cook and1  always use parties or entertain-ment as an excuse to cook all thethings heart specialists execute people for even thinking about .You know: hors d’oeuvres, scallopclam chowder with pounds of 

 butter and cream, shrimp proven-

tale

  in butter and garlic, eggplantParmesan, chocolate mousse withwhipped cream, trifle...Wait...I’m

getting hungry even describing it.In any case, about 25 of us were

sitting out on the deck sipping drinksand eating hors d’oeuvres when a

Toyota Camry with New York plateswheeled in. Ed Nisley had made itafter all.

You never quite know what toexpect of ex-IBMers   and Ed was noless surprising. He climbed the walk and introduced himself to everyonethere (no shy guy here, folks). As weshook hands we stared intently ateach other. While slight of stature Isensed this man was a bundle of energy who rarely rested. As he

watched me I couldn’t help but feelthat he was reducing me to primecomponents through a Fourier analy-sis. I shouldn’t have been surprised;all of us engineers do that. We look at a vase of flowers and draw aschematic.

As we continued to exchange pleasantries, I couldn’t help but no-tice that his car was full of “stuff.” Not lu ggag e, th is “s tu ff ” lookedmore like he had stopped at a

 junkyard someplace. I decided tokeep an open mind. “How about adrink, Ed. You’re probably thirstyafter your trip.”

“Well actually, Steve, I don’tdrink. I still have some refreshmentsin the car cooler if you need anymore, though. I think I still haveorange juice, ginger ale, and root beer.”

Well, we weren’t going to get any-

thing out of this guy by plying himwith booze. With my luck he was

 probably one of those guys wholived on rabbit food, too. One

spoonful of chowder was his totalcaloric intake for the day...Ed in-terrupted my next thought.

Ed wet his forefinger and held itup into the air, then rotated quicklyaround toward me. “What do youthink, Steve. Six miles per hour from the south-southwest? Do youstill have that anemometer fromthat wireless weather instrumentyou did as a project a few yearsago?” Checking his watch and a

small instrument from his pockethe continued almost in the same breath, “What are we, about 1100feet above sea level? You aren’t inany airline flight paths are you?”

I wasn’t the only one on the deck who thought this conversation wasgetting a little strange. I took a sipof my Tanqueray martini, fur-rowed my brow as a nonverbal“say-what?” and answered, “Ac-

tually we’re at 1120 feet, if it makesany difference.”

Before I could finish, Ed spiedsomething of particular importanceon the deck and took off like a shottoward it. He grabbed a l/4-full

2-liter Coke bottle from the cooler and yelled, “Hey, Steve, can I usethis?”

That seemed a bit confusing tome but people also say “can I borrow the bathroom.” In

actual-

Page 8: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 8/49

6

Circuit Cellar Ink

ity, you don’t want your bathroomto go anywhere, but a bottle of Coke seemed harmless enough notto question semantics. Perhaps Edhad tired of root beer and orange

 juice. “Would you like a glass andsome ice for that, or do you prefer it straight?”

“Neither! I just want the bottle.”We all watched aghast as Ed took the cap off the bottle, held it atarm’s length, and inverted it. He poured its contents into the

shrub-

Before I could say anything, Ed bolted for his car with a few

semi-

willing conscripted volunteers. Iwiped my forehead which was nowsweating profusely from stress andturned toward the house to makeanother drink.

I took my time in the kitcheneating a few spicy hors d’oeuvres thatmight replace the growing throb inthe back of my head with a moremanageable case of indigestion.When I finally stepped outside I

“Hey, Steve. Watch this!”Before I could jump back, protest,or take cover, Ed yanked the lan-yard. “Whomp!!!!” Twenty-five people stood there (actually, someducked) with their mouths open asthis “bottle rocket” blasted off likeit was shot out of a cannon.

I barely had time for the shock to wear off when somebody in thecrowd yelled, “Heads Up!” Obvi-ously, what goes up must comedown and everyone scurried for 

 bery surrounding thedeck and then called back, “Got any more?”

A quick thought of 

Ed stopping and pick-

ing up5-cent-deposit

soda bottles along 100miles of highway

be-

tween Connecticut and N e w Y o r k f l a s h e dthrough my mind. “Ihave a barrel of sodacans that I’ve been

sav-

ing for theneighbor-

hood kids that you canhave.”

I took a long drink of my martini as a fewguests politely

chuck-

led. Mostex-IBMers

  I

cover as the plastic bottle which had been blown almost   com-

 pletely out of sightsud-

denly appeared to be ona direct trajectory for 

us.

Fortunately, theytake off with a lot morevelocity than they fall. I backed up flat againstthe side of the house sothat I was protected bythe overhanging roof.

The “bottle rocket”finally landed. Itmissed the edge of the

roof and bagged a per-

feet

  bullseye on a largehanging plant sprayingdirt in all directions. As

had met were exceptional people.The “ex” connoted that they couldnot live in a homogenized commu-nity and needed to speak as anindividual, but they usually applied

“No, Steve. I need plastic bottles.Got any l-liter?”

themselves brilliantly in other endeavors. Was I seeing a new sideto the coin?

Ed finally ceased his exhuberant behavior long enough to exhibitsome established social skills. Helooked around at all the blank facesand started to realize that perhapshe had left out some importantdetails. “Wait! I brought along alittle toy to liven things up. Do youmind if I set it up?”

found myself pressed back towardthe house by a group of guests whowere backing up en masse. Gently el- bowing my way to the front of the

A closer examination revealed that

throng, I could clearly see Ed Nisley

it was a gantry and rocket launcher!Or, sort of a launcher. There was a

crouched beside a strange contrap-

 base “launch pad” with iron guidesthat appeared to be a gantry and ahose running from the launcher to a

tion holding a rope as if he were

metal cylinder that looked like the

about to fire a cannon.

 propane bottle from a barbecue. As

my eyes went back to the launcher, Irealized that the launch vehicle wasthe plastic soda bottle!

luck would have it, I was the oneclosest to the plant. Everything I’deat or drink for the rest of theafternoon was now destined to tastelike Miracle-Gro.

Ed looked at me. I took my timeshaking the dirt out of my beardand pouring the freshly madeMartini into the bushes.

The people on the deck were silentlywaiting for my next move.

Before Ed could say anything I picked up the spent soda bottlerocket and walked toward him. As

I reached my hand out to grab thelanyard from him he jumped back 

Photo Inset: Ed Nisley demonstrating hisbottle rocket.

Page 9: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 9/49

March/Am-i1   1988

as if to stay out of range. Had this been the wrong “toy” to bring to aCiarcia party?

I knew I had him and I could

have carried on the charade longer, but there wasn’t any use rubbing itin. When I saw the blastoff, Irecognized instantly that this was agrown-up version of the com- pressed air and water hand-heldrockets that I used to love playingwith as a kid. I grabbed the lanyardand yelled, “All Right!!! What ashot! Let’s do it again!”

Ed, of course, breathed a sigh of relief. His opinion of my sense of 

humor had been formed by reading

Circuit Cellar for many years andhe had not guessed wrong. We were bi rds of a feat he r and in stan tfriends. As for how the partyturned out, we emptied the cooler into the bushes and had a great timeall afternoon.

Ballistically Speaking

While our experiences leadingup to that point were humorous, it

eventually evolved into somethingmore serious. That many technicalminds can’t witness something likethis without asking questions or 

wanting to get involved. You ac-tually have to see one of thesethings blasting off to appreciate thespeed. We all were interested in thescientific principles and realities of these projectiles. How much pres-sure was in the bottle? What wasthe take-off speed and what werethe G-forces?

With a few more drinks and somequick calculations on a place mat,the Circuit Cellar Ballistic MissileResearch Division was born. Itscharter was to analyze this com- pressed-air missile system.

The first thing we did was tocheck out Ed’s launcher.

It turns out that l/2-,   l-, and 2-

liter plastic soda bottles (airframes)

share a common opening diameter (nozzle) and cap. Launching onemerely consisted of filling the in-verted bottle with compressed air andquickly releas ing it. Holding i tagainst the pressure and instantlyreleasing it is no easy task, however.

Ed had two different launcherswith him. One used a lever-armclamp around the neck ring on the bottle (Photo 1). The clamps wereadapted from a set of bicycle brakes.The hand lever pulls the clampsdown against the neck ring and pushes the nozzle against a rubber seal in the baseplate.

Another used an expanding rubber 

seal to grip the inside of theairframe’s nozzle (Photo 2). A pair of cams pushes a metal plate upward tocomoress the rubber seal against the

An extensive series of evalu-ations conclusively demonstratedthe superiority of the expandingrubber seal launcher. Although theclamp launcher looks wonderfuland is a triumph of the machinist’sart, it simply could not hold theairframes against the nozzle sealwith enough force to prevent leaks.

At the end of the launcher evaluation tests, we had a dozenairframes scattered around the Cir-cuit Cellar Missile Test Range,many lost forever in trees and bushes. We retired to the Bar-B-Qand restarted the airframe produc-tion line. The time was ripe for a

study of launch parameters.

Photo 1 Level-arm launcher

nylon guide rod, expanding it againstthe nozzle. Rotating the cams theother way relaxes the seal and re-leases the airframe. The guide rodensures a straight takeoff even if agantry isn’t used.

All the bottle rockets werefilled with compressed

  __, ; ”

air at about

  .

60-100 psi. It’s hard to convey justhow exciting a full-power missilelaunch is. It starts with a satisfyingBLAM! that puts an airframe a fewhundred feet in the air in a fractionof a second. Next, there is a searchfor the airframe silhouetted against aclear blue sky, and finally finisheswith a tightened stomach when yourealize that the launcher is much tooclose to the parking lot.

Instrumentation

Designing and building theairframes and launchers was easyenough, but we wanted to know just how these missiles performed.It’s not enough to be awed by a goodlaunch; we needed some hardnumbers by which to measure andevaluate our options.

All of us were interested in the

Page 10: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 10/49

Photo 2 Expanding seal launcher

airframe’s launching velocity andacceleration. Both of those valuescan be computed from the timerequired to travel a known distanceduring the launch.

The first test flights verified thatthe missiles travelled “mighty fast”

 but we needed a bet ter estimatethan that to decide how to time theflights. We fished out the place matthat started the project and made afew more computations.

 Newton’s Second Law of Motion provided the basis for the calcula-tions: the force required to move anobject is given by the product of itsmass and the acceleration imposedon it. We can measure the mass of the airframes easily enough, andthe force imposed on it is deter-mined by the propellant pressure.The resulting acceleration is simplythe launch force divided by theairframe mass. Of course, all thesevalues have to be expressed in theappropriate units for the answer tomean anything.

We measured several airframesand found that the 2-liter versionsweighed about 2.0 ounces, or 0.125

 pounds. The neck diameter was 0.85inches, giving a nozzle area of 0.57square inches.

When an airframe is pressurized to

100 psi there are 57 pounds (100 pounds per square inch x 0.57 squareinches) press ing down on thelauncher through the nozzle. Thisforce will decrease as the propellantexpands through the nozzle duringflight, until finally the airframe is infree-fall near the top of its trajec-tory. We used 57 pounds for thethrust throughout the gantry, eventhough we knew that it would giveoptimistic results.

Figure 1 shows the calculations for 

a a-liter  launch. A 57-pound   thrustapplied to a two-ounce bottle pro-duces an initial acceleration of 470times the force of gravity! Contrastthat with the Space Shuttle’s leisurely3 G...it’s a good thing the CircuitCellar Ballistic Missile won’t be usedfor manned flights!

Using that estimate, we can deter-mine the airframe’s velocity at the

end of the 3-foot launch gantryshown in Photo 3, as well as theamount of time it takes to get there.Figure 2 shows these calculations,

with the surprising results that theairframe reaches the end of thegantry in 20 milliseconds,

trav-

elling at 300 feet per second.Three hundred feet per second is

about 200 miles per hour! Nowthat’s performance!

Even though the airframes maynot move that fast for very long, it’senough to rule out some of thesimpler ways to find the airframe’s posi tion along the gantry . Weoriginally thought of locating

switches along the gantry, but youcan imagine what happens when anairframe hits a switch at 200 mph!

Ed came up with the systemshown in Photo 4. A pa ir of  connectors holds a wire across thecenter of the missile’s path. The tipof the airframe pulls the wires outof the sockets, breaking the circuit.The connectors are made from

cut-

Newton's Second Law: acceleration = force / mass

Airframe mass = 2.0 ounces= 0.125 pounds mass

Airframe nozzle diameter = 0.85 inchesarea = 0.57 inches

2

Launching pressure = 100 pounds force / inch2

force   = 57 pounds force

Conversion between pounds force and pounds mass:

1 lbf = (1 lbm) / (32.2lbm-ft/lbf-sec2)

57 lbfSo acceleration

=

 ______________-_----~~~---~~~----~~(0.125 lbm) / (32.2

lbm-ft/lbf-sec2)

= 15,000ft/sec2

Conversion betweenft/sec2

and sea-level force of gravity:

accel inft/sec2

accel inG

= ________________

32.2 (ft/sec2)/G

so launch acceleration = 15000 / 32.2= 470 G

Figure 1 Initial Launch Acceleration

Page 11: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 11/49

Page 12: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 12/49

Page 13: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 13/49

arch/Aoril  1988   II

 printer port’s buffer! we didn’t even consider using Timer  current count value. There is a way

1. to read the actual state of the output

Precision Launch Timing Timer 2 is used to generate the signal using the 8259Program-

 beeps and boops you hear from your  mable Interrupt Controller, but it’s

The IBM PC uses an Intel 8253   PC’s  speaker and (in the original PC, hardly worth the bother. programmab le in te rval timer to at least) it was the basis of the cassette An adventurous programmer  provide three hardware timers. A tape interface. Although it’s

tempt-

can reprogram Timer 0 to operatecommon

1.19 MHz

  clock inputde-

ing to use Timer 2 for the launch in Mode 2, which produces a nar-

rived from a 14.3-MHz   crystal os- instrumentation, there’s one fatal row pulse instead of a square wave.

cillator

  provides a fundamental flaw: the output cannot generate an The interrupt controller doesn’t“tick” of 840 ns. The timers are interrupt, so there’s no way to tell care how wide the pulse is, so a programmed by the BIOS when the when the timer has “hit bottom” and  pulse will work as well as a squarePC is turned on and rarely changed recycled to the maximum value. wave. The only restriction is that by ordinary programs. the CPU

(8088,80286,80386,

  whatThe timers count down from a Tricky Ed to the Rescue have you) must respond before the

 prestored maximum value to zero. signal becomes inactive.  Fortu-

When the count hits zero, a hard- Although none of the timers are nately, because we aren’t running

ware output signal becomes active, quite what we needed, Ed came up much else concurrently, this isn’t athe maximum count is reloaded, with a tricky solution for this ob-  problem here.and the timer continues counting.

  stacle.

The only remaining task is toSetting the maximum value defines A program can read the state of  calculate the maximum count valuethe rate at which the output signal the 8253’s counting registers at any that will produce an output pulseis generated. The timers can also be time. Because the timers count down, every 54.9 milliseconds. This is programmed to stop counting when the value read back equals the num-

simply the ratio of the desiredthey reach zero, but this mode is not ber of ticks until zero. This is easily output period and the input period:usually used in the PC. converted to the number of counts 54.9 ms

/

 840 ns, which is 65536 or Each of the three timers is as- since the previous zero. This is 64K. For the purists, the actual

signed to a different task in the PC. exactly what’s needed for better  values are 18.2065 Hz andSoftware measures time using timing resolution. 838.095 ns.

Timer 0, which generates inter- Recall that when Timer 0 hits The 8253 uses the value 0 torupts 18.2 times a second. The zero, the BIOS code updates the

time-

represent 64K. In effect, the timer BIOS counts the interrupts and of-day value in RAM. That value reloads a zero when it reaches zero!updates a time-of-day value in provides the time to the nearest 54.9 The next count is 65535, and so onRAM that’s used whenever a

pro- milliseconds, and the count read for the whole cycle.gram needs the current “wall from Timer 0 provides the exact time With precise timing in hand, itclock” time. A resolution of l/18 with microsecond resolution. was easy enough for Ed to throwsecond is enough for normal tim- The BIOS programs Timer 0 into together a program that reworksing, but 54.9 milliseconds is a “Mode 3” to generate a square wave Timer 0 and records times to therather long time compared to a 20- output signal. In this mode the count nearest microsecond or so when amillisecond launch. An airframe is decremented by two instead of one sensor changes state. Listing 1can completely vanish between two for each input clock pulse. When the shows a flowchart of the launchclock ticks! count reaches zero the output signal timing programs. The main

pro-

Timer 1  generates the signal used is inverted and the maximum count gram is written in Turbo Pascal, by the RAM refresh DMA channel. reloaded. The effect is a square wave with an assembly language routineIt’s set to produce an output every signal with a period set by the

maxi-

to handle the fast timing loop.15.1 microseconds, which is a little mum count. Listing 2 shows the core of thattoo often for our purposes. Because Because interrupts are generated assembly code.PS/2   system boards use a different only on the rising edge of the output The time required to completemethod to generate RAM refreshes signal, the timer goes through two one loop determines the actualthey do not implement Timer 1 at complete counting sequences for  timing resolution. For example, if all. Messing with the system RAM each interrupt. Therefore, you can’t a sensor changes just after the

pro-

refresh rate is fraught with peril, so tell the exact time just by reading the gram has read the input port, the

Page 14: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 14/49

 SSEtl LER   CODE

I

SAUE  REGISTERS ON STACK

ALLOChTE  LOCIIL   “ARlAGLES

I

REPROGRW  TIMER 8

“ODE 2.h4K

  C O U N TS

I

S E T - V P “DEADPIRN”  T  IelEOUT

I

REM SENSOR BITS

COMPARE UITH   WSK

lNlTIr LIZE

CLERR  Ur+R   I ABLES

 

I

SET-UP PRlNTER   PORT

II

I

 

GET GANTRY OIITII

I

CONVERT TIMES TO SECONDS

W LlDfiTE   SENSOR SEOUENCE

 

W R ITE DIITA  FILEI

 

RERD TIllER 0  C O U N T

 LOW,

 HlGH

  B Y T E S ,

G E T BIOS   TOO   UALUE

I

SHlFT   SENSOR PI,

L I S T I N G 1

PROGRWI   L O G I C

LhST  SENSOR?

NO

 program must travel around thewhole loop before it will find thechange on the next port read. Astock IBM PC running at 4.77 MHztakes about 15 microseconds tocomplete one “idle” loop, so that’sthe true resolution.

The sensors sometimes glitchduring launches (remember that2 0 0 -mp h p ro j ec t i l e r i p p i n gthrough the gantry!) so the codewaits for each sensor to be acti-vated in turn. If a sensor glitches

open momentarily the code will ig-nore it.

The program records the state of the gantry sensors and the time atwhich each sensor changes. After thelast sensor wire has vanished the program sanity-checks the resultsand displays them on the screen. If everything looks OK, it creates a filecontaining the appropriate data for later analysis.

Although we’d like to pretendthat the Circuit Cellar Ballistic Mis-

sile Research Division has onlysuccessful launches, that’s simplynot true. The assembly code in-cludes an escape clause that timesout after about 20 seconds of nogantry action. This prevents acomputer hangup if a launch fails.The code implements this by add-ing 20 seconds to the BIOS time-of-

day value at the start, then check-ing the current time on each loop.

Test Flights

With the gantry wired up and anIBM PC converted to work as a datalogger, we were faced with the task 

of validating our assumptions andEd’s code. I insisted that the program should generate reason-able numbers before we madeclaims about actual launches.

Ed checked his software by fill-ing an airframe with water anddropping it through the gantry(holding it upside down for the

 purp ose) . The measured times(shown in Figure 3) matched the predicted values closely enough to

convince me that we knew what wewere up to, so we made a series of instrumented test launches.

Ed imported the gantry timing program’s output files into a seriesof Lotus spreadsheets to computethe velocities and acceleration fromthe distance and measured times. If you remember that velocity is just

distance divided by time, and ac-celeration is velocity divided bytime, you’ll have no trouble follow-ing the formulas shown in Figure 3.The spreadsheets simply applythese equations to the data obtainedfrom the timing program.

However, the example used inFigure 3 shows that you can’t takethe exact numbers too seriously.

The average acceleration betweensensors 2 and 4 is 3 1

ft/sec2

  insteadof the 32.2

ft/sec2

  you’d expectfrom high-school physics. Differ-

Page 15: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 15/49

Page 16: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 16/49

Page 17: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 17/49

Figure 4

Figure 5

March/April 1988 15

Figure 6

FastTrap’”

he pointing  device of the future Is

erel

 Two and threeaxis pointing capability.High resolutiontrackball for X and Y axis input.High resolution fmgerwheel for Z axis

input.Use with IBM@PC’s XT’s, AT’s and

compatibles.‘Three input buttons.‘Full hardware emulation of MicrosoftMouse.‘Standard RS-232 serial interface.

‘Includes graphics drivers and menugenerator.‘Easy installation.

‘1 year warranty.

Made in U.S.A.

3NLY  $149.00

T

INTERCHANGE”Bi-directioncrl

 DataMigration

  Facility‘or IBM PS/f AT, PC, PORTABLEmd   Compatibles   _

Features:‘Parallel port to parallel port.*Economical method of file transfer.

‘Bi Directional

  file transfer easilyachieved.

*Supports allPS/2

  systems(Models 30, 50, 60, and 80).‘Supports IBM PC, XT, AT, Portableand 100% compatibles.

*Supports 3l/2

 inch and 5l/4

 inchdial

transfers.*Supports hard disk transfers.*Supports RAMdisk   file transfers.

*The SMT 3 Year Warranty.ONLY $39.95

LTS/C   Corp.167 North Limestone StreetLexington, Kentucky 40507

 Tel: (606) 233-4156

Orders (800) 872-7279Data 606 252-8968  [3/12/2400  8-N-11VISA, Mastercard, Discover Card,TeleCheck

Page 18: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 18/49

Page 19: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 19/49

March/Aoril

 1988

Answers; Clear and Simple 

Letters to the INK Research Staff 

Dear INK,I recently saw a neat CAD drawing system for the

IBM PC. The system allows you to create great screengraphics easily. The screen images are stored in datafiles in DXF format. I would like to be able to displaythese files in my Turbo Pascal programs.

Can you recommend a good source of information on

the DXF format, and writing or acquiring the necessaryTurbo Pascal code?

John Panagacos-East Williston, NJ

Dear John,As near as I can tel l , fil es ending in DX F are draw ing 

files used by AutoDesk ’s  Au t oCAD  CAD pr ogram.Because t he fi l e ext ensions are free or  t he naming, tw o 

vendors may (and have!) used t he same ext ension for

compl etel y di fferent t ypes of fi l es, but I ’m pret t y sure that ’s what y ou’ve got.

I’m also sure that it ’s not in t he normal CGA or EGAbit -image format supported by most draw ing programs.

CAD fi les contai n a great deal of in f ormati on in 

addit i on to t he simple graphics prim it iv es: a ty pical entr y mi ght be “t here i s a double- w idth brok en l i ne in color I from (1.25,2.50)  t o (4.5,10.13)  w it h break spacing .05”, w it h other entri es fi ll ing in all the detai ls 

of color and w idt h and so fort h.As you can see, decoding t his i nto a picture might t urn 

i nto something of a project . I don’t know w here you’d fi nd source code for a f i l e decoder, but a call (or l et t er) to AutoDesk  mi ght produce some interest i ng result s on 

t he fi l e format . They’ re at : 

AutoDesk

2320 Mari nship W ay 

Sausali t o, CA 94965 (800) 433-0100 or (415) 332-2344 

Good luck! - - INK 

Dear INK,I have several questions about my Tandy

1OOOA

which came with an NEC CPU chip (I assume it’s a

V20).

1. How can I find out which model of CPU it is? I think it’s a ~-MHZ  model. The chip has this label on it:

“NEC JAPAN D8088D 8433KX”

2.  Will an8-

  or IO-MHz model work, and if so howmuch speed improvement can I expect?

3. The unit has an 8087 math chip socket. Should I usea regular 8087, or can I use a 8087-3, or 8087-2?

Also should the CPU chip and the math chip speed be the same?

4. Drive A is very noisy when turning. I have a driveB and it is quiet. The noisy operation is veryannoying. I tried to switch the two drives on the logicthat I use drive A more often than B, but the systemstill went to the original drive A to boot. What can

I do?

I would be thankful for any information and/or advice you can give me.

Mark Danner-Sherman, Texas

Dear M ark,

I bel i eve t he chip you descri be i s actual l y an NEC 8088, whi ch is t he same as the Int el 8088, not a V20. The 

V20 i s also a di j j erent design using CMOS, rather t han t he 8088 whi ch uses NMOS . Besides the par t number “8088” anot her clue i s the date code whi ch indi cates your 

chip w as made i n t he 33rd w eek of 1984 -- over t hree years ago, befo re t he V20  w as avail able.

Also, i f you haven’t heard, Int el and NEC have been embroi l ed in a maj or l egal batt l e over t he “V”  seri es

- I nt el cl aims NEC has vi ol at ed a “mi crocode copy- ri ght.” The outcome remai ns to be seen.

Final l y, w e get many questi ons about “speed up” for

PCs. Personal l y, w e w oul d onl y consider a speed up based on a w ell -designed “ki t ” or “board” from a we l l -

know n company . Check PC magazines, user groups 

Page 20: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 20/49

18 Circuit Cellar Ink

and/or Tandy to see if someone makes a “turbo” setup. PARALLEL I NTERFACE PI N FUNCTI ONS

I

 do not recommend a “homebrew” approach: swapping    Pin Si gnal Name Functi on

chips, cutting traces, soldering, and so on. It is just too.

easy to get into real trouble.-   1 STROBE Signal s when data i s ready to be

 As for the 8087 issue, a well-designed “turbo” optionread. Si gnal goes

from

HI GH to LOU

must include provision for a fast 8087. However, if you ( f or at l east 0.5 mi cro secondswhen data i s avai l abl e.

don’t elect to speed up, you don’t either.

need a faster 8087 

Though not familiar with thespeci ‘fit

  disk/cable setup

of the lOOOA certainly drive A and B can be switched  _ unless Tandy has ESP built into its computer! You

need to figure out which cable, disk drive jumper, or  switch will do the job.

- - INK

Dear INK,I desperately need your help! I recently purchased a

Centronics Model 306 (C) printer. I am trying to

2

34

5

678910

11

12

13 SELECTED

14- 15 N / C

16 SI GNAL GND17 CHASSI S GND18   5vDc

19- 30 GND

DATA1DATA2DATA3DATA4DATA5DATA6DATA7DATA8ACK 

BUSY 

PAPER OUT

These DATA si gnal s provide thei nf ormati on of the f i rst to ei ghthbi ts ofparal l el data. Each si gnali s at HI GH level for a l ogi cal 1

and at a LOU level for a l ogi cal 0.

A 9 mcrosecond  LOU pul seacknowl edges recei pt of data.When this si gnal goes thepri nter i s r eady to accept data.Thi s si gnal i s normal l y LOU. I tgoes I h   i f the pri nter r uns outof paper.

Thi s si gnal i s HI GH when the pri nteri s on- l i ne.Unused.Si gnal ground.Pr i nter chassi s ground.External suppl y of 5VDC  from thepri nter.Twi sted-pai r return-si gnal ground

confirm which signals go on which of the 44 wires that l e v e l .

form a ribbon cable assembly into the unit (22 twisted   31

RESET Uhen thi s si gnal goes LOU the

 pairs). I’ve called all over Omaha and no one knowspri nter i s reset t o i ts power-oncondi ti on.

anything about the Centronics Model 306. Centronicshas gone out of business so I can’t turn to them. This   32

ERROR Thi s si gnal i s normal l y HI GH. I t

wiring info is so simple but I can’t determine a source.goes LOU to si gnal that thepri nter cannot pri nt due to some

Could you please send me an address of some individualerror condi t i on.

or company which might still have such information. 33

EXT GND External ground.34- 36 N/ C Unused.

Bill Cashman-Omaha, Nebraska

 Dear Bill,The Centronics parallel interface is the defacto

“standard” for many of the popular printers available for today’s microcomputers. It is designed to transfer information to the printer electronics 8 bits at a time and contains not only the data lines but several handshaking  signals as well.

The attached list gives the pin numbers of an Amphenol-type 57-30360 connector, which is the com-mon 36-pin connector used on most parallel printers,and a brief description of what each line is used for. Keep in mind that not all computers will use every hand- shaking signal available: some such as the SB180   useonly the STROBE and ACK lines and will perform quite satisfactorily.

Thanks for writing. I hope this information will cure

 your “no output device” blues.

Dear INK,I recently sold my

6502C-based

  personal com- puter. Since then I’ve been in the market for an IBMAT compatible. One in particular that has attracted myattention is the Jameco JE1003 AT motherboard. Myquestions are:1. Just how “compatible” is this AT?2. Can an AT run PC and XT software?

I would appreciate any help or sources you coulddirect me to.

Stefan R. Kelley Havelock NC

 Dear Stefan, Almost all of the XT and AT clones available now

are 99 and 44/100 compatible with IBM -- including 

 Jameco. Some early 8088 machines (such as Sanyo and 

Page 21: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 21/49

March/Aoril  1988   19

Zenit h) were not v ery compat ibl e, but t he indust ry has learned it s lesson: full I BM compati bil i t y i s a must .

There are very few i ncompati ble programs now .Those that are usuall y hav e a very specifi c form of copy 

protecti on which does not al low them t o run at hi gh speeds. An AT compati ble w il l run all PC and XT softw are, al t hough some games may become unpl ayable 

due to t he higher speeds. Some machi nes can be sw i t ched 

t o a low er speed to elimi nat e t hi s probl em.

- - INK 

Dear INK,I am considering building a Mobil Weather Station

Monitor (MWSM) using the BCC-52 computer/con-

troller. This monitor would collect, process, anddisplay weather conditions like temperature, humidity, pressure, and elevation. Can you suggest ways to elec-tronically measure and record these parameters?

Orlando A. Moreno-Stockton, CA

Dear Or lando,The BCC-52 control ler w ould l end i tself w ell t o your 

M obile Weather Stat ion M onit or project. M any of the atmospheric condi t i ons can be sensed by t ransducers,

convert ed to di git al i nformat i on, and processed by a 

cont rol l er. Here are some of t he sensors and t ransducers you might consider: Temoerature  measurement: National Semiconductor’s LM l 35-seri es

 precision temperature transducers.

Barometric Dressure:

Nat ional ’s L XOSxxA  seri es M onol it hic Pressure transducers.

Elevat i on: same as Barometr i c pressure.Wind dir ect ion and

soeed:

 Ha l l -effect sensors and permanent magnet.

The transducers w i l l need t o be processed i n an analog envi ronment , t hen converted to di git al i nforma- 

t ion w it h an A /D cir cuit . The Hal l- effect sensors can be used digit all y f or count or di recti on.

- - INK 

Dear INK,I am interested in the possible deleterious effects that

 populations of cockroaches may inflict on computersand electronic equipment over time.

Deborah A. Gust, Ph.D-Atlanta, GA

Dear D eborah,Your i nt erest i n t he eff ects of cockr oaches on el ec- 

t roni c equipment i s somew hat unusual. I’ ve seen an occasional dead roach inside equi pment -- ol der tube-

t ype ampli fi ers are quit e adept at cooking stray i nsect vi sit ors -- but I am unaware of any formal studi es on the matt er.Whil e purel y speculat i ve, t here are some obvi ous li nes 

of i nquir y t o pursue regarding possi ble effect s. Our ini ti al speculat ions are summari zed below : 

1.

 chemi cal contami nati on -- possi bl e corrosi ve e jects

of i nsect secret i ons or subst ances t ransport ed by t he 

i nsects such as insecti cides, food part i cles, and so on.2. fecal cont ami nat ion -- possi bl e corrosiv e eff ects of 

roach feces (“roach dir t ”).3. component damage due to chew ing by roaches, short 

circuit s result i ng from i nsulat i on bei ng eat en from 

w i res, and so on.4. t hermal effect s due t o i nsulat ing properti es of roach feces and carcasses -- t he resul t i ng increased operat ing t emperat ures would cert ai nly shorten component l i j e.These specula t i ons are, o j course, merely preli mi nary 

and shoul d not be const rued as possessi ng any r emark- 

able val idi ty -- perhaps some laboratory tests w ould be appropriate.

- - I NK 

In Visible Ink, the Circuit Cellar Research Staff 

answers microcomputing questions from the reader-ship. The most representative questions are pub-lished each month as space permits. Send your inquiries to: INK Research Staff, c/o Circuit Cellar INK, Box 772, Vernon, CT 06066. All letters and

 photos become the property of CCINK and cannot be returned.

PREMIER ISSUE AVAILABLE

The Premier Issue of 

CIRCUIT CELLAR INK (January/February 1988)is available.

The Circuit Cellar Motion Triggered Video Camera Multiplexor

Steve Ciarcia l High Security on a Budget: Build a VideoHandscan-

ner/Identifier

  -- Ed Nisley l The Home Satellite Weather Center-Part

1: RGBI to NTSC Convert.er   -- Mark Voorhees

Send $3.00 plus $1.00 for postage and handlingcheck or money order to:

Circuit Cellar INK P.O. Box 772

Vernon, CT 06066

Page 22: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 22/49

March/April 1988

Leonardo the Techie by Phil Lemmons

 people often fall victim to stereotyping. Once their technical gifts become obvious, technical people may be regarded as beingcapable only of technical work, and somehow disabled for all other 

The terms “techie” and “nerd” are sometimes used to castaspersions against the technically adept. Yet my impression after yearsof working with technical people is that they are more likely than mostto have a wide variety of interests and abilities. Indeed, if anyone in our 

me deserves the title of “Renaissance man,” he is more likely than notto  be   a  “techie 

.

Consider the case of a true and literal Renaissance man. Leonardoda Vinci designed flying machines, both winged and helicopter style. His plans for a car used internal springs to drive gears. He designed a type

of chain that resembles those used in twentieth century machinery. His flyer spindle resembles those later usedin textile manufacturing. His design for a steam-driven machine was the first instance of a piston moving withina cylinder. He designed mortars with projectiles intended to shatter into fragments on impact. He designedthe world’s first military tank, which had armor and a cannon and was to be propelled by eight men turningcranks to drive gears within. He studied the optics of mirrors and he sketched plans for life preservers andfloating shoes. He designed mills for rolling sheet metal; a centrifugal pump; and a new type of oil lamp, usinga water-filled glass globe to magnify the light. He failed to develop the field of electricity and electronics, but

we should forgive him. He was, after all, born in 1452.Did Leonardo’s technical inventiveness disable him for all other purposes? No, indeed. Like many technical people, he had strong gifts and interests in music. He was both a singer and a lute player. According to thesixteenth century art historian Giorgio Vasari, Leonardo was also noted for his physical strength: “with his righthand he could bend the clapper of a knocker or a horse-shoe as if they had been of lead.” And oh, yes, Leonardocould  paint a little.

Our lifetime has seen a flowering in computers and electronics that could be called a Renaissance if this werenot its first birth. Thanks to the inventiveness of many of our contemporaries, computers and:lectronics   are revolutionizing business and manufacturing and promise to   r vnli~tinni ~

 

cI I _V II”

:ducation   by making possible simulations of all manner of physical, biological, and socialarocesses.  Computers and electronics are also providing new vigor to music and

I

art and somewild experimentation in literature. Technical people are making mighty contributionsn

  all these fields.

The next time you hear someone stereotyping technical people, remindLeonardo’s technical side and, with due modesty, point out your owactivities and those of your technical friends. You might evenover to Steve Ciarcia’s to listen to fine music in his entertainment

-.

him of b diverser:

&

  invite themroom or 

take a ride in an exotic sports car and above all to sample his fine  .

cuisine. Never miss a chance to shatter the tiresome stereotype of the one-dimensional techie.

flyer spindle

Phil Lemmons is a former Edit or-i n-Chief of BYTE “..,I

I _  ̂ ^  ̂^ _ _ _

 :,.I_-2  --L. ‘_

Page 23: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 23/49

33

Circuit Cellar Ink 

Page 24: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 24/49

Marrh/Anril   QRR

The Home Satellite Part 2

Weather Center by Mark Voorhees

NTSC Encoder hjpm nt

and System Overview 

I

n our last segment, we began last installment (INK Vol 1, No. 1). For a point of reference and ease of the Weather Center project with The schematic contains sufficient in- discussion, the printed circuitthe design of an RGBI-to-NTSC formation to build this project, but  board layout and actual board areencoder board. This encoder will be printed circuit boards are available. I shown below. Note specifically the

used to convert weather map infor- encourage you to build the Weather   position of all jumpers and headers.mation displayed on an IBM PC (or  Center; the contents of the 27256 CN2 allows direct access to thePC compatible) EGA card into a EPROM for the encoder as well as the MC1377 input pins, and will oper-

VCR-recordable format or to view   BASICA  test programs listed in this ate as a connector for a futurethe data on a standard NTSC color article are available for download subassembly. For now, however,monitor. Feeding these graphics from the Circuit Cellar Bulletin jumpers should be in all five wsi-

images to a VCR allows archiving Board (203-871-1988). tions. CN6 allows for an interlacedinteresting radar and facsimile The unit can be built on a bread-

sync to be configured in the pictures, while freeing up valuable board, but I must caution you to be EPROM output pattern if this isdisk space for more current graph- sure to use good layout practices for  needed in the future. CN3 and CN4its. wiring to avoid any possibility of  allow for inversion of vertical and

In this part, I’ll describe how to crosstalk or degradation of perform-

horizontal sync inputs from thealign the NTSC encoder and we’ll

  ante.

  Some of the header connections graphics card, if necessary. All_(_?N. rr*j_

 “ml --

 

/

 -

  .   were added to allow these jumpers are shown in the.  ’ for future options. normal positions in the schematic.

You will need to supply +SVDCand +lZVDC   to the board from anexternal, regulated power supply.

CNZ   5JUAPERS

Oil2

m

/

 .

 .

 _

  x_  “. .

 - NORMAL=

  ALL IN “

q GND

also build an accessory which willallow you to use one or two TTLcolor monitors and the encoder si-

multaneously. Following this in-troductory dip into the hardware,I’ll describe more about the ulti-mate configuration of the HomeSatellite Weather Center.

Constructing the Encoder 

The schematic for the RGBI-to-

 NTSC encoder was presented in the

Page 25: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 25/49

Page 26: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 26/49

Page 27: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 27/49

Picture rolls vertically (horizontal

O.K.) -- Check forpositive-

going vertical-rate pulse atIC5-

Ii

If pulse is negative-going,

move CN3 to other position.Picture rolls vertically and rolls or

 jitters horizontally -- Check for 

 positive-going horizontal-rate

 pulse atIC5-10.

  If pulse is nega-

tive-going, move CN4 to other 

 position.Colors do not match color bars --

If minor hue difference, repeat

alignment procedure. If colors are

in the wrong place in the pattern,

recheck cabling to the computer 

graphics card.Monochrome picture only --

Check for 3.579545-MHz   signal

at ICI -

  17, and positive-going

horizontal-rate pulse atICl-

 1.

Extra horizontal lines in the video

-- The EPROM (IC8) is too slow.

Only a 27256 or 27C256   with an

access time of 200 nsec or faster 

should be used.

The multimonitor accessory op-

erates as a simple TTL signal re-

 peater, taking its power from the

encoder card and delivering a

 buffered TTL signal in return. The

schematic is shown in Figure 3.

The device is quite straightforward

and requires no alignment. If a sec-

ond TTL monitor output is not

needed, the components shown

within the dashed lines can beomitted.

The cable to connect the adaptor 

and the encoder cards is wired“straight through” (i.e., pin 1 to pin

1, pin 2 to pin 2, etc.). A DB9 male

to DB9 female cable (also wired

“straight through”) may be used to

connect the graphics card signal to

the adaptor.

weather databases.Your IBM PC, XT, AT, or IBM

Let’s take a moment to look at our compatible will be your link to theWeather Center project in a little  peripheral processor. The

periph-

more depth, and also see what’s ahead   era1  processor is our next major in the next few installments. hardware project. It will handle allAs noted in the last issue, our the instrument and facsimile

completed system will be a Home data 24 hours a day. The PCsoft-

Weather Center capable ofmaintain-

ware will take care of access to theing local instrument records,

receiv-

dial-up databases, transfer of dataing National Weather Service

Fac-

from the peripheral processor (andsimile pictures directly from satellite, transfer of commands to it), theand handling your access and

proc-

chores necessary to maintain theessing of information from various instrument database, as well as all

g

DBPP

CN 4

  y

T

I

. . . . . . . . . . . . . . . . . . .

I C 3

74LS54 1 1 

Figure 3 -- Multimonitor Adaptor 

Page 28: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 28/49

MarchAnril

37

interaction with you, the operator.By using the PC in this way, youcan have full-time monitoritrg  andgraphics capabilities without dedi-

cation of a PC to this application.The RGBI-to-NTSC encoder which we’ve just completed will al-low you to create recordable, com- posite NTSC video from your PC’svideo display card output. Not onlywill this provide virtually unlim-ited storage for the weather graph-ics you produce, you probably willfind many other uses, such as titlesfor home videos, classroom dem-onstrations, and so on.

Our next hardware project is the

 peripheral processor, a devicewhich will handle the full-time jobof storing instrument data samplesand current facsimile picture datafrom satellite. The unit is a dedi-cated 68000-family-based  single-

 b oa rd co mp u te r , wh=ich   has 1

Megabyte of RAM on-board for data storage, a n d a

32K-byte

EPROM for the dedicated operat-ing system. Depending on the sam- pling rate set by the user, the unit

will hold one to four days of data before it must be transferred to thePC for processing.

After completion of the main processor unit, we’ll cover the con-struction of the ports and interfacesto the instruments, and then move on

to the facsimile demodulator. I’llapproach that accessory in two ways:use of an integral, dedicated receiver to feed the converted RF to thedemodulator, and use of a scanner-

type receiver. We will not delve intothe RF down-conversion from 1691MHz in this series. This requires very precise, microstripline techniquessomething not easily done at our level. I will, however, detail the in-stallation and setup of a modular 

downconverter and antenna system

distributed by an East-Coast sup- plier, and available for much lessthan you would expect to pay for thematerials to build it yourself.

available via modem. I’ll  also intro-duce the first of the PC/weather support software -- the basic proc-essor system, with modules for ac-

cessing the databases, as well ascapturing and printing the data.The first accessory module will bethe Advanced Radar Display Sys-tem, which will convert NationalWeather Service Radar Station textdata to a U.S. map graphic with theoverlay of the radar echoes. You’ll be able to store the screen on disk,or on video tape using your NTSCencoder.

All of the PC software will bemodular in nature. Each additional

module (introduced as we progressthrough the system) will automati-cally interface with the basic proc-essor software.

Remember that your suggestionsfor other general-purpose accessoriesfor the system may be incorporated asadditional future projects. The pe-ripheral processor is designed to bevery flexible, and should easilyhandle additional weather-relatedtasks beyond the instrument and fax

housekeeping. If you have a sugges-tion, write to me at the address listedin the ordering information.

Construction of the localweather instrumentation itself willnot be covered here, although I willcover interfacing to two target sys-tems: the Heathkit   ID-4001 DigitalWeather computer (with ID- 1795rain guage and ID-2295 relativehumidity instrument), and the new

Heathkit ID-5001 AdvancedWeather Computer (note: this is sonew that, as of this writing, I have

 just received the unit; I’ll include ashort appraisal of the ID-5001, aswell as the older ID-4001, in afuture issue). I’ve chosen to sup- port these instruments since theyappear to be the most accurate andwidely accessable instrumentsavailable to the experimenter for the money.

For the next installment, we’ll let

the soldering irons cool a bit while wediscuss weather databases which are

Shown below is a typical ASCIIdata image. It is an example of thekind of data available to you froma dial-up data service. This mapgives the computer predictions of  precipitation in the southeast U.S.for the 24-hour period followingthe noted forecast time. (Of course,

quite a bit of text data is alsoavailable). We’ll explore theseservices in depth in our next seg-ment. n

(Ordering information page 42)

  lAM  SAT 23 JAN PRECIP 3rd period Southeast

\ * * C O M P U T E R * * _ \

ESTIMATE

ONLY 

PRECIPITATION

FORECAST FOR   \

  .oo

6AM SUN   6PM SUN 

Typical ASCII data image

Page 29: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 29/49

Page 30: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 30/49

March/Anril  1988

an IBM PC would cost. I’d like to get fairly high quality.I have a friend working on putting an SID chip (thesound chips in the Commodore 64) onto an IBM PCexpansion board, so (if he gets his timing problems

worked out) I’d like to use that for playback. The SIDhas only three voices though, so if the SID projectworks, it should be fairly simple to use one of Ensoniq’smany-voice chips in a similar design.

I guess I need to find (first of all) some METHODSof digitizing audio that will produce high-quality digi-tal representation.

-- Jim

Msg S9152  by Bob Paddock To: Jim Thorton

Re: Audio Digitizing [Reply to msg 9099]

What you want to do is not as easy as it first appears.If you want to digitize just voice at communicationquality (i.e., telephone/radio quality), you can use oneof the many chips that are available for the telephonesystem. Intel, National Semiconductor, Texas Instru-ments, and many others make such chips. The problemthey all suffer from, if you want to store the digitizedaudio in your computer, is that they take a LOT of memory for very short periods of speech.

If you want to digitize music, like CD or DAT(digital audio tape) quality, then you start needingthings like 16-bit  A-to-D converters, (one recent CD

 player uses an 18-bit system), and wide-bandwithaudio circuits, none of which come cheap. A 1 -secondsample of music could take up more memory than mostcomputers have right now.

Philips (Signetics) makes a few CD chips (all play- back, I don’t know if they have any for recording).

I never really thought about digitizing noise before.As a first guess, I would say that it is harder to digitizethan music or speech. Since noise can conceivablycontain all frequencies at once, you would need to usereally wide-band sampling and a lot of memory.I don’t know much about the SID, but to get it to play

 back something that was digitized in some other format

would probably take a lot of number crunching totranslate the data.

Msg 9191  by Jim Thorton   To: Bob Paddock Re: Audio Digitizing [Reply to msg 9152]

Yes, having since found a book on the subject I havelearned quite a bit about digitizing. You’re not kiddingabout it being expensive--the specs required for the A/D and D/A circuits and the low-pass filters are fairly

rigid. I think that I’ll be able to scrape up at least enough parts to build (or attempt to build) one of them though.

Somebody on the West Coast built a fairly nicedigitizer for the Commodore 64 a few years ago, but

that person seems to have fallen off the edge of the earthafter building and selling about 50 of them. With somegood editing, you can take a few small samples andconstruct a fairly interesting “song” with them, evenwith only the 64K in the C-64. I’m not shooting for CD quality by any means (16-bit converters don’t comecheap) but something that could be understood byanyone that happened to hear it would be nice.

-- Jim

Msg 9023  by Ben Barlow To: Jim Thorton

Re: Audio Digitizing [Reply to msg 8934]

Jim, I built an audio digitizer that is based on an OKI

Semiconductor chip (MSM5218) and was described inthe June ‘83 Circuit Cellar article. It worked prettywell, but I never got quite the sound out of it that Iwanted. The microphone and analog stuff delays me;I’m OK at digital, but I’m a hobbyist, not an engineer.I’m interested in discussing the topic as well if you getother approaches.

-- Ben

Msg 9127  by Ben Barlow To: Jim Thorton

Re: Audio Digitizing [Reply to msg 8934]

Jim, some more information. OK1 has a new ADPCMchip with an evaluation board offered for testing. The board is $290, though. My previous experience withthe OKI   chip set that Steve used in his June ‘83 articlewas that it worked pretty well, but some of the parts(the filters) were unobtainable in 1987. I don’t knowwhether the new OK1 set would encounter similar  problems or not. (Of course, if I knew what I was doing,

I could make my own filters, but...)Motorola offers a chip combination (MC341 7 or - 18,

a CVSD digitization chip, and MC145414 program-mable filter) that looks like it might be a good deal (andavailable). The Motorola “Telecommunications DeviceData” manual contains information about the chips anda couple of application notes with complete serial and

 parallel interfaced setups.

-- Ben

Page 31: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 31/49

Circuit Cellar Ink 

Msg 9332   by David Lovelace  To: Jim Thorton

Re: Audio Digitizing [Reply to msg 8934]

Jim, your problem could be simple to solve if youcould supply some additional information regardingyour requirements. The digitizing can be accomplishedthrough first filtering the audio input to reduce noiseand to reduce bandwidth (if required), and then feedthe filtered input into a video-rate A/D converter for digitizing. How you handle the digitized signal is leftopen to your needs. The digitized form of the audiosignal can be converted to an analog audio formthrough the use of a D/A converter. The output of theD/A converter would then be filtered to reduce thehigh-frequency harmonics that accompany D/A con-verters.

I would like to suggest two low-cost Signetics

 products for use as the converters. The PNA7507 is anA/D converter with 7 bits of resolution and a conver-sion rate of 15 MHz. D/A conversion could beaccomplished with a PNA7518 D/A converter with 8 bits of resolution and a 30-MHz conversion rate. Lowcost is the common denominator in the selection of these components.

Perhaps I have over-simplified your application.The method used in the digital section is where the mostsophisticated techniques for handling the audio would be applied. Examples are: error detection and correc-tion for high reliability of the data stored, and digital

signal processing for filtering, time delays, and so on.If any digital signal processing other than that accom- plished by a standard microcomputer is attempted (e.g.,signal processing with an add-on card using a DSP(digital signal processor), dedicated DSP) the costincreases along with the cost of any available software.

Digital signal processing with a microcomputer could yield nice results, but not in real time. Texts ondigital signal processing abound as well as several triedand reliable computer algorithms. These algorithmscould be easily converted to FORTRAN, Pascal, or C.I would be very interested in your problem and wouldlike to help in any way possible.

Msg 9244   by Scott Whittle To: Jim Thorton

Re: A/D-D/A for audio

Jim, I’ve read some of your messages on this board Texas Instruments just came out with a couple

regarding the digitizing of audio signals. I too have versions of an A/D-D/A CODEC that is an 8-bit   part been very interested in such a device and have done with 12-bit dynamic range. They are the TCM29C18

much research on it. I was wondering if you could tell and TCM29C19;  one works at 1.536 MHz and the other me what book you have on the subject. Perhaps we at 2.048 MHz.

could exchange thoughts and ideas as well as techniquesregarding the A/D and D/A processes. Keep in touch.Thanks.

-- Scott Whittle

Msg 9282   by Jim Thorton   To: Scott WhittleRe: A/D-D/A for audio [Reply to msg 9244]

Scott, the book I found is called “Principles of DigitalAudio” by Ken Pohlmann. It’s published by SAMS. It’swell-written and easy to follow. The latter part of the book goes into some of the coding schemes, differentmedias, and how they work, including much about CD players.

It’s helped me to be able to conceptualize what I needto do, but I am still a novice experimenter (very novice).

One thing that I’m wondering about is the dither 

generator required for antialiasing purposes. What sortof device would be used for that purpose?

Another is the resolution of the A/D and D/Aconverters. Pohlmann says that 16 bits is the industrystandard for CD and Digital Audio Tape (DAT). Whatdo you think an acceptable resolution would be? Eight-

 bit converters seem to be very common/cheap, but willthe quantization error be too great? I think 12 bitswould be more realistic, but what does that do to the price of this sort of thing?

-- Jim Thorton

Msg 9304   by Eric Bohlman To: Jim ThortonRe: A/D-D/A for audio [Reply to msg 9282]

As far as resolution goes, you should have at least 12 bits for a linear DAC or ADC. In the telephoneindustry, the bit rate is usually reduced by usingcompanding DACs  and ADCs.  These have a nonlinear resolution; the ADC’s   step size increases at the higher values. This works because at high values a small stepis much smaller in percent than the same size step at alow value. I believe that digital telephony normally uses8-bit

  codes. The logarithmic companding scheme iseither A-law or mu-law; one is used in the U.S. and the

other in Europe (I can’t remember which is which).

Msg 9320   by Bob Paddock To: Jim Thorton

Re: A/D-D/A for audio [Reply to msg 9282]

Page 32: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 32/49

March/April 1988  .

We’ve just fi nished install ing a brand new mult il ine  dealing with this interface is to leave both devices inBBS to keep up w i t h t he t erri fi c response w e’ve had t o  the tri-stated mode until the RTC is actually accessed.t he Cir cuit Cel l ar BBS. I n t he coming mont hs I ’ l l  be  At the beginning of the cycle, develop your CS\ signaltak ing you on a “guided tour” of the various facil it ies  and drive AS high for the time specified (I don’tavail able w hil e on-li ne. In the meanti me, the foll ow ing 

remember off-hand) to latch in the address. Duringmessages refl ect t he change i n fo rmat of t he message  this time, the output enable on the ‘244 is low. After headers. this, drive AS low, drive the ‘244 OE\ high, then driveThere are many clock/ calendar chips on the mar ket, the ‘245 OE\ low and strobe DS high to latch the data.

each seemi ng t o have it s ow n i nt erface characteristi cs. This nonoverlapping sequence is essential to making theThe foll ow ing is an att empt at maki ng tw o incompatibl e  I/F work. There will be those who claim it is notinterfaces compatible:  necessary, but when you want 5000 pieces to work 

guaranteed, you arrange it as I have described.I have only outlined the necessary elements; the

design is not done (it is left to the student, but you getMsg : 534 *GENERAL* the idea). Two pieces of advice: if you want toFrom: RICHARD ANDREWS maximize your backup time (if battery life is critical),To: ALL USERS drive CS\ from an open-collector driver that has its

Subj: CLOCK/CALENDAR CHIPS output pulled up to the battery voltage. Also, do notconnect a 32.768-kHz  oscillator directly as shown by

I am in the process of adding an MC146818 clock/ Motorola; a much less power-hungry solution is to usecalendar to a ZSO-based  system. The timing informa- a nonbuffered CMOS inverter such as the 4069 to buildtion available is somewhat hazy concerning interfacing an external oscillator and drive the RTC with that. Theto a processor that does not use a multiplexed bus (i.e., total circuit draws less than 65 microamps. For a moreaddress and data share the same pins) or that does not forgiving interface, use the MC14681 8A instead of theuse Motorola timing (the 280  naturally is Intel based in “non-A” version. I have never interfaced to a 280  sothat respect). One of the reasons that this IC is I can’t go any further, but I think you’ll succeed.appealing is that it is the same one used in the IBM PC/AT so second sources and availability should be no -- Don Nowakowski problem. The 80286, to the best of my knowledge, does

not multiplex its bus, so I am left wondering if thereare any hints that anyone can give on doing this. Manythanks Msg#: 589 *GENERAL*

From: RICHARD ANDREWSTo: DON NOWAKOWSKI (Rcvd)Subj: REPLY TO MSG 542 (CLOCK/CALENDAR 

Msg :  542 *GENERAL* CHIPS)From: DON NOWAKOWSKITo: RICHARD ANDREWS (Rcvd) Thanks for the suggestion, I will mull over what youSubj: REPLY TO MSG 534 (CLOCK/CALENDAR said and see if it will apply to the 280. The MotorolaCHIPS) data book shows an example of the RTC being used

with a 68000, but I’m not that familiar with that CPURich, so I’ll have to give look. Thanks.

I have interfaced the MC146818 to an MC68000with success. I have heard someone comment that the6818 must have been designed by someone from Intelrather than Motorola just because of the multiplexed The Circuit Cell ar BBS runs on a IO -M Hz M icromint address and data bus. In any case, use a ‘245 device (LSor HCT) with the direction controlled by whether the

OEM-284 IBM PC/AT- compatibl e computer using the 

mul t i l i ne versi on of The Bread Board Syst em (TBBS RD\ or WR\ line is active. Use a ‘244 for the address

  2.OM)

 and currentl y has four modems connected. We line. i nvi t e you t o call and exchange i deas w i t h other Ci rcuit 

The outputs of the ‘245 and ‘244 are connected to theADx

  lines of the RTC. The best timing arrangement inCell ar users. It i s avai l able 24 hours a day and can be reached at (203)

871-1988.

Page 33: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 33/49

FIRMWARE FURNACEDigitizing Infrared Signals 

ere’s a secret that  personal reviewing IR signals in general and “0” bits are the same length, so thiscomputing benchmarking articles looking at the IR Master Controller’s type of transmission is particularlynever mention: your computer hardware. easy to decode.spends most of its time waiting for  The more complex signal shownyou. If you’d just push the keys Master Recordings in Figure lb turns the LED onfaster its overall performance during both “1” and “0” bits, butwould perk up quite a bit. If you You might think that there is a distinguishes the logic level by buy a faster PC it just executes design standard controlling IR com-

 pulse width. The time between bitsmore NOPs  while it’s waiting. munication such as the transmissions is usually constant. The total time

On the other hand, in this col-  between remote controllers and con- required for a message depends on

umn I’ll describe firmware that sumer electronics, perhaps similar to the data values, and it’s not so easymust keep up with high-speed the RS-232 standard for serial com- to decide which bit is which withininput data. As I mentioned in the munications. Of course, when you the message.last installment, I am using the try to hook up any two serial devices, In both cases above, the IR firmware developed for the Circuit you soon realize that there’s no transmission is actually a groupCellar Infrared Master Controller “standard” in “RS-232 standard” (called a burst) of much shorter (BYTE, March ‘87) as the example serial communications. The situation pulses. This is similar to amplitudefor this series of articles. The IR  is even worse in IR communications.

  j  0 BIT :

: T I M E j

 

1 B I T

T I N E  1

  ‘T1

: . . .   :...  

Figure la  t  ‘Tz   i Figure lb

 j

 k  WRRIER

  F R E O U E N C Y   _1 b  WRRIER   F R E O U E N C Y

Master Controller imitates other remote controllers by digitizingand recording their infrared sig-nals. Because this data is bothintermittent and high speed, it presents some unique problems inits acquisition. Once the IR datasignal starts, there’s no way to go back and take another look at it!

Before diving directly into thefirmware, however, much can belearned about the task at hand by

There isn’t even the hint of a stan-dard. In fact, it’s not unusual for asingle manufacturer to use differenttransmission methods in each of their various remotes!

Figure la illustrates one typical IR transmission coding technique. As inall schemes, the IR LED is either onor off. Here, a high-level logic 1 bitturns on the IR LED during the firsthalf of the bit time, while low-levellogic 0 bit leaves it off. Both “1” and

modulated (AM) radio, where theaudio message modulates a carrier signal. It’s different from themodulation used in FSK (Fre-quency Shift Keying) modems,which alternates between two dis-tinct frequencies for “1” and “0”

 bits. The lower “traces” in Figurela&b show the state of the IR LEDduring the designated bit times.

There are no time scales inFigure la&b for a very good rea-

Page 34: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 34/49

March/Avril  1988

son. Every manufacturer uses dif-ferent values! The IR carrier frequency is usually about 40 kHz,

 but it can typically be anywhere

 between 30 and 70 kHz. Bit timesand the gaps between them can bea few hundred microseconds towell over 50 milliseconds. Totalmessage lengths may be as short asa few milliseconds or as long as aquarter second.

There is also no agreement onwhat the bits actually mean. Somecontrollers produce a simple nu-meric code for each key, and otherscombine shift prefixes and suf-fixes to modify certain keys. Still

others send out variable lengthmessages depending on the func-tion requested. The situation is atrue Tower of Babel!

The overall message, though,resembles a single character sentover a serial data link, with perhapsseveral dozen bits instead of theconventional seven or eight. Thereis usually a very long start bit at the

 beginning and one or more stop bits at the end of each message.The exact formats, of course, vary

 between manufacturers just likethe IR signal parameters.

Figure 2 shows how a typical TVset receives and processes the IR signal from its remote unit. After the photodiode converts the infra-red light into an electrical signal, ahighly selective bandpass   filter  passes the demodulated carrier as areceived “envelope’* and rejectsany IR carrier signals from remotecontrols out of the passband. The

detector and level shifter convert

Figure 3

the analog envelope signal into TTLlogic levels, which are then ready for the TV’s microprocessor-controlledtuner. Usually all of these functions

will be integrated onto one or twochips.

The signal coming out of the levelshifter reconstructs the original bitstream from the remote unit with allthe details of the IR transmissionremoved. That is exactly right for aTV microprocessor, but it is entirelyinadequate for the IR Master Con-troller. The TV set designer chooseseach of the components to enhancethe set’s own specific remote control

signal and suppress any interferencefrom other remotes and extraneousIR sources. As a result, any singlecircuit will work well with only one(or, perhaps, a few) remote units.

The IR Master sidesteps this prob-lem by digitizing the received IR signal without any analog filtering or  processing and using digital signal processing to analyze the results.Because the IR Master’s output du-

 plicates the input signals, it doesn’thave to waste any effort deciding

what they mean; there is no need to

Figure 2

determine how the bits are en-coded.

Measuring an IR signal’s timinggives enough information to repro-

duce it even without knowing whatfunction it might activate in the TVset or VCR. Figure 3 shows thevalues for a typical signal; remem-

 ber that there are wide variationsamong actual signals.

The carrier period is the recip-rocal of the carrier frequency. A40-kHz carrier has a 25-microsec-

ond period. The carrier duty cycleis the

fracSion

 of each carrier pe-riod that the LED is active. Mostremote units have a 50% duty cycle,

 but we found variations between40 and 75 percent of the period.Both the period and duty cycle arefixed for any given remote unit, sothey can be measured once for eachsignal and used for the entire burst.

Recording the burst and gaptimes are enough to duplicate ei-ther of the coding schemes shownin Figure la&b, as well as manyothers. This system handles thestart and stop bits at the beginning

and end of each message eventhough those bit times may bedifferent from all the rest.

The only complication comes atthe end of a complete message,when the IR Master must decide

. .  q   .  .  . . pj gJwhen the message is finished. TheIR Master’s program assumes thatmessages are always less than 250milliseconds long and simply times

Page 35: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 35/49

34 Circuit Cellar Ink 

out after the last burst.The firmware’s task is simple. It

must measure the IR carrier signal period and duty cycle and then time

each of the data bursts and gapswithin the message. Those valueswill eventually be used to controlan IR LED in the Master Controller’s transmission sectionwhere it emits a convincing copy of the original signal.

A Blizzard of Bits

A quick and dirty way to meas-ure time intervals with a micropro-cessor is with a software loop which

detects rising and falling edges onan input pin. By recording thenumber of loops between edgedetections, the interval can be cal-culated. Unfortunately, when theinterval to be measured is shorter than the fastest program loop thistechnique cannot be used.

Carrier periods typically range between 20 and 33 microseconds.Within this period the IR LED “on”times are between 8 and 25 micro-

seconds. One microsecond of  measurement error can produce a5% error in the reproduced fre-quency or duty cycle!

The 8031 executes most instruc-tions in one or two machine cycles.A machine cycle requires 12 clock cycles, which at 12 MHz, is onemicrosecond. The smallest usefultiming loop requires four or fiveinstructions and takes up to tenmicroseconds to execute. Obvi-

ously, the 8031 can’t directly timethe IR pulses in firmware, nomatter how clever the programmer.

However, because the input sig-nal is a single bit, we can use anexternal shift register to extend thetiming capability of the 8031. Byshifting the input signal into an 8-

 bit register which is clocked at 1MHz, each bit represents a

one-

microsecond sample of the signal.

The 8031 then reads the shift regis-ter through a parallel port every eightmicroseconds.  Now, instead of animpossible timing constraint, we are

left with a strict but manageablerequirement.Schematic 1 shows the IR signal

 processing hardware. Thephotodi-

ode converts the IR signal to an

analog voltage which is propor-tional to brightness. The

LM311

comparator compares that signal toa 2.5-volt threshold reference set

 by a simple resistor divider. Whenthe signal exceeds that threshold,the LM311   produces a TTL outputindicating that a suitable IR signalis present. The LM31 l’s output is

s

l_c

10  UF D

IR RECEIVER

BflLhNCE   TERMINfiLS

E NOT CONNECTED

I

SHIFT DIRECTION

2 M H Z

Schematic 1

Page 36: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 36/49

March/Aoril

  1988

connected to a74LS164

  eight-bitshift register, which in turn is readthrough the 8031 Pl  port.

The IR Master doesn’t need

elaborate amplifiers and gain con-trols in its receiver section. Unlikethe CD player or TV set, IR signalsfor the Master Controller comefrom remote units which are heldwithin a foot or so of the

photodi-

ode during training. The receiversin commercial remote control unitsuse esoteric amplifiers, modulatedcarrier frequencies, and elaboratemessage structures to punch thesignal across a room full of inter-ference. Mercifully, none of that

applies here!The 8031 produces one pulse on

the ALE (Address Latch Enable)output for every six clock pulses, or at 2 MHz for a

I2-MHz

  crystal. Asimple flip-flop divider produces a precise l-MHz signal to drive theshift register in sync with the8031’s clock oscillator. The shiftregister thus contains the last eightmicroseconds of IR input data,sampled at each rising edge of the

1 -MHz clock.There is a problem, however.The IR Master stores signal timingdata and menu text in 32K of RAM, which is referred to asExternal Data Memory. The ALEsignal is produced at 2 MHz exceptduring external data memory readsor writes. These operations taketwo cycles and omit the ALE pulseduring the second cycle. The

l-

MHz signal will slip by one micro-second every time the firmwareattempts to record its measure-ments!

Although this sounds cata-strophic, the solution is simple: thefirmware cannot read or write Ex-ternal Data RAM while it expectsgood data from the shift register. If this sounds contradictory, you’renot used to firmware yet!

The trick is to measure the

carrier signal and the data bursts intwo separate steps using two distinctroutines, each optimized for a par-ticular purpose.

Getting the Carrier 

Recall that because the carrier  period and duty cycle are constantthroughout a given message, thefirmware can measure any part of any burst with confidence that thevalues are representative of the entiremessage. There’s not enough time toextract the values on the fly, but onlya few cycles suffice for the wholemessage.

The carrier timing subroutine rec-ords 32 bytes of sampled IR data inthe 8031’s Internal Data RAM. Withno references to External DataMemory during the subroutine, ALEis a stable 2 MHz and no samples are“dropped” along the way. Those 32 bytes thus represent 256 continuousmicroseconds of IR signal, storedwithout analysis. Hidden within thesamples will be 7 to 12 completecarrier signal cycles.

Once the samples are stashed inInternal Data RAM the firmware cananalyze them and store the results inExternal Data RAM. The shift reg-ister isn’t used when the results arestored, so there’s no conflict.

Figure 4 shows the relationship between the IR input signal and thedata read from the shift register.

There is no chance of reading theshift register during a shift becausethe read occurs near the fallingedge of ALE. Notice that the left-

most data bit (bit 7) is the “oldest”sample, so the signal reads from leftto right in the byte.

GETPULSES, shown in Listing1, is the 8031 subroutine that col-lects the IR signal data. Eachinstruction in the time-criticalsection is marked with its startingtime relative to the shift register reads as well as its duration.

A brief description of 8031 as-sembly language is in order beforewe walk through the code in detail.

The 8031, unlike more complexmicroprocessors, can test nearly

any bit of any register, so thestatement

J BA .7 ,WA IT I

indicates a test on Accumulator bit7 and a branch to location WAIT1if that bit is set to “1”. A JNBinstruction branches if the bit is notset.

A pound sign( )

  denotes an im-mediate data value; thus

MOV B,#nsamples-2 loads the B register with 30 when

nsamples (number of samples) is32. An instruction without the pound sign treats the number as anInternal Data RAM address, so

MOV B,nsamples-2 

loads B with the contents of RAMlocation 30. As you might expect,

8 US SHIFT REGISTER PORTREFID

_I k   US SHIFT REGISTER CLOCKS1 t

FC

Figure 4 INPUT PORTDfiTh

  BYTES

Page 37: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 37/49

Page 38: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 38/49

Page 39: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 39/49

Page 40: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 40/49

Page 41: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 41/49

Page 42: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 42/49

Page 43: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 43/49

Page 44: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 44/49

March/Anril  I988

Personal-Computer-BasedInstrumentation

Build a 4-Channel Temperature Logging and Data Reduction System  by Tom Riley

We rely on our personal com- puters for a great many tasks. Withthe device constructed from thisarticle, your personal computer canalso be turned into a powerful toolfor doing many scientific experi-ments. For about $35.00, this de-

vice will let your computer readand log four independent tempera-tures. The resulting data is useful tostudents and amateur scientists butit can also be used to evaluate ahome heating system or even con-trol an industrial process.

The device in question is calledthe Quadtherm and its constructionand electronic circuitry are quitesimple. The supporting software,however, is considerably more so-

 phisticated for a reason. This proj-ect goes beyond a simple construc-tion article and is presented insteadas an introduction to a new andgrowing interest area: Personal-

Computer-Based Instrumentation.A number of personal instru-

mentation systems are commer-cially available for the Apple andIBM PC. Some are bare boards witha specification sheet or two, whileothers are full-blown systems withhardware, software, and full docu-

mentation. The latter, of course,have much higher price tags. TheQuadtherm is an inexpensive start-ing point, yet one which has prac-tical applications.

A personal instrument system ismore than hardware attachments. Itmust include supporting software

for every step of the experimental process. A good personal instru-

ment system must aid the user in thedesign of the experiment, the cali- bration of the sensors, the logging of data, the reduction of that data intocomprehensible form, the writing of the report, and the generation of supporting graphics. At every step

along the way it must also encouragegood scientific method.

Simple Hardware -- Comprehensive

Software

The Quadtherm’s sensors consistof four tiny thermistors about the sizeof sesame seeds. These devices areceramic resistors which change their resistance exponentially with appliedtemperature. The Quadtherm’s oper-

ating range is selected and automati-cally calibrated through a program-

initiated step-by-step procedurewhich gives it an accuracy equal totemperature-measuring devices thatcost an order of magnitude more.

Quadtherm can be easily adaptedto any personal computer which hastimer-type paddle inputs. The

 prototype was tested on an Apple ][+

 but Atari, Commodore, and IBM alluse similar systems with only -slightchanges in component values and

cable connectors. The software can be easily adjusted to different ma-chines by entering the correct para-meters in Program

l

 .

The Quadtherm software is pro-vided primarily as a learning tool aswell as an introduction to personalinstrumentation. I invite you to

modify the programs to suit your ownneeds. The programs are written in

structured BASIC (as discussed byArthur Luehrmann in the May-

July 1984 issues of Creative Com- puting) and can be easily translatedfor use on any of the above-

mentioned computers.To further simplify the task, the

 programs are broken down intoself-contained blocks which haveonly one entrance and one exit. Themain program merely functions asan outline giving the order in which

these blocks are to be executed.The experiment I’ve outlined to

demonstrate the Quadtherm meas-ures the temperature of key com- ponents inside an Apple ][+  (withand without a fan) and the room air temperature. The expected tem-

 perature range is about 76OF  (22OC)

200°F (90°C),  measured with aresolution of

ISoF

 (l.OOC).   Withthese measurements we will ascer-tain whether using the fan reducesthe likelihood of component fail-ure.

There are five BASIC programsused in this project which select and calibrate the thermistors and then

display their readings. Unfortu-nately, these programs are much toolong to publish as listings here. Instead, the programs can be down-loaded from the Circuit Cellar BBS 

(see the ConnecTime   section). The progr ams are referenced in thearticle either by number or by a de- scriptive title indicating their func-tion.

Page 45: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 45/49

Page 46: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 46/49

March/April 1988 45

Accuracy and resolution de- for the correction capacitors is des- Quadtherm. C4 is included to

 pend upon the applied tempera- ignated but nothing should bein-

reduce electrical noise. The Apple

ture. Just above the low-tempera- stalled initially. The exact capacitors   ][+

  game port connector is a l&pin

ture limit, 0.1OC

  of resolution and required will be determined in an DIP header. For computers other 

accuracy are possible. At 80°C   or automatic calibration test later. The than the Apple I[+,  you need onlyhigher,5OC

  resolution is all that can foam block around the board is a change the type of connector and be expected. As a result, you must single piece of shipping foam, flex- the pin numbers.carefully choose the low tempera- ible but stiff, which is held with The exact value needed for eachture as close to the expected

ex-

rubber bands. The foam protects the correction capacitor is usuallyeas-

 perimental low as possible, but not board and helps keep the correction ier to determine by connectingsev-

so close as to lose data. Thecom- capacitors at a stable temperature.   era1  small capacitors in parallel.

 bination of thermistor parameters The cables can be any wire size Allow some extra room on theand correction capacitor value set that will mechanically survive your circuit board. The capacitors them-

this low limit. experiment. The prototype uses24

selves will be installed during the

You may either give Program wire. The main cable needs a mini- calibration procedure.  l

  a value for the correction ca- mum of six wires, but you may wish pacitor or give the low-tempera- to add more if your application has   Correceion  Capacitor Adjustmen$

ture limit and the correct capacitor use for pushbuttons and annuncia-

will be calculated. tors. All the cables on the prototype Using just catalog specifica-

A chart of the resistance and were 4 feet long since it was intended tions, the absolute accuracy of the potentiometer reading versus

tem-

for use only on a workbench. Longer thermistor and the game port tim-

 perature is then calculated. This cable lengths will work just as well ing circuit is hardly worth men-

chart will give you a good idea of but I would not leave them perma-

tioning (about 10%). However,the performance of your chosen nently attached since they also serve when properly calibrated, the

ac-

thermistor and correction capacitor as antennas where electrical noise canover the range of the experiment. enter the computer. Note the change in resolution (i.e., The only difficulty encountered in

 

number of pot reading steps per  constructing the thermistor sensors  1.

  Strip and tin wires,

degree) over the temperatu re was due to the very small size of the slip on heat shrink tube.

range. devices. Figure 2 details the assem-

I suggest that you try several bly procedure. First separate, trim,thermistors to find one requiring strip, and tin the cable wires. Placeonly a small correction capacitor a l/4-inch   p iece of heat -shrink for your temperature range. You tubing over the long wire. Wrap

  2 Solder   first lead.

can expect that the numbers on the either lead of the thermistor arounddata sheet are only accurate to this wire and solder. Trim off thewithin about 10%. Also, it is best to extra wire. A pair of pointed

tweez-

 plan on at least a O.Ol-microfarad ers is very helpful at this point .3.   Heat shrink inner tube,

correction capacitor to give your- Shrink the tubing with either a smallself some adjustment capability. flame or a heat gun.

The second solder joint is thenConstructing Quadtherm made and the outer heat-shrink tub-

ing installed. A small amount of  4. Solder second lead.

T h e c o n s t r u c t i o n o f   the epoxy seals the end of the tube, butQuadtherm hardware is straight- the tip of the thermistor is allowed toforward. Figure 1 shows the main stick out. The outer heat-shrink  parts: a game I/O plug, connecting tubing may be any length from l/4

5. Heat shrink outer tube,

cable, circuit board, andthermis- inch to several inches to serve as a

tors. handle. As an alternative, you canB

The circuit board is l/3   of a mount the thermistors in metal or   i

general-purpose predrilled PC glass tubes.  6. EPOXY   outer tube ends.

 board from Radio Shack. The area Figure 3 shows the schematic of    F’

lgure

 2

 -

 steps to wire a thermistor 

Page 47: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 47/49

5

Circuit Cellar Ink 

curacy and repeatability of anymeasurement i s substantiallyhigher. By calibrating the thermis-tor and computer together as a

system using a known accuratereference, we can achieve meas-urement accuracies of 0.5%.

Low-temperature calibrationand correction-capacitor adjust-ment are done at the same time. Thecalibration procedure uses a Ther-mos bottle of cold water and anaccurate reference thermometer.The thermometer I used was aFisher Scientific 14-983-  10B   glass bulb costing about $20.00. In thecalibration procedure this ther-

mometer sets the precision ofFthe

finished thermistor sensors. Thecomputer will be able to provide nogreater accuracy than this refer-

ence standard so you want to use agood thermometer. The correction-

capacitor adjustment and calibra-tion is done on the computer byrunning Program

2.

I attached the sensors to the ther-mometer with a rubber band andwrapped the assembly in plastic

film closed with another band tokeep out the water. I then placedthem in the Thermos bottle andadjusted the water temperature byadding warm and cold water untilthe thermometer read 2 degrees below the lowest temperature of interest for my experiment,

76OF

(2OOC).

  I waited 10 minutes to besure the temperature stabilized andthen ran Program 2.

 Next, turn the computer off anddisconnect the Quadtherm I/Ocable. Using the information de-rived from Program 2,   selectcorrection capacitors which are just a bit smaller then the valuessuggested by Program

2.

  Installthese trim capacitors in the desig-nated locations.

Check your bath temperatureand run Program

2

  again. If theresults are optimum, you can stop

with a single correction capacitor. If If you are using a computer the

setpoint

  is still not correct, you other than an Apple I[+,  you willshould repeat the same procedure and need to rewrite the disk storageadd additional smaller capacitors to routine (subroutine 1400) here and

the sensors which need them. These in Programs 4  and 5. The calibra-capacitors do not affect the accuracy tion file consists of: (1) adescrip-

of the finished Quadtherm. They tion of all the thermistors with themerely set its low-temperature set-

calibrator’s name and the date, (2) point. the game I/O reading at 25OC,   and

(3) the Beta parameter for each of Calibration the four sensors.

Instructions are given in theThe final calibration procedure is program, but let me describe the

a bit involved, but accuracy always  process. The procedure requirestakes work. Program 3  is the immersing the thermistor sensors incalibration program. It guides you a water bath again and raising thethrough the calibration procedure, temperature in steps. The

thermis-

then calculates calibration parame- tors’ readings are taken automati-

ters for each thermistor and stores  tally

  but the bath temperature mustthem on the disk. be monitored with a reference ther-

mometer and its temperature en-

T H E R M I S T O R S tered via the keyboard. As men-tioned earlier, the accuracy of thesensors will be the accuracy of thisreference thermometer.

The program suggests that youstart with the coldest temperatureand work your way up. You can, if you like, start at any place in the

temperature range of interest andenter the temperature steps in anyorder, but cold to warm is easiest.With each step, pour a little water out of the Thermos and replace itwith more hot or cold water. Wait

GAME

I\

P L U G

>

G n d

Figure 3 -

Quadthermometer

C O R R E C T I O N C A P S Schematic

Page 48: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 48/49

Page 49: Circuit Cellar Vol 01 No 02 Mar-Apr 1988

8/11/2019 Circuit Cellar Vol 01 No 02 Mar-Apr 1988

http://slidepdf.com/reader/full/circuit-cellar-vol-01-no-02-mar-apr-1988 49/49