Hi,
I've been draggin my feet getting this to the public, so here goes the basics
What hardware you will need:
1. PG4D with PIC16F88
2. Power supply
3. 2 ADXL Breakout Boards My model used the old 203, but any chip will
suffice
4. Wires
5. Soldering iron
Pictures are here:
http://dave-aubin.freeservers.com/3dmou ... mouse.html
Hardware setup:
1. Mount the ADXL boards to the PG4D perpendicular to each other
A. Be sure not to mix up the ADXL pad labels!
2. Connect pin 5 (Vss or - or ground) to ground pads of the accelerometers
3. Connect pin 14 (Vdd or +) to Vdd pads of the acceleromters
4. Connect the X and Y pins of the two acceleromters to the
RA0-1 and RB6-7
Software setup for hardware:
I used CC5X. Here is the code that samples the accelerometers and then
sends the value back via serial. Here's the code:
http://dave-aubin.freeservers.com/3dmouse/software.zip
Demo:
I have a working perl to socket to opengl test. I will post this as
well if anyone is interested. Thank you for looking.
Questions are welcome:)