Skynet support for the Arduino Yun.
Before you can use this you have to first update the yun system image and install node using the instructions below.
INSTALL INSTRUCTIONS:
- Update the Yun Openwrt image. http://arduino.cc/en/Tutorial/YunSysupgrade
- Expand the Yun disk space to an sd card. http://arduino.cc/en/Tutorial/ExpandingYunDiskSpace
- Run the following commands;
- opkg update
- opkg install node
- opkg install node-serialport
- opkg install node-socket.io-client
- Comment out the last line in /etc/innittab and reboot.
- You can't git clone on the yun, so instead use another computer to move this repo to the sd card.
- Run node skynet_yun.js
- Once it connects and authenticates you can send it messages from skynet and it'll push it to the serial port.
Arduino LED strip Code:
Wire your yun up to an LED strip (in this case I used an LPD6803 strip)
Download and Install Libraries: https://github.com/neophob/LPD6803-RGB-Pixels https://code.google.com/p/arduino-timerone/downloads/list
Once you have the libraries installed, program the Arduino Yun with the yunLed code. Send it a payload that contains just an integer of 0,1,2, or 3.
- msg.payload = 0; -> ColorWipe - Blue
- msg.payload = 1; -> ColorWipe - Green
- msg.payload = 2; -> KnightRider - Red
- msg.payload = 3; -> KnightRider - Blue