Damons Laboratory
    The most exciting place on the internet!


A Science & Engineering OnLine Laboratory Notebook   
This is the laboratory notebook of Damon Bruccoleri.  Here you will find engrossing, thoughtful and fun commentary/opinion.  Leave a comment and let others know what you think about any post here, view my photo gallery, or sign my guestbook.

"...one of the strongest motives that lead men to art and science is escape from everyday life with its painful crudity and hopeless dreariness, from the fetters of one's own ever-shifting desires. A finely tempered nature longs to escape from the personal life into the world of objective perception and thought." - Albert Einstein



Latest Notebook Entries

 Thursday, November 19, 2009


The story of 9 finger Bernhard   
I have not posted in a while, I have been busy after my work in China with a ton of new pcb_assembly.jpgwork here, but I do have a story to tell.  A while back my business partner, Ed Kafrissen, and myself got a contract to deliver a product to Telerobotics Corp.  The president, Carl Flatau, contracted us to deliver the electronics for a force sensing control system for his robotic gripper product.  This device we gave him was pretty slick, his product was pretty slick, but that is a different story.

Carl was a stickler for quality.  All the devices we delivered to him were 100% tested before we delivered them to him of course, but he wanted to know details about our manufacturing.  So Ed suggested I visit the sub-contractor we hired to stuff and wave solder our pcb's since at least a few pcb's came to us with some sort of problem from the assembly house.

That is where I met '9 finger Bernie'. When I shook his hand it was immediately apparent, and let me tell you an awkward moment.  Bernhard (or Bernie) had many years of experience and a heavy German accent.  I asked him why we were getting some defective boards from him.  A few boards had chips in back-wards, or the wrong resistor value stuffed, ... just a hodge podge of errors.  Out pcb's were mixed technology, SMT and thru-hole.  Bernie grabbed one of my boards and used the stub of his missing finger as a pedestal to hold the board as he talked to me.  Bernie then gave me a bit of advice that has taken me some time to appreciate.

He told me the pcb's had too many different components.  He said that for his staff to give me the fewest defects, then my pcb would need to be simpler.  He told me the ideal pcb had all the same value resistor.  He chose resistors rather than diodes or some other component because the orientation of resistors does not matter.  Second he said that he would prefer all the resistor's to be lined up next to each other.  I did not laugh at Bernie (I also helped him set up a better quality control on his line for our product, but I pondered on his advice just the same.)

I wish I could have gave him his ideal pcb.  Unfortunately I do not have the knowledge to design a board that performs all the functions necessary for a product with a single value resistor.  As one step in the design process I do try to simplify my pcb's though now because he was right.   A simpler pcb is cheaper to produce and will be more reliable.

It takes good engineering to simplify a board because it's a more difficult challange.


damon at 7:36 PM | (1) Comments | Add a comment | Permalink



 Thursday, August 06, 2009


Talk to Damon   
Questions about my web site?  Give me a free call from any US location!  Click below and enter YOUR number.  Your phone will ring to mine.




damon at 8:06 PM | (0) Comments | Add a comment | Permalink



 Thursday, July 02, 2009


Computer Architecture class and Mano Assembler   
This spring I taught a computer architecture class to the students at the Nanjing University of Posts and Telecommunications.  This was a great bunch of very smart students. One of the topics in the course was the Mano Machine (we were umotherboard_sm.bmpsing the Mano  book!).  This is a fictitious computer that has a simple architecture.  The architecture is simple enough that the students can grasp a complete chip architecture in a few weeks time.  There is quite a bit on the internet about this including an assembler and simulator someone wrote.   I teach them how to design/write a two pass assembler.  Guess what?  One of my students actually wrote the code to implement a two pass assembler for the Mano machine. Shao wrote it in Java.  He created a Google codeplex project here if you want to download and run or build upon it.  Shao Chong got an A in my class.    Not only because of this extra credit, but he really understood the material.  Good work Shao.


damon at 5:52 PM | (3) Comments | Add a comment | Permalink



 Sunday, May 24, 2009


Vivian Ang's concert in Shanghai at Fudan University   
vivian concert.jpgMy cousin Vivian Ang is a Concert Pianist.  She is on tour in Asia now.  I have the good fortune to be in China when she gave her concert at Fudan University in Shanghai.  Shanghai is only a few hours from Nanjing University of Post and Tele communications.  She is wonderful and Fudan is one of the most prestigious universities in China.  Click on the picture to be taken to my photo album of my trip to Shanghai with pictures of cousin Vivian (in case you can't guess she is my cousin from my wife's side).


damon at 5:20 AM | (1) Comments | Add a comment | Permalink



 Saturday, May 02, 2009


Persuading People   
As an engineer you will commonly work with clients, managers, vendors and co-workers. It is your responsibility to provide your client or employer with the best advice you can on the engineering topics you are entrusted with.  I have found that at times I have felt that I had a better direction in a design path, or even company procedures than the way things were going. Since you, as an engineer, are getting paid to provide your best advice, you need to bring this to the attention of those around you.

