37 lines
714 B
C
37 lines
714 B
C
|
#ifndef DEFINITION_H_
|
||
|
#define DEFINITION_H_
|
||
|
|
||
|
//Vacuum Pressure Sensor: HX710B
|
||
|
#define PIN_PRESSURE1_OUT 20
|
||
|
#define PIN_PRESSURE2_OUT 21
|
||
|
#define PIN_PRESSURE3_OUT 22
|
||
|
#define PIN_PRESSURE_SCK 15
|
||
|
|
||
|
#define PIN_INPUTARM1 0
|
||
|
#define PIN_INPUTARM2 1
|
||
|
#define PIN_INPUTARM3 2
|
||
|
#define PIN_INPUTAUX 3
|
||
|
|
||
|
//Pins Connected to ULN2803
|
||
|
#define PIN_OUT1 19 //Digital
|
||
|
#define PIN_OUT2 18 //Digital
|
||
|
#define PIN_OUT3 17 //Digital
|
||
|
#define PIN_OUT4 16 //Digital
|
||
|
#define PIN_OUT5 6 //PWM
|
||
|
#define PIN_OUT6 7 //PWM
|
||
|
#define PIN_OUT7 8 //PWM
|
||
|
#define PIN_OUT8 9 //PWM
|
||
|
|
||
|
#define PIN_BUTTON 23
|
||
|
|
||
|
#define PIN_PUMP1 PIN_OUT5
|
||
|
#define PIN_PUMP2 PIN_OUT7
|
||
|
|
||
|
#define PIN_VALVE1 PIN_OUT1
|
||
|
#define PIN_VALVE2 PIN_OUT3
|
||
|
|
||
|
#define PIN_VIBRATION PIN_OUT2
|
||
|
|
||
|
|
||
|
|
||
|
#endif
|