Spacebrew & Arduino Yún

Preview:

DESCRIPTION

Presentation at IoT Sthlm: On making connected objects, http://www.meetup.com/IoTStockholm/events/143274302/

Citation preview

Spacebrew & Yun

Thursday, October 17, 13

Thursday, October 17, 13

Thursday, October 17, 13

Thursday, October 17, 13

Event Server

Client

Client Client

Client

Clients can Subscribe to data and or Publish data

OSC/WS/? to WS

Thursday, October 17, 13

config = {    "name" : "Tap",    "type" : "osc_to_ws",    "osc_address" : "/sink",    "ws_events" : ["sink"],    "description" : "Turning the tap on and off effects the movement and shape \ of the liquid on the monitors Visual - turns into stream \ of liquid across 3 screens when tap is turned on.",    "send_function" : send_function,    "transform_function": transform_function}

Thursday, October 17, 13

SpacebrewA Toolkit For Choreographing Interactive Spaces

Thursday, October 17, 13

Client & Server Model

Thursday, October 17, 13

Spacebrew

Client

Client Client

Client

Clients can Subscribe to data and or Publish data

Thursday, October 17, 13

Data Types

• True or False values

• Integer values between 0 & 1023

• Text strings

• Custom data

Thursday, October 17, 13

Demo

Thursday, October 17, 13

Web based interface

Thursday, October 17, 13

Arduino YúnATmega32u4 & Atheros AR9331

Thursday, October 17, 13

“The Atheros processor supports a Linux distribution based on OpenWRT named Linino. The board has built-in Ethernet and WiFisupport, a USB-A port, micro-SD card slot, 20 digital input/output pins (of which 7 can be used as PWM outputs and 12 as analog inputs), a 16 MHz crystal oscillator, a micro USB connection, an ICSP header, and a 3 reset buttons.” – http://arduino.cc/en/Main/ArduinoBoardYun

Thursday, October 17, 13

“The Atheros processor supports a Linux distribution based on OpenWRT named Linino. The board has built-in Ethernet and WiFisupport, a USB-A port, micro-SD card slot, 20 digital input/output pins (of which 7 can be used as PWM outputs and 12 as analog inputs), a 16 MHz crystal oscillator, a micro USB connection, an ICSP header, and a 3 reset buttons.” – http://arduino.cc/en/Main/ArduinoBoardYun

Thursday, October 17, 13

“The Atheros processor supports a Linux distribution based on OpenWRT named Linino. The board has built-in Ethernet and WiFisupport, a USB-A port, micro-SD card slot, 20 digital input/output pins (of which 7 can be used as PWM outputs and 12 as analog inputs), a 16 MHz crystal oscillator, a micro USB connection, an ICSP header, and a 3 reset buttons.” – http://arduino.cc/en/Main/ArduinoBoardYun

Thursday, October 17, 13

void loop() { Process wifiCheck; // initialize a new process

// command you want to run wifiCheck.runShellCommand("/usr/bin/pretty-wifi-info.lua"); // while there's any characters coming back from the // process, print them to the serial monitor: while (wifiCheck.available() > 0) { char c = wifiCheck.read(); Serial.print(c); } Serial.println(); delay(5000);}

ProcessWiFi Status Example

Thursday, October 17, 13

Bridge

$ curl -X GET http://russo.local/arduino/digital/13/Pin D13 set to 1$ curl -X GET http://russo.local/arduino/digital/13/0Pin D13 set to 0$ curl -X GET http://russo.local/arduino/digital/13/Pin D13 set to 0$ curl -X GET http://russo.local/arduino/digital/13/1Pin D13 set to 1

Bridge Example

Thursday, October 17, 13

Yún & Spacebrewhttps://github.com/julioterra/yunSpacebrew

Thursday, October 17, 13

Shipped with Yún

Thursday, October 17, 13

Needs a patchhttps://groups.google.com/forum/#!msg/spacebrew-cc/zRFZhHvxquY/l8h-CvQtnLgJ

Thursday, October 17, 13

Demo

Thursday, October 17, 13

Thank Youjohan@expandedactivities.com

@johanni

Thursday, October 17, 13

Recommended