====== Connect or Not: Klub K4, Kersnikova, Ljubljana, February 2014 ====== {{http://emperors.kucjica.org/wp-content/uploads/2014/09/red-green-web.jpg?400}} ===== interaction scheme ===== {{::interaction-scheme-connectornot.png?nolink&400|}} ===== technical details ===== Scanners + DMX shield + Arduino + Connect or Not Android app + laptop ==== hardware ==== * 6 [[http://www.robe.cz/products/article/clubscan-250-ct|Robe ClubScan 250ct]] moving lights * Arduino Uno * DMX shield by [[https://www.tindie.com/products/Conceptinetics/25kv-isolated-dmx-512-shield-for-arduino-rdm-capable-r2|Conceptinetics]] * laptop (Debian Wheezy) with built in wireless adapter Intel® Centrino® Advanced-N 6205 with Intel(R) Wireless WiFi driver for Linux, 3.11-2-amd64 (iwlwifi) * TP-Link TL-WR703N wireless router ([[http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/openwrt-ar71xx-generic-tl-wr2543-v1-squashfs-factory.bin|OpenWRT squashfs firmware]]) [[http://wiki.xinchejian.com/wiki/Install_OpenWRT_on_TPlink_WR703N|how to install]] * smartphone (tested with Samsung Galaxy S3, Android 4.0.4) ==== software ==== * Arduino [[DMX-simple|DMX Simple]] library, customized * [[arduino-pd|arduino.pd]] * puredata patch with OSC server and lights controls [[clubscan-pd|puredata patch using ClubScan moving lights]] * to test the light spots only, use puredata test patch for [[dmx-eurolite-test-pd|DMX general test patch]] * TP-link wireless AP [[tp-link-ap-configuration|configuration file]] ===== HOWTO ===== phone side: * download and install [[https://play.google.com/store/apps/details?id=net.lmag.connectornot|Connect or Not app from Google Playstore]] * enable OSC transmission (Menu>Enable OSC) * press the PLAY button to start counting and sending data * make sure you are connected to a wireless network (doesn't need to be online) laptop side: * connect to the same WiFi network as the smartphone * make sure the ClubScan lights are correctly connected to the DMX shield (in series) and that the Arduino is connected to the laptop; check Arduino port and baudrate * start the [[clubscan-pd]] puredata patch browse, talk, send sms's and upload data over the network. observe changes in light colour and speed of change