Thursday, June 5, 2008

HELLO WORLD

Well we wired it all up and uploaded our program to the Arduino and lots of LEDs flashed a lot. So much constant flashing that we figured there was a problem somewhere. Somewhere amongst the 5000 solders there was a problem. Or was there?

A closer inspection showed that actually we had two slightly erroneous lines in the Arduino code. The first problem was that the numbers were displaying backwards eg 254 was showing as 11111110 rather than 01111111. The second was the cause of the constant flashing. We were returning the latch pin between readings from the serial port so by moving the line " digitalWrite(latchPin, 1);" out of our loop that runs when there is new data we were able to go flashing free.

There is one small problem still which is that confusion seems to build up over a period of about half an hour but we suspect this is because we haven't used enough capacitors. Thats our next little task before we can start using the LED array for displaying camera imagery.

Check out the video clip for the classic Hello World.

No comments: