How dimorphic/bb8 works
Component Details
Input Devices Layer:
• Create two parallel input components:
• Xbox Controller (with Wireless Receiver)
• Myo Armband (with Bluetooth connection)
Core Application Layer:
• Command Processor
• BB8 Controller Module
Output Device Layer:
• BB8 Droid (connected via Bluetooth)
Connection and Data Flow
• Xbox Controller → Wireless Receiver → Computer
• Myo Armband → Bluetooth → Computer
• Computer → Bluetooth → BB8 Droid
• Input signals → Handlers
• Handlers → Command Processor
• Command Processor → BB8 Controller
• BB8 Controller → BB8 Droid
Component Details
For each major module, create a detailed sub-section showing:
BB8 Module:
• Commands (Movement, Core, Aspect, Debug)
• Utils
Myo Module:
• Gesture Handlers
• Plugins (BusyArm, Flex, HardTap, Snap, Vector)
• Commands
Xbox Module:
• Command Mappings
• Input Handlers
Technical Specifications
• Node.js ≥ 6.0.0
• Bluetooth Support
• OS-specific drivers (Xbox 360 driver for OSX)
Additional Elements
• A configuration section showing:
• Device UUID configuration
• Bluetooth connection settings
• Version/environment indicators (Dev/Prod)
Architecture Patterns to Highlight
• Command Pattern implementation
• Plugin architecture for Myo
• Event-driven communication
• Hardware abstraction layers
Remember to:
• Clear labels and annotations
• Both synchronous and asynchronous communications
• Error handling paths
• Development vs. production paths