Calibration
Here we are calibrating the game using a laser pointer placed in the gun barrel. After firing we note the (a) the Sun SPOTs accelerometer tiltY value and (b) the calculated voltage from the analog input connected to a potentiometer. Then we make changes in the software so we hit the corresponding spot.
Potentiometers

Our cannon for the game Batteship needs readings of rotation in x, y and z-axis. For the latter we need to use a potentiometer and get the reading from the Sun SPOTs analog inputs.
Prenumerera på:
Inlägg (Atom)