The Prototype Deaf - Space

Page 1


INTRODUCTION










เปรียบเทียบข้อมูลตัวอย่าง**










SITE





DIGITAL INTEGRATION



CONCEPTION



Select Windows PowerShell PS C:\Bangkok University\School Of Architecture\ARC551_Thesis_Preparation\Studio3 \Project_THE PROTOYPE DEAF-SPACE> code .

Visual Studio Code


#include <THESIS> using System; using System.School.Architecture; using System.Deaf.Space; namespace THE PROTOTYPE DEAF-SPACE {}


Visual Studio Code

void technique_to_the_prototype(part[0]); {

}

string name_board1,name_board2,name_sensor,name_code1,name_code2,name_code3,name_algolithm,name_project; name_board1 = “Rassberry Pi4”; { name_board2 = “Arduino”; if (Arduino || Rassberry_pi > 0) { { if else (Grasshopper > 0) name_sensor = “Flexsensor”; Python.png mySensor.write(Flexsensor); { } myProject.write(Protoype); name_code1 = “C#”; if else (Flexsensor > 0) } { name_code2 = “Python”; if else (Prototype > 0) myCode.write(C#); { name_code3 = “Json”; myCode.write(Python); myPresent.write(Final); myCode.write(JSON); } name_algolithm = “Grasshopper”; } else if else (C# || Python || JSON > 0) { name_project = “Prototype”; { myPresent.write(Drop);

myAlgolithm.write(Grasshopper); } C#.png

Rassberry Pi4.png

} }

}

Grasshopper.png

Prototype.png

Flexsensor.png

Arduino.png

Json.png

Press ENTER to continue . . .


Visual Studio Code

void technique_to_the_prototype(part[0]); B O A R D R A S S B E R R Y

Rassberry_Pi_4.png

Rassberry_Pi_Zero.png

