Sunday, October 9, 2016

Completed Code SHADOW BB8

SHADOW BB8 discussed


Completed the migration of James Bruton's code to adapt the SHADOW code methodology...

The 4 joystick and several button system is now consolidated into 2 Move Navigation Controllers (will also write for PS3/4 joystick in the future).

Key items:

  • Navigation with the main motors (foot and gyro swing) is controlled from the right controller.
  • Head (gimble) spin is controlled from the left controller.
  • The code is broken into sub functions that are defined such as mainDrive, domeDrive, JoyStickReadings, getMPU and getPOT.  This allows future development to be completed with less issues.
  • re-assignment of pins to compensate different Arduino configurations.
  • RAW MPU rather than external interrupt based.



Combinations such as head spin and  flywheel spins are controlled by simply holding L2 on the opposite controller which tells the other controller to perform these functions.

Download the BETA code here: https://github.com/jlvandusen/SHADOWBB8

Adaption of PIN conflicts discussed

  • Using the USB SHIELD and Bluetooth V4 class 1 adapter conflicted with the PWM pins 9-13.
  • The USB SHIELD + Bluetooth adapter ran into issues where the Bluetooth would not start listening... and required a Arduino reset

Issues along the way...

I accidently burned out the GYRO motor and the motor controller...  nothing like connecting +/- to the power line feed thus generating or using both devices as a large FUSE - not a good idea.  and although no blue smoke dragon... it popped something internally.

SMAKN® Double Bts7960b 43a Motor Driver High-power Module/smart Car Driver Arduino


May they rest in peace... time for new ones!

No comments:

Post a Comment