Post by Frisbone on Mar 9, 2013 12:32:22 GMT -5
Plan:
---------
Work on 4.5 Volt battery power supply (3 AA's in compartment). Should add a switch somewhere that cuts the power to the components - could perhaps emulate a "safety" switch.
Create a removable mounting for the Raspberry PI board.
Connect the power to the RP.
Get the RP running with a keyboard/monitor. Figure out how to build a simple I2C driver.
Create a mounting for the accelerometer in the gun.
Connect power and I2C leads from the RP to the Accelerometer.
Create a test program that does simple polling to output AM data.
Create a test program that is interrupt driven that provides useful data.
Create program that logs output to a file according to time. Run this and track data that is output when you move the gun around in all directions (first slow left/right, up/down, forward/back - natural pointing movements left/right) - (then go to medium, then fast).
Create mounting for XBOX controller.
Create a button for the XBOX ON button on the gun.
Create a remote button for the SYNC access. Can be anywhere, doesn't matter.
Figure out how to downgrade 4.5V power to 3V. Hook up 3V to XBOX controller.
Wire up the: Reload button to the appropriate buttons (X) (shouldn't need transistors for this).
Figure out how to mount the following buttons so that the left hand fingers can access them: A, Y, B, Start.
Test the xbox controller and make sure you can connect and do basic navigation to start the game.
Create mounting for PWM board.
Figure out how to wire the XBOX right joystick and the XBOX right trigger to the PWM board.
Wire up I2C from PWM board to Raspberry PI.
Configure the PWM board
Write software to generate PWM for the trigger. Launch a game and test it out.
Write software to generate PWM for the joystick. Test program should turn left 3 seconds slowly, turn right slowly, look up slowly, look down slowly - left/up, right/down, right/up, left/down - total of 24 seconds - then repeat. Run program in game and see if it changes the POV of the character.
Connect trigger button through transistor to RP GPIO. Use it to generate trigger signal - test it out in the game.
Figure out how to get two I2C drivers to work at same time and communicate (IPC). Write program that translates accelerometer signal to joystick movement and combines with GPIO trigger test.
Run first rudimentary test that translates movement to joystick signal and allows trigger to work and reload functions.
===========================
To create a functional controller
===========================
Need to mount the left joystick so it is accessible to the right-hand thumb on the left of the gun. Might be able to mount it right back on the board but that would have things twisted around in an awkward control direction - might be better to rotated it 90 degrees and have a free-mounting of it with wires going to the controller board.
Next we need to find a spot to mount the PLUS controller. Perhaps next to the other one.
Next we need to add controls for the left trigger (requiring PWM logic like actual trigger - but this time we are going to use the original trigger and find a place on the gun to place it.
Next we need to add buttons for LB/RB - in the game its tactical/explosive. This will require us to remove the buttons on the board and relocate them.
Finally we need to remote the < button.
This should give us the ability to use ever aspect of the controller in the game.
---------
Work on 4.5 Volt battery power supply (3 AA's in compartment). Should add a switch somewhere that cuts the power to the components - could perhaps emulate a "safety" switch.
Create a removable mounting for the Raspberry PI board.
Connect the power to the RP.
Get the RP running with a keyboard/monitor. Figure out how to build a simple I2C driver.
Create a mounting for the accelerometer in the gun.
Connect power and I2C leads from the RP to the Accelerometer.
Create a test program that does simple polling to output AM data.
Create a test program that is interrupt driven that provides useful data.
Create program that logs output to a file according to time. Run this and track data that is output when you move the gun around in all directions (first slow left/right, up/down, forward/back - natural pointing movements left/right) - (then go to medium, then fast).
Create mounting for XBOX controller.
Create a button for the XBOX ON button on the gun.
Create a remote button for the SYNC access. Can be anywhere, doesn't matter.
Figure out how to downgrade 4.5V power to 3V. Hook up 3V to XBOX controller.
Wire up the: Reload button to the appropriate buttons (X) (shouldn't need transistors for this).
Figure out how to mount the following buttons so that the left hand fingers can access them: A, Y, B, Start.
Test the xbox controller and make sure you can connect and do basic navigation to start the game.
Create mounting for PWM board.
Figure out how to wire the XBOX right joystick and the XBOX right trigger to the PWM board.
Wire up I2C from PWM board to Raspberry PI.
Configure the PWM board
Write software to generate PWM for the trigger. Launch a game and test it out.
Write software to generate PWM for the joystick. Test program should turn left 3 seconds slowly, turn right slowly, look up slowly, look down slowly - left/up, right/down, right/up, left/down - total of 24 seconds - then repeat. Run program in game and see if it changes the POV of the character.
Connect trigger button through transistor to RP GPIO. Use it to generate trigger signal - test it out in the game.
Figure out how to get two I2C drivers to work at same time and communicate (IPC). Write program that translates accelerometer signal to joystick movement and combines with GPIO trigger test.
Run first rudimentary test that translates movement to joystick signal and allows trigger to work and reload functions.
===========================
To create a functional controller
===========================
Need to mount the left joystick so it is accessible to the right-hand thumb on the left of the gun. Might be able to mount it right back on the board but that would have things twisted around in an awkward control direction - might be better to rotated it 90 degrees and have a free-mounting of it with wires going to the controller board.
Next we need to find a spot to mount the PLUS controller. Perhaps next to the other one.
Next we need to add controls for the left trigger (requiring PWM logic like actual trigger - but this time we are going to use the original trigger and find a place on the gun to place it.
Next we need to add buttons for LB/RB - in the game its tactical/explosive. This will require us to remove the buttons on the board and relocate them.
Finally we need to remote the < button.
This should give us the ability to use ever aspect of the controller in the game.