![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Heading control with pid and magnetometer
Dependencies: HMC5883L mbed motoresDC
Diff: pines.h
- Revision:
- 0:c4c11b0ac1b9
diff -r 000000000000 -r c4c11b0ac1b9 pines.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pines.h Fri Jun 03 03:57:23 2016 +0000 @@ -0,0 +1,28 @@ +#ifdef MAPLE_MINI +// pines para los motores + +// Pines para el driver de motores +#define PWM_L PA_8 // d27 +#define CTRL1_L PB_12 // d31 +#define CTRL2_L PB_13 // d30 +#define PWM_R PA_9 // d26 +#define CTRL1_R PB_14 // d29 +#define CTRL2_R PB_15 // d28 + +// pines para el rf + +#define nrf_CE PA_3 +#define nrf_CSN PA_4 +#define spi_SCK PA_5 +#define spi_MOSI PA_7 +#define spi_MISO PA_6 + +// pines para el puerto serial +#define TX3_PIN PB_10 +#define RX3_PIN PB_11 + + +// pines para bus I2C +#define SDA_PIN PB_7 +#define SCL_PIN PB_6 +#endif \ No newline at end of file