Difference between revisions of "CSC270 Final Exam 2012"
Line 129: | Line 129: | ||
=Misc.= | =Misc.= | ||
+ | ==Arduino== | ||
+ | * The Arduino will keep its program in memory when it is powered off. This means that as soon as you connect it to a live USB port, the sending program will start. The Arduino will wait for the receiving hardware to activate ACK and get characters. | ||
+ | * You can easily test whether your Arduino is running properly by connecting its STB to its ACK signal in a loop. In effect you make it think it has a very very fast receiver that sets its ACK simultaneously as the STB is activated. In other words, if you connect Pin 3 of the Arduino to its Pin 4, it will think it has a live receiver and will send all the letters of the alphabet in 13 seconds, flashing its LED for 1/2 second once a loop. | ||
+ | ==Arduino Receiver Code== | ||
For completeness, the code for the receiving Arduino is shown below. | For completeness, the code for the receiving Arduino is shown below. | ||