Piezoresistive fabric is sandwiched by sewn rows of vertical and horizontal pads using a basic sewing machine's custom embroidery pattern.
This wireless variant of Hannah Perner Wilson's fabric tilt sensor uses embroidereded high electrical resistance thread . I designed the tool path to create a resistive track from the patches that can be used as a potential divider . This results in a more continuous estimate of the ball location than is suggsted by the six apparently-discrete patches.
This table-based digital audio oscillator implementation illustrates a few useful techniques on 8-bit microprocessors
such as the Atmel parts supported by the Arduino/Wiring IDE.
A timer is used to establish the sample rate clock and PWM is used to output an 8-bit signal.
Human hearing has impressive frequency precision so accumulation is done on 32-bit integers.
The code is a lesson in how to used fixed point representations and careful sizing of tables as powers of 2.
This reduces the computational cost of the inner loop of the oscillator to a single 8-bit multiply, table lookup and