![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Realizamos una PCB para integrar los driver de los motores y el circuito de la matriz 8x8, trabajando ademas el núcleo STM32 f446re
Diff: vision.h
- Revision:
- 0:8180a93bf2dc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vision.h Fri Jun 09 18:05:53 2017 +0000 @@ -0,0 +1,49 @@ + + + + +DigitalOut _A0(PA_9); // pines motor paso a paso +DigitalOut _A1(PC_7); +DigitalOut _A2(PB_6); +DigitalOut _A3(PA_7 ); +DigitalOut _A4(PB_8); // pines motor paso a paso +DigitalOut _A5(PB_9); +DigitalOut _A6(PA_5); +DigitalOut _A7(PA_6); + + +PwmOut mipwm(PA_0); // pin servomotor1 +PwmOut mipwm2(PA_1);// pin servomotor2 +PwmOut mipwm3(PB_0);// pin servomotor3 + +Serial command(USBTX, USBRX); // definicion serial + +Max7219 pantalla(PB_15, PB_14, PB_13, PB_12); //pines matriz + + +DigitalOut led(LED1); // pin led1 + + + + +void stepper(uint8_t num_steps, uint8_t direction); // funcion que define el numero de pasos +void clockwise() ; // funcion para giro en sentido horario + +void anticlockwise(); // funcion para giro en sentido antihorario +void Print_pantalla_tabla(unsigned char *pValor); //funcion imprimir imagen en la matriz + +unsigned char clear[]= {0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}; // limpiar matriz +unsigned char m1up[]= {0x00,0x04,0x06,0x27,0xf7,0x06,0x04,0x00}; //secuencia 1 +unsigned char m1left[]= {0x04,0x0e,0x1f,0x00,0x00,0x20,0xf0,0x00}; //secuencia 2 +unsigned char m1right[]= {0x00,0x20,0xf0,0x00,0x00,0x1f,0x0e,0x04}; //secuencia 3 +unsigned char m2up[]= {0x00,0x04,0x06,0xf7,0x07,0xf6,0x04,0x00}; //secuencia 4 +unsigned char m2left[]= {0x04,0x0e,0x1f,0x00,0xf0,0x00,0xf0,0x00}; //secuencia 5 +unsigned char m2right[]= {0x00,0xf0,0x00,0xf0,0x00,0x1f,0x0e,0x04}; //secuencia 6 +unsigned char m3up[]= {0x00,0x04,0xf6,0x07,0xf7,0x06,0xf4,0x00}; //secuencia 7 +unsigned char m3left[]= {0x04,0x0e,0x1f,0xf0,0x00,0xf0,0x00,0xf0}; //secuencia 8 +unsigned char m3right[]= {0xf0,0x00,0xf0,0x00,0xf0,0x1f,0x0e,0x04}; //secuencia 9 +unsigned char m4up[]= {0x00,0x04,0x06,0x77,0x47,0xf6,0x04,0x00}; //secuencia 10 +unsigned char m4left[]= {0x04,0x0e,0x1f,0x00,0x70,0x40,0xf0,0x00}; //secuencia 11 +unsigned char m4right[]= {0x00,0x70,0x40,0xf0,0x00,0x1f,0x0e,0x04}; //secuencia 12 + +