Objective: Mimic user's arm motion with an Xbox Kinect V2
This repository should contain the code for the following:
- C# code to read user's arm angles
- Arduino code to communicate with the motors
The following hardware was used:
- Computer running Visual Studio (2015, but 2017 should be fine) and Microsoft Kinect SDK
- Xbox Kinect V2 (including adapter)
- Arduino/Genuino UNO
- Dynamixel RX-28 servo motors (x6)
- Custom RS485 Comms board
- Assorted cables/wires
- A 3D-printed body (optional)
The code is split as follows:
The purpose of the C# code was to handle the harder and more computationally intensive algorithms. It is also required to talk to the Kinect and send the arm angles to the Arduino.
The code uses the vectors from various skeletal points. Joint angles are calculated using vector angles from joint-to-joint. The angles are then sent to the Arduino using standard serial protocol.
The Arduino is simply used to talk to the motors. There is no special algorithm going on, just serial data sent to the motors via the custom RS485 comms board.