Name: hexapod
Owner: ms-iot
Description: null
Created: 2016-07-21 19:03:30.0
Updated: 2016-08-30 16:59:41.0
Pushed: 2016-07-25 23:01:29.0
Homepage: null
Size: 56
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This project contains instructions to port phoenix.js (code to control a Lynxmotion Phoenix hexapod with Johnny-Five) to be able to run on Windows IoT Core with Node.js (ChakraCore).
The hardware used is similar to what is used in the original phoenix.js project. The difference is that instead of attaching the servos to an Arduino, they are attached to servo hats connected to the Raspberry Pi. This is achieved, with the help of the Johnny-Five IO Plugin feature.
The software is similar to what is used in the original phoenix.js project. The only change in phoenix.js will be to initialize Johnny-Five with an IO plugin. The IO plugin we use (win-io) is only useful for this project. It just handles i2c reads/writes to control the servos provided with the hexapod. A proper IO plugin does much more than that. The code in server.js can also be added to phoenix.js as a way to control the hexapod from a simple Express website.
*The change we are applying can be seen here the reason we patch is because the change hasn't made it to the node-chakracore repository yet.
var winio = require('win-io');
at the beginning of the file.board = new five.Board()
to board = new five.Board({ io: new winio()})
npm install --target_arch=arm
npm install sleep --target_arch=arm
netsh advfirewall firewall add rule name="node.js" dir=in action=allow program="C:\nodejs\node.exe" enable=yes
(this step is only needed if you'll be running the server code)c:\nodejs\node.exe c:\hexapod\phoenix.js