+ All Categories
Home > Education > PiST/// Workshop

PiST/// Workshop

Date post: 30-May-2015
Category:
Upload: mogens-jacobsen
View: 1,307 times
Download: 3 times
Share this document with a friend
Description:
Slides from a 2-day workshop I held at PiST///, Istanbul 2011.
41
Transcript
Page 1: PiST/// Workshop
Page 2: PiST/// Workshop

The plan (interim)

Day 1: Getting it

• Introduction to concept

• Visit to junk-market. Shopping for noise-makers

• Taking the devices apart

• Circuit bending: Trying to produce interesting sound

Day 2: Building it

• Introduction to the interface

• Building control electronics.

• Setting up the installation of noisemakers at PiST

Day 3: Coding it

• Connect the noisemakers to the web.

• Program a simple visual interface I HTML (webpage).

• “Rehearsal”

Evening/Performance : Doing it (Tuesday 20:15)

The participants will perform a short piece by controlling the installation from the web.

Afterwards everybody is invited to use the installation - so bring friend, smartphones and laptops.

PiST will supply an open WIFI-network for this evening.

Page 3: PiST/// Workshop

Workshop – Not lecture

Page 4: PiST/// Workshop

Where the idea came from

Bamboo Grove, Beijing 2010Mogens Jacobsen, David Garcia, Jakob S. Remin and Morten Riis

Page 5: PiST/// Workshop

Where the idea came from

Page 6: PiST/// Workshop

Where the idea came from

Mechanical soundmakers

Page 7: PiST/// Workshop

Where the idea came from

The controller: Arduino + custom electronics

Page 8: PiST/// Workshop

Where the idea came from

Performance: Jakob S. Remin, Morten Riis, MJ

Page 9: PiST/// Workshop

The (new) concept: Internet control

laptops

smartphones

webserver controller

(arduino)

custom

electronics

modified

trashHTML interface

via WiFi

usb

Page 10: PiST/// Workshop

The webserver

My slow netbook

XAMPPP freeware webserver

(Apache based supporting PHP)

www.apachefriends.org

Page 11: PiST/// Workshop

The usb controller

The Arduino Board

Small computer

Cheap (65 TLR)

OpenSource (hardware)

Page 12: PiST/// Workshop

The Arduino (i/o)

14 digital input/output

(6 analog inputs)

USB

We share one

Use it as USB-controller

Page 13: PiST/// Workshop

Custom Electronics

Page 14: PiST/// Workshop

”Pinkie”: (almost) all-in-one alternative

BURAK ARIKAN

Page 15: PiST/// Workshop

To do

custom

electronics

modified

trashHTML interface

usb

Page 16: PiST/// Workshop

Modified trash

Should be able to make sound

(electronically, mechanicaly..)

Modifiable: Easy to open

Cheap: We will break it

Fun

Battery-operated (safety!)

Page 17: PiST/// Workshop

Getting it:

Let’s go hunting

for good trash

Page 18: PiST/// Workshop

Modify it!

Open it and explorethe audio possibilities

Using 1 wire (on/off)

Page 19: PiST/// Workshop

The MOSFET (IRF520 or IRF510)

3 different pins!

Page 20: PiST/// Workshop

Building it

Simple

3 parts

Cheap (2 TLR)

Not to fast…

”mechanical” switch

controlled by the

Arduino (which again is

controlled by USB)

Page 21: PiST/// Workshop

Custom Electronics: Diagram

MOSFET

IRF510

Resistor

2,2K Ohm

Relay

+9V

GND (-9V)

On/off

Data in

Page 22: PiST/// Workshop

The MOSFET

Sensitive to static electricity

Sensitive to heat

Page 23: PiST/// Workshop

The Relay (mechanical switch)

Control

Control

Control

Control

Page 24: PiST/// Workshop

The Resistor

Value: Between 2000 and 10000 Ohm (2,2KOhm)

Value is color-coded (2,2KOhm = red/red/red)

No polarity (does not matter which way you turn it)

Page 25: PiST/// Workshop

Building it

MOSFET IRF510

RESISTOR

RELAY

TO GND

TO +9V

TO USB

Page 26: PiST/// Workshop

Connecting your trash thing

Add long wires to these

relay

Page 27: PiST/// Workshop

Coding it

HTML page as

interface

Control ”orchestra”

from browser

Simple:

Toggle on/off

Page 28: PiST/// Workshop

Prepare the visuals

• 10 images on a webpage

drawings, photos, ?

• Clicking an image toggles a piece of trash

• Small images (all has to fit within a webpage)

Page 29: PiST/// Workshop

HTML: Structure of a page

<html>

<head>

</head>

<body>

CONTENT GOES HERE

</body>

</html>

Save file as: [YOURNAME].html

Page 30: PiST/// Workshop

Our advanced HTML page (1)<html>

<head>

</head>

<body>

<a href="#" onclick="ajaxtest(‘E');"><img src="images/name/1.jpg" border="0" /></a>

<a href="#" onclick="ajaxtest(‘N');"><img src="images/name/10.jpg" border="0" /></a>

</body>

</html>

Your name

10 numbered images 10 different links

”E” to ”N”

Page 31: PiST/// Workshop

Our advanced HTML page (2)<html>

<head>

<script language="JavaScript" type="text/JavaScript" src="stayonpage.js"></script>

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">

<META HTTP-EQUIV="Expires" CONTENT="-1">

</head>

<body>

<a href="#" onclick="ajaxtest(‘E');"><img src="images/name/1.jpg" border="0" /></a>

<a href="#" onclick="ajaxtest(‘N');"><img src="images/name/10.jpg" border="0" /></a>

</body>

</html>

To force (most)

browsers to refresh

Script to stay on page

Page 32: PiST/// Workshop

Cheating: Download template

http://bit.ly/nIrU0V

zero

Page 33: PiST/// Workshop

When ready:

• Put the HTML-file and images into a folder

• Name the folder by your (first) name

• Copy it to the USB-stick

• Give the stick to me

• Together we will put it on the server

• We will test it

Page 34: PiST/// Workshop

Running a webserver

Open-source web server

Server-side scripting language+

http://www.apachefriends.org/en/xampp.html

Page 35: PiST/// Workshop

On the webserver

Page 36: PiST/// Workshop

Other ways of controlling orchestra?

Arduino only (no laptop/server):

Random play

Page 37: PiST/// Workshop

Other ways of controlling orchestra?

Arduino only (no laptop/server):

Control using flashlights and light-sensitive

resistors (LDR)

6 x analogue inputs

Page 38: PiST/// Workshop

Other ways of controlling orchestra?

No Arduino (no laptop/server):

Mechanical sequencer (”automata”)

Page 39: PiST/// Workshop

The orchestra

• Set up in PiST/// space

• Connect things

• Publish access-info on signNetwork, username, passwordAddress of the server (IP-number)

• Test it

• Correct errors!

Page 40: PiST/// Workshop

Connecting it all (Can get messy)

All blue connected together (& Arduino & -9V)

All red connected

together and to

to +9V

White (resistor)

connected to one

of white on Arduino

Page 41: PiST/// Workshop

Links

• All material: http://bit.ly/o0TclL

– (lower case ”o”, Zero, Tc, uppercase ”i” and L)

• My email: [email protected]


Recommended