What are the best ways to achieve this?  My advice is to approach this from an eduction point of view.  I have always felt that if others had the same information I did, and they were reasonable people (which they invariably are), they will reach the same conclusion(s) as I did.  Therefore I will not need to 'persuade' them.  This takes more time then trying to force something down someones throat, but the payoff is immense. You will be viewed as someone to work with. Sometimes all you need to do is to provide a bulleted list of pro's and con's, or a decision tree, or a strategic graphic (a picture is worth a thousand words).

pathsm.jpgWhat if, even with your best effort at education, things still do not go 'your way'.  Assess the importance of this decision or advice.  Is it really a make or break direction for the company or you?   In most cases I would think the answer is probably not.  If not, take a back seat.  Let someone else drive.  You gave your best advice and best effort.  Also, you may not know all the information yourself.  Those you're trying to persuade may not want to put the effort in to educate YOU.  Perhaps your direction is not the best.  This may be particularly true if you are the new kid on the block.  Things are the way they are for a reason.  More than likely there is a whole history to the way people do business around you that you may not be aware of and will take time for you to learn.

Perhaps there are alternatives to what you're proposing that are almost as good.   About the only additional thing I might try, if I felt THAT strongly about this, is another short, very focused, attempt at education.  Then drop it.  The worst thing is to be viewed as argumentative, then all that credibility that has built up is washed away.

There is another question you need to ask yourself.  Is your goal to be viewed as right or is it to effect a new and better direction for the design or your company?  Sometimes its best to let others take credit for your ideas and/or do things more quietly.  On the other hand, perhaps it is an appropriate time to be recognized as being right.

I took a course once that dealt with some of these issues.  The topic?  "How to manage difficult people."  Don't be one of them. Be effective.


damon at 8:54 PM | (4) Comments | Add a comment | Permalink



 Sunday, April 12, 2009


Using DeMorgans Theorm   

I do not usually write lab notes on specific programming issues. I try to keep my web site general so many people can understand it. This note is an exception, its a real simple software related issue. Over the years of writing software I keep coming back to DeMorgan’s Theorem. It was one of those things that in college I never thought I would use, but it seems to pop up on a regular basis at work. I think this is fascinating stuff, particularly when academia meets the pavement.

First, the background. DeMorgan’s Theorem states:
image001.jpg .
DeMorgan’s theorem cannot be proved or reduced using math. The only proof is a brute force proof. At this point your probably thinking, "how can this academic theorem prove to be useful at work?" Let me show by example.

switch Circuit.jpgThis is going to be a real simple contrived example to demonstrate DeMorgan. Suppose the programming job is to read two switch inputs and to turn a motor on if both switches are closed. Perhaps to drive the motor ON we also have to output a LOW. It is common in computer to have negative I/O logic. Here is a schematic for this. We can see that if either switch is closed the input to the computer will go low.

I can now write software to implement the required function.

If ( SW1 = 0) AND ( SW1=0)
THEN MOTOR = 0
ELSE MOTOR =1

Do you see the correlation between this software statement and DeMorgan’s Theorem? Now we can simplify the programming statement using DeMorgan’s. Two simplifications make the statement easier to read. We take advantage of BOOLEAN type's and we can switch around the THEN and ELSE part to get rid of a NOT operator.

If (SW1 OR SW2)
THEN MOTOR =1
ELSE MOTOR =0

An astute programmer might note a further simplification by writing a single algebraic Boolean expression for this statement such as

MOTOR = SW1 OR SW2.

Understanding and using DeMorgan’s Theorem has simplified the programming, if only a little here. In larger applications we would get a larger return on our simplification investment.

Even though many compilers will reduce expressions internally, simplifying your programming pays rewards in understandable code. ALWAYS simplify code and remember to use DeMorgan.



damon at 7:30 AM | (3) Comments | Add a comment | Permalink



 Wednesday, April 01, 2009


I got Aluminum Electrical Wiring   

I am staying at an apartment in China for a few weeks.  The other day the circuit breaker to my air conditioner popped.  I knew I smelt a funny smell coming from the breaker panel!  It finally went altogether last night.  Here is a picture of the breaker that the electrician pulled from the panel.  When I saw this circuit breaker I knew I had a good visual and needed to write up a lab note for my web site.  I saw the electrician do something smart after he pulled the breaker, he went and tightened up the screw terminal's for all the other breakers.

So whats the story surrounding aluminum wiring?Burned Circuit Breaker sm.jpg
Many houses that were built in the late 1960's and early 1970's in the US were built with aluminum wiring.  Aluminum wiring was used because copper starting becoming very expensive around 1965.  Copper is now so expensive that my friend Alan Triolo, who is an electrician, makes some significant pocket change by going to renovation site's, ripping out the old copper wiring and selling it (with permission of course).  Another story comes to mind.  A few years ago the state of Nevada was having a serious vandalism problem.  The street lighting in some of desert locations was not working.  It seems vandals were ripping out the copper wiring from the street lighting to sell.

