Go Down

Topic: Debugging can be very frustrating (Read 232 times) previous topic - next topic

Robin2

I've just wasted about 2 hours trying to figure out why a digitalRead() was showing LOW when it should not have been.

I'm making a model train turntable and I have a few simple contacts to identify where it is. In the test program it should only stop briefly when it makes contact, but it was stopping randomly. It seemed to have been working fine last night.

Eventually, after suspecting cross-talk from the stepper wires (28Byj-48) and an inadequate pull-up resistor, and faulty code and goodness knows what else it finally dawned on me that contact was being made through the aluminium covering on the baseboard (Celotex) that had been pierced by a screw holding down one of the contacts.

Of course then there is the satisfaction of beating the bugger :)

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

larryd

Seems that some times, sh*t just happens to keep us on our toes.  :(


No technical PMs.
The last thing you did is where you should start looking.

Henry_Best

The hardest faults to find and rectify are those you caused yourself. A fresh pair of eyes can usually find that fault quicker.

Paul_KD7HB

The hardest faults to find and rectify are those you caused yourself. A fresh pair of eyes can usually find that fault quicker.
Or just asking on the forum what you did to cause the problem, with no other information given.

Paul

MarkT

The trick is to realize that the things that "obviously cannot be happening" need to be checked
just as much as the things you suspect as possible.
[ I will NOT respond to personal messages, I WILL delete them, use the forum please ]

Robin2

The trick is to realize that the things that "obviously cannot be happening" need to be checked
just as much as the things you suspect as possible.
+1

This almost always catches out the people who only post snippets.

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

Go Up