PROYECTO FINAL Aplicaciones con microprocesadores y Microcontroladores UACMBRIJE
PROYECTO FINAL Aplicaciones con microprocesadores y Microcontroladores UACMBRIJE JOSE ALFREDO MARTINEZ PEREZ HECTOR ALONSO JIMENEZ
ARDUINO ES UNA PLATAFORMA DE CREACIÓN DE PROTOTIPOS ELECTRÓNICOS DE CÓDIGO ABIERTO BASADO EN HARDWARE Y SOFTWARE FÁCIL DE USAR, FLEXIBLE. ESTÁ DIRIGIDO A ARTISTAS, DISEÑADORES, AFICIONADOS Y CUALQUIER PERSONA INTERESADA EN LA CREACIÓN DE OBJETOS O ENTORNOS INTERACTIVOS E INGENIEROS
ARDUINO Arduino puede detectar el medio ambiente mediante la recepción de la entrada de una variedad de sensores y puede afectar a sus alrededores por las luces de control, motores, y otros actuadores. El microcontrolador en la placa se programa mediante ellenguaje de programación Arduino y el entorno de desarrollo Arduino. Proyectos Arduino puede ser independiente o se pueden comunicar con el software que se ejecuta en un ordenador (por ejemplo, Flash, Processing, Max. MSP ).
OBJETIVO DESARROLLAR UN ROBOT CON LAS CARACTERIZTICAS DE UN ALEBRIJE CONTROLADO POR LA TARJETA ARDUINO COMPUESTO POR CUATRO DIFERENTES CARACTERIZTICAS NECESARIAS 1. - MOVIMIENTO. - DEBE SER CAPAZ DE TENER ALGUNA ESPECIE DE MOVIMIENTO 2. -LUZ. - DEBE EMITIR ALGUNA LUZ QUE LO ADORNE 3. -SONIDO. - EL ROBOT DEBE EMITIR ALGUN SONIDO CARACTERIZTICO 4. -INTERACTUAR. -EL MAS IMPORTANTE DE LOS PUNTOS, EN BASE A SENSORES DEBE INTERACTUAR DE FORMA AUTONOMA
MOTOR DE CORRIENTE DIRECTA // CONTROL DEL MOTOR DE DC// int motordcpin 1 = 6; int motordcpin 2 = 7; void setup () { pin. Mode(motordcpin 1, OUTPUT); pin. Mode(motordcpin 2, OUTPUT); } void loop () { digital. Write(motordcpin 1, LOW); digital. Write(motordcpin 2, HIGH); }
MOTOR DE PASOS void loop() { for(int i=0; i<=20; i++) /*MOTOR DE PASOS*/ { //paso 1 digital. Write(Motor. Pin 1, HIGH); int Motor. Pin 1=2; digital. Write(Motor. Pin 2, LOW); int Motor. Pin 2=3; digital. Write(Motor. Pin 3, HIGH); int Motor. Pin 3=4; digital. Write(Motor. Pin 4, LOW); int Motor. Pin 4=5; delay(Retardo); //Serial. println(Motor. Pin 1, Motor. Pin 2, Motor. Pin 3); //paso 2 int Retardo=50; digital. Write(Motor. Pin 1, HIGH); digital. Write(Motor. Pin 2, LOW); digital. Write(Motor. Pin 3, LOW); void setup() digital. Write(Motor. Pin 4, HIGH); { delay(Retardo); pin. Mode(Motor. Pin 1, OUTPUT); //paso 3 digital. Write(Motor. Pin 1, LOW); pin. Mode(Motor. Pin 2, OUTPUT); digital. Write(Motor. Pin 2, HIGH); pin. Mode(Motor. Pin 3, OUTPUT); digital. Write(Motor. Pin 3, LOW); pin. Mode(Motor. Pin 4, OUTPUT); digital. Write(Motor. Pin 4, HIGH); Serial. begin(9600); delay(Retardo); } //paso 4 digital. Write(Motor. Pin 1, LOW); digital. Write(Motor. Pin 2, HIGH); digital. Write(Motor. Pin 3, HIGH); digital. Write(Motor. Pin 4, LOW); delay(Retardo); }}
// CONTROL DE LAS LUCES Y EL AUDIO// int luzaudio 1 = 8 int luzaudio 2 = 9 void setup () { pin. Mode(luzaudio 1, OUTPUT); pin. Mode(luzaudio 2, OUTPUT); } void loop () { digital. Write(luzaudio 1, LOW); digital. Write(luzaudio 2, HIGH); } LUZ Y AUDIO
SENSOR PARA INTERACTUAR
MOTOR DE DC CON ENGRANES INCLUIDOS DISPOSITIVO DE LUZ Y SONIDO EN UNO CARACTERIZTICAS DEL ALEBRIJE FUSION DE ELEMENTOS
REALIZACION
UACMBRIJE El pequeño alebrije cariñoso que deja acariciarse aunque no le gusta que le toque su pluma amarilla, la presume y en cuanto siente que se la pueden arruinar huye en busca de refugio tomando como su distracción sus luces y sonido , y caminando lo mas rápido posible.
Conclusiones Los dispositivos creados en relación con algún microcontrolador y con algún microprocesador como lo es Arduino, facilita el sistema de dictado pues es muy amigable casi con cualquier lenguaje, relacionando el hardware con el software de una forma fácil y sencilla, hasta podría decirse divertida. La creación de un robot controlado por Arduino es una forma de emprender y saber manejar cualquier proyecto futuro en el habito laboral de un ingeniero, así es otra forma de enfrentar los desarrollos creativos necesarios en un futuro
- Slides: 12