-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsac2020_main_pins.h
More file actions
76 lines (68 loc) · 1.73 KB
/
sac2020_main_pins.h
File metadata and controls
76 lines (68 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/**
* [ANOTHER FINE PRODUCT FROM THE NONSENSE FACTORY]
*
* Flight software for the Longhorn Rocketry Association's Spaceport America
* Cup 2020 rocket. Built for the LRA Generation 2 flight computer, which also
* flies in LRA's NASA Student Launch 2020 rocket. The configurability of the
* software--combined with modularity and all-in-one-package style of the
* Generation 2 flight computer--means the software can be easily adapted to run
* in any high-power rocket.
*
* @file sac2020_main_pins.h
* @purpose Pinouts for the main flight computer node.
* @author Stefan deBruyn
* @updated 2/23/2020
*/
#ifndef SAC2020_MAIN_PINS_H
#define SAC2020_MAIN_PINS_H
/**
* BNO055 IMU.
*/
#define PIN_BNO055_RESET 2
#define PIN_BNO055_ADDR 3
#define PIN_BNO055_INTR 16
/**
* Canard fin servos.
*/
#define PIN_SERVO1_PWM 8
#define PIN_SERVO2_PWM 36
#define PIN_SERVO3_PWM 26
#define PIN_SERVO4_PWM 27
#define PIN_SERVO5_PWM 38
#define PIN_SERVO6_PWM 39
#define PIN_SERVO7_PWM 14
#define PIN_SERVO8_PWM 32
/**
* Fault LEDs.
*/
#define PIN_LED_SYS_FAULT 9
#define PIN_LED_IMU_FAULT 10
#define PIN_LED_BLE_FAULT 13
#define PIN_LED_PYRO2_FAULT 12
#define PIN_LED_PYRO1_FAULT 17
#define PIN_LED_FNW_FAULT 20
#define PIN_LED_BARO_FAULT 21
/**
* Bluetooth module.
*/
#define PIN_BLE_RTS 6
#define PIN_BLE_CTS 14
#define PIN_BLE_MOD 22
#define PIN_BLE_DFU 23
/**
* Continuity checking.
*/
#define PIN_CONT_ENABLE 24
#define PIN_CONT_POWER -1
#define PIN_CONT_PYRO1_CHK 15
#define PIN_CONT_PYRO2_CHK 16
#define PIN_CONT_PYRO3_CHK 17
#define PIN_CONT_PYRO4_CHK 20
#define PIN_CONT_PYRO5_CHK 21
#define PIN_CONT_PYRO6_CHK 22
/**
* Miscellaneous.
*/
#define PIN_LLC_OUT_ENABLE 11
#define PIN_BUZZER 33
#endif