One final story.  When I was younger my family moved from Brooklyn to a nice, new, suburban home.  That house had aluminum wiring.  It was not until the 1970's that the issues surrounding aluminum wiring became well known.  When we found we had aluminum wiring we lived with a lot of anxiety.  Let me first try to calm you if your house has aluminum wiring.  I have not been able to find know cases of fires caused by aluminum wiring.  The few real problems seem to be related to incorrect installations.  On the other hand there are real issues to be concerned with.  You may not be able to get insurance unless this issue is taken care of.  The potential for a real problem is very real as my recent experience shows.

You do not need to rip out all the wiring in your home, though that is a possible solution.  Get a licensed electrician and talk over the alternatives.  He needs to go through the electrical devices in your home and make sure that they are rated to connect to Aluminum wire at a minimum.  Better yet, he can pigtail the ends of the aluminum wire with copper wire.  And finally he should tighten any loose or suspicious terminal connections on all Aluminum rated devices.



damon at 11:52 PM | (1) Comments | Add a comment | Permalink



 Monday, February 09, 2009


Interesting Circuit Problem   

A couple months ago I ran across a circuitry problem that may interest those with a little electronics knowledge. We were getting failures on a high percentage of new product, but not on all of them. The product was warning that its internal -15v supply was out of tolerance (and faulting). A manual check with a voltmeter showed the -15v supply was within the required +/-10% tolerance. Other internal supplies were monitored as well by the computer and they never exhibited this issue. Below is a schematic of the components involved, what I found and the interesting solution.
Circuit2.JPG

What this schematic is showing is three resistor divider circuits that divide down the +15, +5v and the -15 volt supplies to feed the A/D converter inputs (there is some additional filtering and protection not shown). This A/D converter can resolve a range of 0v to +3v signal thus the need to divide down the voltages before conversion. Additionally the -15v rail voltage is "translated" to a positive voltage by raising it with the +5V. The code in the computer then reads the A/D converter and looks to see if the value read is out of +/-10% tolerance.

There is a problem though with the -15v divider circuit. Do you see it? The -15v circuit is dependent on the +5v voltage as well. So for instance if the +5v rail is 8% too high (within spec), and the -15v signal is 8% too low (also within spec), the resulting divided/translated voltage may be more than 10% out of whack (this is a highly technical term).  The unit would then erroneously fault. 

I found a simple software change that put this issue to rest. We need to first read the +5 rail voltage.  Then the -15v rail voltage is read and we subtract out the component of +5v rail voltage from the -15v reading.  To do this requires some math and Kirchoff's voltage law. 

VAD3 = V+5v - ( V+5v - V-15v) R5 /( R5 + R6)

Next we have to solve for V-15v :

V-15v = (V+5v - VAD3)(R5 + R6)/R5 + V+5v

I implemented this equation in the firmware of the computer and it worked like a charm!  I implemented it, but did not consider this solution to be optimal. In subsequent designs I made sure we did not use the +5v supply to translate the -15v supply voltage, but for this product this software solution had several benefits:

  • Easy fix for units already in field.  No recall.
  • No waste for already manufactured inventory.  We can use existing stuffed pcb's.
  • We did not need to delay an already delayed product.
  • No additional cost for the pcb NRE.
There were some other issues with this solution, scaling issues and floating point issues, but those are for another lab note.

Did you know you can get all of my older lab notes by hitting the archive button on my top banner or to the left?



damon at 3:28 PM | (2) Comments | Add a comment | Permalink



 Tuesday, December 30, 2008


Christmas Toy Got Broke Daddy   
This Christmas I bought a toy digital camera for my daughter Jasmine.  The Girl Tech Video Journal.   It lasted about 48 hours before it broke.  Here is a marketing photo of what it is suppose to look like:
girltechcamera.jpg

Here is an actual photo of the broken toy opened up.   The mini usb connector broke off and was rattling around in the case.   That's it in the middle.   I can not blame the kids for this.  Can you see what is the design flaw of this toy?  It would not have cost anything to design it right.

toy-usb-broken.jpg


damon at 9:55 PM | (2) Comments | Add a comment | Permalink



 Sunday, December 21, 2008


Geez   
Don't ever let it be said that I can't make fun of myself.  The other day my co-worker Guido took a picture of me at work on his iPhone.  He has this new application he bought and he is driving all of us crazy with it.  Actually its pretty neat and I can see it being a gas at a party.  Anyway, here is the picture he took of me and the resulting caricature!
damon_sm.jpg


damon at 10:16 PM | (0) Comments | Add a comment | Permalink