This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Dual Stepper Motor Control (Arduino UNO R3) | |
Controls the speed and direction of two stepper motors | |
via two analog inputs. Used to achieve two-dimensional | |
movement controlled by a joystick. End-of-track sensors | |
prevent damage to the structure and motors. | |
Based on "Speed Control" example of the Stepper lib. | |
Please note the Stepper library produces a bipolar sequence. | |
By swapping the two middle cables, a unipolar seq. is obtained. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;Contador de numeros primos | |
;Jose Eduardo Rivas Melgar RM100161 | |
;David Antonio Escobar Contreras EC100119 | |
;脕ngel Gerardo Moreno Gal谩n MG070209 | |
;El contador de numeros primos permite iterar sobre los numeros primos menores | |
;que 100 usando dos pushbuttons, uno para moverse de forma ascendente y otro | |
;para descendente. El resultado se muestra en dos displays de 7 segmentos | |
;multiplexados. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;Contador de personas en una habitaci贸n | |
;Jos茅 Eduardo Rivas Melgar RM100161 | |
;David Antonio Escobar Contreras EC100119 | |
;Angel Gerardo Moreno Galan MG070209 | |
;El contador de personas incrementa un contador cada vez que una persona entra | |
;a la habitaci贸n, y lo decrementa cuando una sale. El numero de personas se | |
;muestra en todo momento en dos displays a trav茅s del puerto D. Se usan dos | |
;sensores, uno de entrada y otro de salida, para saber cuando una persona ha | |
;pasado por la entrada o salida. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;Control de teclado matricial 4x4 | |
;Jos茅 Eduardo Rivas Melgar RM100161 | |
;David Antonio Escobar Contreras EC100119 | |
;Angel Gerardo Moreno Galan MG070209 | |
;Escanea un teclado matricial de 4x4 y muestra la ultima teclada presionada | |
;en base 16 en un display de 7 segmentos. | |
title "Control de teclado matricial" | |
list p=18f4550 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*Cifrado de bloques de memoria | |
Jos茅 Eduardo Rivas Melgar RM100161 | |
David Antonio Escobar Contreras EC100119 | |
脕ngel Gerardo Moreno Gal谩n MG070209 | |
Encripta 256 localidades de memoria con rotaci贸n y XOR contra un n煤mero primo al azar. | |
*/ | |
#include "stdlib.h" | |
#include "stdio.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*Cifrado de bloques de memoria | |
Jos茅 Eduardo Rivas Melgar RM100161 | |
Carlos Ernesto Linares Zelada ZR090636 | |
Encripta 256 localidades de memoria con rotaci贸n y XOR contra un n煤mero primo al azar. | |
*/ | |
#include "stdlib.h" | |
#include "stdio.h" | |
#include "p18f4550.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Cron贸metro con centi-segundos | |
//Genera una frecuencia de 100 Hz, cada 100 pasos se cuenta 1 segundo | |
//El resultado se muestra en vivo en una LCD | |
//Eduardo Rivas, Carlos Zelada | |
#include <p18f4550.h> //Cabecera de N煤cleo | |
#include <xc.h> | |
#include <delays.h> | |
#include <stdlib.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Reloj digital configurable con dos alarmas | |
// Muestra la hora en minutos, segundos, horas e indicador am/pm en una LCD | |
// Cuenta con tres botones: selector de modo, ajuste de minutos y de segundos | |
// La alarma se activa por un minuto y no se puede desactivar | |
// 脕ngel Moreno | |
// David Escobar | |
// Eduardo Rivas | |
#include "p18f4550.h" | |
#include "xc.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Archivo de cabecera para configuraci贸n y uso de m贸dulo LCD | |
//con el PIC18F4550 en el puerto D y E. | |
#include "p18f4550.h" //Cabecera de N煤cleo | |
#include "xc.h" | |
#include "delays.h" | |
#include "stdlib.h" | |
//Prototipos de las funciones | |
void LCD_Retardo_Corto(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef __DELAYS_H | |
#define __DELAYS_H | |
#if defined (__18CXX) || defined(_PLIB) | |
/* C18 cycle-count delay routines. */ | |
/* Delay of exactly 1 Tcy */ | |
#define Delay1TCY() _delay(1) |
OlderNewer