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.
How To:
Raspberry Pi:
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
mbed:
Define a SPI interface and get the values from R-PI.
Sending values to the servos
Can anyone please share the script that reads /dev/hidraw* and parses it into usuable information. thanks