VoL: On Detailed Design

Page 1

1



LIST OF CONTENTS 01 02 03 04

Introduction Musical Chairs Hungry Bins Digital Access

3


01 4

INTRO DUCTION


Inspired by the IKEA manuals, this volume explores the detailed assembly design of two ideas- Musical Chairs and Hungry Bins. Starting with a toolbox, through a box assembly and specific lines of code, you can get immersed in a set of designs that merge the borders between virtual and real environments. You can find out the exact tools and pieces of electronic devices required for these installations- including specific sensors, cut out templates for the boxes and programmable lines of code. You may consider implementing the same technology into different ideas as well; with an easy, instant access to the Ideas Bank, you can explore what else the technology has to offer.

5


02 6

MUSICAL CHAIRS


Musical chairs but not as you know it! These interactive chairs can tell you jokes, stories and share messages to create unexpected moments of fun. Transporting you to a different environment through sounds, this interactive installation allows a rest on a chair or bench to become a moment of fun and adventure. From the sound of the sea and the beach to a walk through the rainforest, the opportunities for sounds is unlimited! Theme: Mental Health, Gamification, Augmented reality, Public spaces

7


Sheffield, England

AR’ City & Aalfy

Musical chair- assembly

8

HERE WE START


1

2

3

4

5 6

7

8

9

E

10

9

A

B

C

D 11

F

G

H

1 Charging line 2 Bluetooth Wireless Speaker 3 Raspberry Pi 4 Female-female solderless jumper cables 5 Cross screwdriver 6 Hemp rope 7 Portable power 8 Glue 9 PIR Sensor 10 Box: precut board A-H 11 Double-sided sticker


10

2 cm 4cm

6cm


F

B

D

G

A

11

F

Glue

B

D

A

G


15 Min

12


E

13


Raspberry Pi

14 IR Sensor


15

Rotate


16

Female-female solderless jumper cables


H

17

Portable power

C


18


19

STICK!


20

STICK!

Bluetooth Wireless Speaker


21


REQUIRED CODE

import RPi.GPIO as GPIO from time import sleep import os, random import pygame pygame.init() cMusic=0 cSilence=0 STAY_AT_THIS_SONG=0 #oi = pygame.mixer.Sound(“/home/pi/Desktop/ARS/0/scripts/ sounds/oi.wav”) #currently this line does nothing. just for reference how to call a sound file #laugh = pygame.mixer.Sound(“/home/pi/Desktop/ARS/0/scripts/ sounds/laugh.wav”) #currently this line does nothing. just for reference how to call a sound file GPIO.setmode(GPIO.BCM) #preps to communicate with a specific Pi pin that has a wire attached to 22

GPIO.setup(21, GPIO.IN) #connects to the specific Pi pin (GPIO) while True: #keeps the listening going (ir interference) sensor=GPIO.input(21) #this read from the sensor


if sensor==0: cSilence=0 if sensor==0 and STAY_AT_THIS_SONG==0: print(“Someone is Sitting. I should play some music”) randomfile = random.choice(os.listdir(“/home/pi/Desktop/ ARS/0/scripts/sounds/”)) file = ‘/home/pi/Desktop/ARS/0/scripts/sounds/’ + randomfile speech = pygame.mixer.Sound(file) speech.play() print(file) cSilence = 0 cMusic = cMusic + 1 print(“cMusic=”) print(cMusic) print(“cSilence=”) print(cSilence) STAY_AT_THIS_SONG=1 print(“STAY_AT_THIS_SONG=”) print(STAY_AT_THIS_SONG) sleep(1) elif sensor==1 and cMusic>=1: #cMusic=0 cSilence= cSilence + 1 print(“SILENCE”) print(“cMusic=”) print(cMusic) print(“cSilence=”) print(cSilence) if cSilence==20: STAY_AT_THIS_SONG=0 print(“STOP MUSIC”) speech.stop() sleep(1) sleep(0.1)

23


03 24

HUNGRY BINS


Who wouldn’t use street bins if they responded to receiving rubbish?! From a round of applause to a sassy comment, Hungry Bins has something to entertain everyone. Creating a playable city and increasing the use rate of street bins, Hungry Bins can interact with people as a way to raise awareness of environmental issues, encourage recycling and garbage disposal through the use of integrated technology and humour. Theme: Environmental awareness, Recycling, Public spaces

25


Sheffield, England

AR’ City & Aalfy

Hungry bin- assembly

26

HERE WE START


1

2

3

4

5 6

7

8

9

10

E

11

27

A

B

C

D 12

F

G

H

1 Charging line 2 Bluetooth Wireless Speaker 3 Raspberry Pi 4 Female-female solderless jumper cables 5 Cross screwdriver 6 Hemp rope 7 Portable power 8 Glue 9 IR Sensor 10 Sound Sensor 11 Box: Precut board A-H 12 Double-sided sticker


28

2 cm 4cm

6cm


F

B

D

G

A

29

F

Glue

B

D

A

G


15 Min

30


E

31


Raspberry Pi

32

IR Sensor


33

Rotate

Sound Sensor


34

Female-female solderless jumper cables


H

35

Portable power

C


Hemp rope

36


STICK! 37


38

Bluetooth Wireless Speaker


REQUIRED CODE

import RPi.GPIO as GPIO import time from time import sleep import os, random import pygame pygame.init() pygame.mixer.init(500, -16, 2, 512) #GPIO.SETUP channel = 17 GPIO.setmode(GPIO.BCM) GPIO.setup(channel, GPIO.IN) GPIO.setup(21, GPIO.IN) def callback(channel): if GPIO.input(channel): #print(“sound Detected”) randomfile = random.choice(os.listdir(“/home/pi/Desktop/ ARS/0/scripts/sounds/1/”)) file = ‘/home/pi/Desktop/ARS/0/scripts/sounds/1/’ + randomfile speech = pygame.mixer.Sound(file) #speech.play() print(file) #sleep(10) else: print(“Silence”) randomfile = random.choice(os.listdir(“/home/pi/Desktop/ ARS/0/scripts/sounds/1/”)) file = ‘/home/pi/Desktop/ARS/0/scripts/sounds/1/’ + randomfile speech = pygame.mixer.Sound(file) #speech.play() print(file) #sleep(10)

39


GPIO.add_event_detect(channel, GPIO.BOTH, bouncetime=300) #detect high or low GPIO.add_event_callback(channel, callback) #assign function to GPIO PIN, run function on change #infinite loop while True: sensor=GPIO.input(21) #this read from the sensor if sensor==0: print(“Silence”) sleep(0.5)

40

elif sensor==1: print(“I SEE”) randomfile = random.choice(os.listdir(“/home/pi/Desktop/ ARS/0/scripts/sounds/2/”)) file = ‘/home/pi/Desktop/ARS/0/scripts/sounds/2/’ + randomfile speech = pygame.mixer.Sound(file) speech.play() print(file) sleep(5)


41


05 42

DIGITAL ACCESS


The online database on the Aalfy website provides you with additional eleven ideas from college students which you could develop further. Thanks to the established collaboration between Zak and Sheffield Learn, the Ideas Bank will only grow bigger, overflowing with creative thoughts of young people. The additional technologies and designs will have to be developed separately- however, thanks to already established network of professionals, you would be able to get some additional help. We believe that even after the festival, the Ideas Bank will continue to impact all the citizens, establishing Sheffield as a playable city.

43


Sheffield, England

44

AR’ City & Aalfy

Online database


45


46


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.