Sad Box

In Future City, due to the flexible and transformative nature of the space, areas are in close contact with each other, which sometimes can become problematic when using a single space for different activities. That is, when adjacent to the workplace of the laboratory where the focus is needed, other team members form a meeting, keeping in mind the loudness of the meeting becomes crucial. The Future City Lab team designed and implemented the “Sad Box” to solve this problem. This box helps (reminds) the meeting members to keep their volume at optimum levels so as not to disturb other activities.

دیاگرام فضای لابراتوار

How does Sad Box work?

Sad box has a sound sensor. When the volume goes above the expectation’s limit, it expresses its sadness.
process FCIL
There is a microcontroller inside the sad box that adjusts the timing of the sound sensor and the light.
inside sadbox FCIL
sad box min

Items

tools IV FCIL
tools III FCIL

Laser Cut (MDF 5M)

MDF 5m II

To download the file, click here.

The Sad Box's Code

//DESIGN BY E.LAB. , FUTURE CITY INNOVATION LABRATORY

//Arduino UNO + RTC DS-3231 + LM393 Sound Detection Sensor + 5V One Channel Relay Module

//download rtclib by adafruit from Manage Library under Tools menu

#include “RTClib.h” 

const int relayPin = 10;

const int soundPin = 7;

RTC_DS3231 rtc;

int soundVal = 0;

int lightON = 0;//light status

void setup ()

{

Serial.begin(9600);

pinMode(relayPin, OUTPUT);

pinMode(soundPin, INPUT);

digitalWrite(relayPin, LOW);

if (! rtc.begin()) 

{

Serial.println(“Couldn’t find RTC”);

while (1);

}

if (rtc.lostPower()) 

{

Serial.println(“RTC lost power, lets set the time!”);

rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));

}

}

 

void loop ()

{

DateTime now = rtc.now();

soundVal = digitalRead(soundPin);

if( 8<=now.hour() and now.hour()<18 )

{

if (soundVal == LOW)

{

digitalWrite(relayPin, LOW);

}

else

{

digitalWrite(relayPin, HIGH);

delay(1000);

}

}

else

{

digitalWrite(relayPin, LOW);

}

}

To download the code, click here.