Está en la página 1de 3

QUINTO AVANCE

DESARROLLO DE TÚNEL DE VIENTO


VERTICAL
DESARROLLO Y OPERACIÓN DE LA
INTERFAZ DE USUARIO
Neyber Andrés Ocoro Chala, Juan Camilo Brito Andrade, Luis Fernando Zuñiga Garzon.
Tecnologia mecatrônica – eletrônica
Institución Universitaria Antonio José Camacho
Neyberocoro@gmail.com , juancamilobritoandrade@gmail.com , luiszugarzon975@gmail.com
Abstract— In this fifth advance of the integrating import processing.serial.*;
project we will present the modeling and testing of
the user interface for our wind tunnel
Serial myPort;
INTRODUCCIÓN String inString;
float temp, temperatura=0;
En este quinto avance del proyecto integrador daremos PImage fondo;
a conocer el modelamiento y prueba de la interfaz de
usuario para nuestro túnel de viento

MARCO TEÓRICO

OBJETIVO

• Implementar la interfaz de usuario usando


aplicaciones libres para el diseño de interfaces (se
recomienda usar el software Processing).

Como interfaz designamos, en informática, la conexión


física y funcional que se establece entre dos aparatos, PImage fondo2;
dispositivos o sistemas que funcionan int altura;
independientemente uno del otro. En este sentido, int Color1, Color2, Color3;
la comunicación entre un ser humano y una
//////////////////////
computadora se realiza por Medio de una interfaz
int green=100;
int RED=100;

boolean status=false; //Estado del color de rect


String texto="LED OFF";//Texto del status inicial
del LED

Nuestra interfaz está diseñada para que nos muestre el


botón de encender y también el botón de apagado. void setup() {
size(800, 600);
También tenemos como ver a qué nivel está el pistón
dentro del cilindro a medida que vamos incrementando fondo = loadImage("Termometro.jpg");
fondo2 = loadImage("UNIAJC.jpg");
o disminuyendo el caudal de viento.
myPort = new Serial(this, "COM5", 9600);
myPort.bufferUntil('\n'); //'\n' salto de carro o
enter, ln'
}

void draw() {
background(#00D7FF); //COLOR INTERFAZ
image(fondo, 400, 10);
textSize(32);
//////////////////////
image(fondo2, 0, 432);
textSize(22);
fill(#4D020B);
text("NEYBER OCORO", 120, 460);
text("LUIS ZUÑIGA", 120, 510);
text("JUAN BRITO", 120, 560);
Codigo textSize(30);//TAMAÑO LETRA TITULO
fill(0);
smooth();
fill(#F50C28);
text("C", 720, 110);//letras laterales
text("0", 720, 140); Conclusiones
text("N", 720, 170);
text("T", 720, 200); El primer problema era principio el ventilador
text("R", 720, 230); empezaba a variar después que poníamos nuestro
text("O", 720, 260); potenciómetro casi a un 60%, todo se daba porque la
text("L", 724, 290); resistencia que poseía era muy grande
text("D", 720, 360);
text("E", 720, 390); El otro problema fue a la hora de diseñar que el
programa Eagle no tenía todos los elementos que
text("P", 724, 440); necesitábamos
text("I", 724, 470);
text("S", 723, 500);
text("T", 720, 530);
text("O", 720, 560);
text("N", 720, 590);//fianl laterales

text("PROYECTO INTEGRADOR G-501", 150,


30);
textSize(34);

fill(0);
text("OFF", 90, 260);
fill(#FA0824);
rect(20, 220, 60, 60);///LOS LED

fill(0);
text("ON", 90, 140);
textSize(10);//TAMAÑO LETRA TITULO
fill(#00AD0C);
rect(20, 100, 60, 60);////VERDE
fill(0);
temperatura=(temp*500.0)/1023.0; //6 digitos
decimales
String sf3 = nf(temperatura, 0, 2);
//text("Temperatura LM35: " + sf3 + " ºC",
200,180);
/////////////////////////////////in//fi/// //
altura = (int) map(temperatura, 50, 208, 408,
altura);
println(altura);//LO QUE SUBE
stroke(#05F52A);//COLOR LINEA
strokeWeight(16);//GROSOR DE LA LINEA
line(663, 550, 663, altura);

strokeWeight(1);
stroke(0);

void serialEvent(Serial myPort) {


inString = myPort.readString();
temp=float(inString);
}

También podría gustarte