Can Opener - ME 507
pins.h
Go to the documentation of this file.
1 
8 #ifndef PINS_H
9 #define PINS_H
10 
14 // DC Motor 1
15 #define DC1a PA8 //TIM1
16 #define DC1b PA9
17 #define DCEN1 PA13
18 
19 // DC Motor 2
20 #define DC2a PA10 //TIM1
21 #define DC2b PA11
22 #define DCEN2 PA14
23 
24 // DC Motor 3
25 #define DC3a PA5 //TIM2
26 #define DC3b PB3
27 #define DCEN3 PC13
28 
29 // DC Motor 4
30 #define DC4a PB10 //TIM2
31 #define DC4b PB11
32 #define DCEN4 PC14
33 
34 // Stepper Motor 1
35 #define STEP1a PB4 //TIM3
36 #define STEP1b PB5
37 #define STEP1c PB0
38 #define STEP1d PB1
39 #define STEP1EN PC15
40 
41 // Limit Switches
42 #define INLIM1 PC4
43 #define INLIM2 PC5
44 #define INLIM3 PC12
45 
46 // Encoders
47 #define ENC1a PB6 //TIM4
48 #define ENC1b PB7
49 #define ENC1TIM TIM4
50 #define ENC2a PA0 //TIM5
51 #define ENC2b PA1
52 #define ENC2TIM TIM5
53 
54 // Reflective Sensor
55 #define OUT_REFL PC10
56 #define IN_REFL PA4
57 
58 #endif