Debugging Circuits and Code
Operators traced an error in the Mark II to a moth trapped in a relay, coining the term bug. ... Stemming from the first bug, today we call errors or glitches in a program a bug. Hopper did not find the bug, as she readily acknowledged. The date in the log book was September 9, 1947.
Circuitry:
See:
Debugging the Circuit by Jody Culkin
http://arduinotogo.com/2016/08/22/chapter-2-debugging-the-circuit/
- Is the power on?
- Is there +5V and ground on the power bus?
- Are the grounds connected together?
- Are the LED's oriented correctly?
- Are the resistors the correct value?
- Check all connections
See:
Debugging the Circuit by Jody Culkin
http://arduinotogo.com/2016/08/22/chapter-2-debugging-the-circuit/
Common Syntax Errors
Error: Line 10- Expected ; before delay in line 11 (Missing semicolon after line 10 function)
Error: Expected } at end of input (all brackets must be paired {.... {....}.....} )
Error: 'blink was not declared in this scope' (user-created function is 'blinking', not 'blink')
Error: Servo does not name a type ( forgot to include servo library in header section( #include <Servo.h> ) )
Error: 'thisPin' not declared in this scope; (thisPin is a local variable in the loop, so its type(int) must be declared when it is used in the for loop. Alternatively, its type(int) could be declared in the header, making it a global variable)