Troubleshooting Brian Kidney Engr. 6808 September 22, 2003.

7
Troubleshooting Brian Kidney Engr. 6808 September 22, 2003

Transcript of Troubleshooting Brian Kidney Engr. 6808 September 22, 2003.

Page 1: Troubleshooting Brian Kidney Engr. 6808 September 22, 2003.

Troubleshooting

Brian KidneyEngr. 6808September 22, 2003

Page 2: Troubleshooting Brian Kidney Engr. 6808 September 22, 2003.

What? Problems? Never!

You WILL experience problemsBoth with hardware and software

Planning can limit delays Incremental buildingUnit testingRevision Control

Page 3: Troubleshooting Brian Kidney Engr. 6808 September 22, 2003.

Incremental Building

Practice KISSKeep It Simple Stupid

Build components in small steps Fully test each component before moving

on Integrate in steps as well

Page 4: Troubleshooting Brian Kidney Engr. 6808 September 22, 2003.

Unit Testing

Concept comes from softwareJUnit, CPPUnit, and many others

Main idea is to design test firstBased on the functionality of the component,

not the implementation Test after first implementation and every

change

Page 5: Troubleshooting Brian Kidney Engr. 6808 September 22, 2003.

Revision Control

If it works, Keep It! Always keep copies of old software that

worksDate files, use CVS, Source Safe, …

Try to add to hardware rather than redesignDocument all circuits in stages

Page 6: Troubleshooting Brian Kidney Engr. 6808 September 22, 2003.

Noise!!!

Shows up everywhereVideo, sensors, circuits, motors,…

Difference between labs and “real world” Need to filter out noise

Can be done with simple RLC circuitsCan be done in software

Page 7: Troubleshooting Brian Kidney Engr. 6808 September 22, 2003.

Tips to find your problems

Never rule out anything Start with simplest components, then complex Even wires break

Use datasheets Example circuits may give clues

Have others look at you work If at first you don’t succeed, take a break Document your mistakes