Go Down

Topic: clock on arduino (Read 4 times) previous topic - next topic


i am a complete newbie at this and at the min i am working blind

Terry King

Don't stay blind. Divide and conquer.

- Write a separate sketch for each major junction.  Fake input values if necessary.

- Put lots of intermediate results out to Serial Monitor.

- Get each subsystem to work first.

-Then review all the Constants, Variables, Libraries, subroutines for each subassembly and merge the stuff above SETUP on the simplest subassembly and make sure you can compile.

- Add the other code piece by piece, checking that you can compile OK

- Finally make the "real" data come from the "real" code and see if it works. Keep a lot of the Serial Monitor stuff working unless it messes up timing.

Slow down and make sure you understand each piece.

And Good Luck!

(Been There. Done That. Screwed It Up...)  :P
Regards, Terry King  ..On the Red Sea at KAUST.edu.sa
terry@yourduino.com  LEARN! DO! (Arduino Boards, Sensors, Parts @ http://yourduino.com


I have looked at the sketches and have not got a clue where to start think i need a 24/7 help line lol

Go Up