PROBLEMS:
Below are a list of problems that were encountered during this project, and the solutions that
were arrived at.

 Problem #1:
     This project initially called for the use of radio frequencies instead of infrared beams.  The reason that it was preferred is because radio frequencies could transmit a lot of information between each other.  The problem occurred when it was it was learned that radio frequencies could not be concentrated in one direction, at least not with the materials at hand, and also that there was not much documentation given on how to use the receivers and transceivers given.

Solution #1:
     The project was changed with the discovery of parallax's IR Buddy, which could used to send 8 bytes between each other which turned out to be more than was necessary. Also, the IR beams could be easily concentrated in certain directions.

Summary: Radio Frequencies-Did not get to work.  Replaced with IR Buddies


Problem #2
     The second problem occurred with the use of the IR Buddy.  Since new commands were used, and neither of us had used Basic before, we were unsure of some of the commands.

Solution #2
     With the help of fellow classmates, and trial and error, basic knowledge of how to send and receive signals using the IR Buddy and its SERIN and SEROUT functions.

Summary: IR Buddy Programs-Got to work!  Helped by friends and trial and error.


Problem #3
     Since the IR Buddy had to rotate freely, it was mounted onto of a servo by using a circular arm and drilling a hole in it to hold the IR Buddy, but the wires that were given were too stiff to allow the servo to turn freely without moving.

Solution #3
     When we noticed that the wires for a servo were very lose, we found a broken servo, cut off the wires, and converted them into a plug for the IR buddy in the rotating arm.

Summary: IR Buddy Rotating-Got to work!  Replaced wires, with loose wires from servo.


Problem #4
     Although basic knowledge of how to use the IR Buddy and the Sonar, there were still problems when these two were brought together.  Examples of these problems were that variables were not changing, or they were being set back to certain numbers.

Solution #4
     Through trial and error, and often times, erasing all that we had done, and starting over from scratch by copying and pasting segments of code that we were sure would work, it was discovered that the problem lay somewhere in the assiginig of "buffer" for the SERIN and SEROUT functions.  It seemed that it was necessary for buffer to be an 8 byte value being sent, and recieved.  If all 8 bytes had not been there, it would send other variables that were not meant to be sent.  Thus, extra variables were left in the code, even though they were not needed, so that the SERIN and SEROUT functions would work properly and other values would not be changed.

Summary- Problems with Basic Coding-Got to work! Writing multiple different types of programs and code, attempting to pinpointing the error.


Problem #5
     Although the IR Buddy was working, it was not working as it should over long ranges and did not always detect the other sensor. This would be a very big problem since that would mean the target had to be within a very close distance in order to be detected, which was not the initial intent of the project.

Solution #5
     After wondering about the true range of the IR Buddy, we decided to e-mail the people at parallax and ask. In the reply, we discovered that the range was actually about 50ft but he also told us that florecent lighting would affect the beams,and florecent lights were used in the class room, thus, for the project to work, it would need to be tested in the dark, or in a room without florecent lighting.

Summary: Signals between IR Buddy's-Did not get to work without alterations in the environment. The IR Buddy must be used in the dark, or away from florecent lighting.


Problem #6
     The initial idea of the cannon had never been made by either of us before, but it had been learned in physics class.  The idea had been done before, but since neither of us had experience, it was complicated to start at first.

Solution #6
      Though we were unfamiliar with how to make a cannon using coils (a.k.a. coil gun/rail gun) our first place to look was the internet.  After much researching, it seemed that it would be fairly simple to construct a coil gun from a disposable camera thanks to certain sites, which can be found on the "LINKS" page.  So after obtaining a disposable camera, and toying with it, it was discovered that not all the instructions on the site seemed to work for all disposable cameras.  Multiple sparks occurred and individuals got shocked but eventually a working coil gun was made.  But it was soon discovered that these things can be broken, and shorted very easily, and thus the board of the first cannon was fried, and another camera had to be obtained.  But in order to prevent any further shorts, electrical tape was used to cover the board.

Summary: Construction and Function of Cannon(Coil Gun)-Got to work!  Trial and error.  Replaced old board with a new board.