This Project shows an interface between 3Dconnexion Spacenavigator, Raspberry PI and mbed to control a small robot arm. This arm is built with Lego technic elements and Servos. This combination (mechanical and electrical side) enables very fast prototyping.
make a script that opens/read /dev/hidraw (USB interface to spacenavigator)
two line are given from this device. Use the first byte to identify them. Every axis command consists of two unsigned bytes. one for the main position and the second for the value.
After finding out the protocol, extract and calculate the main values. Define a SPI interface for sending the data to a microcontroller
No special libraries needed to compile !! I stored the script in /etc/rc.local/ to run it at the start up
Define a SPI interface and get the values from R-PI.
Sending values to the servos