Top Banner
Spacebrew & Yun Thursday, October 17, 13
23

Spacebrew & Arduino Yún

Nov 30, 2014

Download

Technology

Johan Nilsson

Presentation at IoT Sthlm: On making connected objects, http://www.meetup.com/IoTStockholm/events/143274302/
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Spacebrew & Arduino Yún

Spacebrew & Yun

Thursday, October 17, 13

Page 2: Spacebrew & Arduino Yún

Thursday, October 17, 13

Page 3: Spacebrew & Arduino Yún

Thursday, October 17, 13

Page 4: Spacebrew & Arduino Yún

Thursday, October 17, 13

Page 5: Spacebrew & Arduino Yún

Event Server

Client

Client Client

Client

Clients can Subscribe to data and or Publish data

OSC/WS/? to WS

Thursday, October 17, 13

Page 6: Spacebrew & Arduino Yún

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

Page 7: Spacebrew & Arduino Yún

SpacebrewA Toolkit For Choreographing Interactive Spaces

Thursday, October 17, 13

Page 8: Spacebrew & Arduino Yún

Client & Server Model

Thursday, October 17, 13

Page 9: Spacebrew & Arduino Yún

Spacebrew

Client

Client Client

Client

Clients can Subscribe to data and or Publish data

Thursday, October 17, 13

Page 10: Spacebrew & Arduino Yún

Data Types

• True or False values

• Integer values between 0 & 1023

• Text strings

• Custom data

Thursday, October 17, 13

Page 11: Spacebrew & Arduino Yún

Demo

Thursday, October 17, 13

Page 12: Spacebrew & Arduino Yún

Web based interface

Thursday, October 17, 13

Page 13: Spacebrew & Arduino Yún

Arduino YúnATmega32u4 & Atheros AR9331

Thursday, October 17, 13

Page 14: Spacebrew & Arduino Yún

“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

Page 15: Spacebrew & Arduino Yún

“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

Page 16: Spacebrew & Arduino Yún

“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

Page 17: Spacebrew & Arduino Yún

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

Page 18: Spacebrew & Arduino Yún

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

Page 19: Spacebrew & Arduino Yún

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

Thursday, October 17, 13

Page 20: Spacebrew & Arduino Yún

Shipped with Yún

Thursday, October 17, 13

Page 21: Spacebrew & Arduino Yún

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

Thursday, October 17, 13

Page 22: Spacebrew & Arduino Yún

Demo

Thursday, October 17, 13

Page 23: Spacebrew & Arduino Yún

Thank [email protected]

@johanni

Thursday, October 17, 13