Wednesday 10 February 2010

Sensor Building and Testing



Myself and Rob have been busy the past week soldering and testing the sensors we need in order for the flash game to be controlled. So far we have finished building two volume pots that will control the bikes steering and braking function, as well as an LDR sensor with LED for the forward movement of the bike to be fitted to the bikes pedal crank.

Once we had these sensors fitted, with the help of Dan hooked them up to the iCube and into Max/MSP where we built a simple patch that would display the readouts of the values of each

sensor. From there we got hold of the flash server object for Max and with some fiddling successfully connected to a Flash application where we got the values to read from the sensors into Max/MSP into Flash. This now means that we can add the required code into our Flash game and start connecting the readouts to the required Flash Animations

Here are a few pics of our handy work....

LDR Sensor:



















LED Connected to 9V Batt Snap:
























Volume Pot for Steering & Brakes:


No comments:

Post a Comment