string name_board1 = “Arduino”; { switch(Rassberry_Pi) { case “Rassberry_Pi_4” : Micro-controller Clock Speed Flash Memory SRAM break; case “Rassberry_Pi_Zero” : Micro-controller Clock Speed Flash Memory SRAM break; }

= = = =

“BCM2711”; “1.5 GHz”; “SDcard”; “4 GB”;

= = = =

“BCM2835”; “1GHz”; “SDcard”; “512 MB”;

P I

Press ENTER to continue . . .


Visual Studio Code

void technique_to_the_prototype(part[0]); Arduino_UNO.png

B O A R D A R D U I N O

Arduino_Mega_2560.png

Arduino_Nano.png

string name_board2 = “Arduino”; { switch(Arduino_) { case “Arduino_UNO” : Micro-controller Clock Speed Flash Memory SRAM EEPROM break; case “Arduino_Mega_2560” : Micro-controller Clock Speed Flash Memory SRAM EEPROM break; case “Arduino_Nano” : Micro-controller Clock Speed Flash Memory SRAM EEPROM break; }

= = = = =

“ATmega328”; “16 MHz”; “32 KB”; “2 KB”; “1 KB”;

= = = = =

“ATmega2560”; “16 MHz”; “256 KB”; “8 KB”; “4 KB”;

= = = = =

“ATmega328”; “16 MHz”; “32 KB”; “2 KB”; “1 KB”;

Press ENTER to continue . . .


Visual Studio Code

void cast_study_kinetic_architecture1(part[1]);

{{}}


Visual Studio Code

void cast_study_kinetic_architecture1 (part[1]); { string kinetic_architecture = “Al Bahr Towers”; string year = “2009-2012”; string location = “Abu Dhabi,United Arab Emirates”; } Al_Bahr_Towers1.png

Al_Bahr_Towers2.png


Visual Studio Code

void cast_study_kinetic_architecture2(part[2]);

{{}}


Visual Studio Code

void cast_study_kinetic_architecture2 (part[2]); { string kinetic_architecture = “Dynamic Facade”; string year = “2005-2007”; string location = “Bad Gleichenberg Austria”; }

Al_Bahr_Towers.png

Al_Bahr_Towers.png


Visual Studio Code

void cast_study_code_arduino_flexsensor1(part[4]);

{{}}


Visual Studio Code

void cast_study_code_arduino_flexsensor1 (part[4]); { string board = “Arduino_Mega_2560”; }

Arduino_Mega_2560.png

Flexsensor.png

Arduino.png


Visual Studio Code

void cast_study_code_arduino_flexsensor1 (part[4]); { string board = “Arduino_Mega_2560”; }

Arduino_Mega_2560.png


Visual Studio Code

void cast_study_code_arduino_flexsensor1 (part[4]); { string board = “Arduino_Mega_2560”; }

Arduino_Mega_2560.png


Visual Studio Code

void cast_study_code_arduino_flexsensor1 (part[4]); #include <Servo.h> const int flexPin = A0; const int ledPin = 7; void setup() { Serial.begin(9600); pinMode(ledPin,OUTPUT); } void loop() { int flexValue; flexValue = analogRead(flexPin); Serial.print("sensor: "); Serial.println(flexValue);

Servo myServo; const int flexPin = A0; void setup() { myServo.attach(11); }

void loop() { int flexValue; int servoPosition; flexValue = analogRead(flexPin);

if(flexValue>890) digitalWrite(ledPin,HIGH); else digitalWrite(ledPin,LOW);

servoPosition = map(flexValue, 800, 900, 0, 180); servoPosition = constrain(servoPosition, 0, 180); myServo.write(servoPosition);

delay(20); delay(20);

} }


Visual Studio Code

void cast_study_code_arduino_flexsensor2(part[5]);

{{}}


Visual Studio Code

void cast_study_code_arduino_flexsensor2 (part[5]); { string board = “Arduino_Mega_2560�; } Arduino_Mega_2560_Connect_1.png

//Receiver Code (Hand) - Mert Arduino and Tech #include <Servo.h> #include <SPI.h> #include "RF24.h"

//the library which helps us to control the servo motor //the communication interface with the modem //the library which helps us to control the radio modem

//define the servo name Servo myServo1; Servo myServo3; Servo myServo4; Servo myServo2; Servo myServo5; RF24 radio(9,10);

/*This object represents a modem connected to the Arduino. Arguments 9 and 10 are a digital pin numbers to which signals CE and CSN are connected.*/

const uint64_t pipe = 0xE8E8F0F0E1LL; //the address of the modem,that will receive data from the Arduino.

int msg[5]; void setup(){ //define the servo input pins myServo1.attach(15); //A1 myServo2.attach(16); //A2 myServo3.attach(17); //A3 myServo4.attach(18); //A4 myServo5.attach(19); //A5 radio.begin(); //it activates the modem. radio.openReadingPipe(1, pipe); //determines the address of our modem which receive data. radio.startListening(); //enable receiving data via modem }

void loop(){ if(radio.available()){ bool done = false; while (!done){ done = radio.read(msg, sizeof(msg)); myServo1.write(msg[2]); myServo2.write(msg[4]); myServo3.write(msg[3]); myServo4.write(msg[1]); myServo5.write(msg[0]); }

} }

//A1 //A2 //A3 //A4 //A5


Visual Studio Code

void cast_study_code_arduino_flexsensor2 (part[5]); { string board = “Arduino_Mega_2560�; }

//Transmitter Code (Glove) - Mert Arduino and Tech #include <SPI.h> #include "RF24.h"

Arduino_Mega_2560_Connect_2.png

//the communication interface with the modem //the library which helps us to control the radio modem

int msg[5]; //Total number of data to be sent (data package) //define the flex sensor input pins int flex_5 = A5; int flex_4 = A4; int flex_3 = A3; int flex_2 = A2; int flex_1 = A1; //define variables for flex sensor values int flex_5_val; int flex_4_val; int flex_3_val; int flex_2_val; int flex_1_val; RF24 radio(9,10);

//9 and 10 are a digital pin numbers to which signals CE and CSN are connected.

const uint64_t pipe = 0xE8E8F0F0E1LL; //the address of the modem, that will receive data from Arduino.

void setup(void){ Serial.begin(9600); radio.begin(); //it activates the modem. radio.openWritingPipe(pipe); //sets the address of the receiver to which the program will send data. } void loop(void){ flex_5_val = analogRead(flex_5); flex_5_val = map(flex_5_val, 630, 730, 80, 20); flex_4_val = analogRead(flex_4); flex_4_val = map(flex_4_val, 520, 710, 70, 175);

flex_3_val = analogRead(flex_3); flex_3_val = map(flex_3_val, 510, 680, 140, 10); flex_2_val = analogRead(flex_2); flex_2_val = map(flex_2_val, 580, 715, 90, 175); flex_1_val = analogRead(flex_1); flex_1_val = map(flex_1_val, 550, 700, 90, 175); msg[0] = flex_5_val; msg[1] = flex_4_val; msg[2] = flex_3_val; msg[3] = flex_2_val; msg[4] = flex_1_val; radio.write(msg, sizeof(msg)); }


Visual Studio Code

void python_>_json_rpi(part[6]);

{{}}


Visual Studio Code

void python_>_json_rpi (part[6]); import tkinter as tk import time import firebase_admin from firebase_admin import credentials from firebase_admin import db

# Fetch the service account key JSON file contents cred = credentials.Certificate('./coordinates-fc03c-firebase-adminsdk-kelo7-d1cd3045cc.json') # Initialize the app with a service account, granting admin privileges firebase_admin.initialize_app(cred, { 'databaseURL': 'https://coordinates-fc03c.firebaseio.com/' }) ref = db.reference('coordinates')

root = tk.Tk() root.title('Touch to FB') root.geometry('600x400') def motion(event): x,y = event.x,event.y ref.push({ 'x': x, 'y': y, }) print('{},{}'.format(x,y)) time.sleep(0.01) root.bind('<Motion>',motion) root.mainloop()


Visual Studio Code

void python_>_json_rpi (part[6]); { string web = “Firebase”; }

Firebase_1.png

Firebase_2.png


Visual Studio Code

void python_>_json_rpi (part[6]); { string grasshopper_1 = “Firehopper”; string grasshopper_2 = “ghJSON”; } Firehopper.png

ghJSON.png


Visual Studio Code

void json_>_python_gh_rpi (part[7]);

{{}}


Visual Studio Code

void json_>_python_gh_rpi (part[7]); { string web = “JSON”; }


Visual Studio Code

void concept_development1 (part[8]);

{{}}


Visual Studio Code

void concept_development2 (part[9]); { string Concept_2 = “THE PROTOTYPE DEAF-SPACE”; }

ลายไทย //แม่ลายดอกประจายาม


Visual Studio Code

void design_with_gh_development1 (part[10]);

{{}}


Visual Studio Code

void design_with_gh_development1 (part[10]); { string concept =“Eyeview Deaf-Space Prototype�; }


Visual Studio Code

void design_with_gh_development2 (part[11]);

{{}}


Visual Studio Code

void design_with_gh_development2 (part[11]); { string concept =“Eyeview Deaf-Space Prototype�; }


Visual Studio Code

void design_with_gh_development3 (part[12]);

{{}}


Visual Studio Code

void design_with_gh_development3 (part[12]); { string concept =“THE PROTOTYPE DEAF-SPACE”; }


Visual Studio Code

void code_c#_python1 (part[14]);

{{}} CODE C# PYTHON 1


Visual Studio Code

void code_c#_python1 (part[14]); Component.Message = "PAT THAITHAM"; Component.NickName = "SOLUTION"; Component.Name = "PAT LNW"; //Create Vector3d To Point3d Vector3d[] vt = new Vector3d[8]; vt[0] = new Vector3d(x, y, z); vt[1] = new Vector3d(x + x1, y + y1, z); vt[2] = new Vector3d(x + x1 + x2, y + y1, z); vt[3] = new Vector3d(x + x1 + x2 + x3, y, z); vt[4] = new Vector3d(x + x1 + x2, y - y1, z); vt[5] = new Vector3d(x + x1, y - y1, z); vt[6] = new Vector3d(x + x1 + x2, y - y1 - y2, z); vt[7] = new Vector3d(x + x1, y - y1 - y2, z);

//Create Point3d Point3d[] pt = new Point3d[8]; pt[0] = new Point3d(vt[0]); pt[1] = new Point3d(vt[1]); pt[2] = new Point3d(vt[2]); pt[3] = new Point3d(vt[3]); pt[4] = new Point3d(vt[4]); pt[5] = new Point3d(vt[5]); pt[6] = new Point3d(vt[6]); pt[7] = new Point3d(vt[7]);

//Create ist Point3d group1 var pts = new List<Point3d>(); { pts.Add(pt[0]); pts.Add(pt[1]); pts.Add(pt[2]); pts.Add(pt[3]); pts.Add(pt[4]); pts.Add(pt[5]); }

//Create ist Point3d group2 var pts1 = new List<Point3d>(); { pts1.Add(pt[0]); pts1.Add(pt[5]); pts1.Add(pt[4]); pts1.Add(pt[3]); pts1.Add(pt[6]); pts1.Add(pt[7]); } //Crearte NurbsCurve Line int degree; degree = 1; NurbsCurve nc1 = NurbsCurve.Create(true, degree, pts); NurbsCurve nc2 = NurbsCurve.Create(true, degree, pts1); A = nc1; B = nc2;}1


Visual Studio Code

void code_c#_python2 (part[15]);

{{}} CODE C# PYTHON 1


Visual Studio Code

void code_c#_python2 (part[15]);

import rhinoscriptsyntax as rs a = x.split('\n')

A B C D E

= = = = =

x1; x2; x3; x4; x5;




















210.00

10.00 10.00 10.00 10.00 10.00 10.00

110.00

10.00

10.00

10.00

10.00

10.00

15.00

15.00

15.00

15.00

15.00

15.00

15.00

15.00

15.00

15.00

15.00

15.00

15.00

15.00














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.