mandag den 3. marts 2008

Seventh day of Project work: SunSpot --> Phidget

With new hope we meet again and with 3 days to go we had to find a solution to our button problem. We tried once again packing the bag harder, but still no luck. We decided that we had to go for a more drastic solution so we thought that putting something really hard behind the buttons would help so we put phonebooks behind the buttons. This made the buttons much more sensitive, but our problem was that the buttons only worked when pushed in for a while and didn't work when you just hit them. Another problem was that the sunspot ran out of power. We didn't have time to wait for the sunSpot to recharge so we plugged in one of the buttons to a Phidget. Because the Phidget have an internal resistor we could just easily plug a button directly into the Phidget. To our big surprise the button not worked perfect. We therefore decided to scrap sunspot and connect all the buttons to the Phidget. Because both sunSpot and Phidgets runs in Java, we didn't had to change very much in the code to make the program work. We newer found out why the buttons didn't work with sunSpot, maybe because unlike Phidgets we had to pull the information out of the sunSpot (Phidget sends an event) and maybe something was wrong with that method or something. Anyway it worked with Phidgets and we finally could use the BeatBox as planned from the beginning. Seeing that i actually worked, we figured we had enough time to finish the whole thing tomorrow.

Ingen kommentarer: