CASP GPIO Project
This project demonstrates how to convert a Vega Aries-Eco v1.0 board to a data acquisition module that can acquire and control field data and communicate the data to CASP native application running on a PC. Following are features of this project
· This model is developed for Vega Aries-Eco v1.0 microcontroller board and uses either USB serial or ESP01 WiFi module to communicate with host PC.
· Two binary files for the current model (one for communicating with USB serial and other for communicating with ESP01 WiFi module) are available in ‘bin’ folder of this project directory. User can directly use these files to program the board.
· An example on how to connect to the board from python along with pin mapping file is available in ‘python’ folder of this project directory. Please note that CASP Python Libraries are required to be installed before using the example script. Please refer to CASP documentation on how to install these libraries.
· If ESP01 module is used for communication; user should connect the ESP01 module as shown in below figure. Preferably 3.3V supply shall be used to power the board. If the board does not respond (i.e. blue light on the module does not flash), then only user should use 5V supply.

· Pin Mapping
Please note that the python variable names in the below table are in the form of 'Y_Z', where 'Y' indicates type of GPIO such as DI/DO/ADC/PWM/DAC/SERVO etc and 'Z' indicates pin number/name that is either printed on the board or as given in the board documentation.
|
CASP GPIO Name |
Python Variable Name |
Hardware Pin |
Range |
|
DI0-0 |
DI_GPIO4 |
GPIO4 |
- |
|
DI0-1 |
DI_GPIO5 |
GPIO5 |
- |
|
DI0-2 |
DI_GPIO6 |
GPIO6 |
- |
|
DI0-3 |
DI_GPIO7 |
GPIO7 |
- |
|
DI0-4 |
DI_GPIO8 |
GPIO8 |
- |
|
DI0-5 |
DI_GPIO9 |
GPIO9 |
- |
|
DI0-6 |
DI_GPIO10 |
GPIO10 |
- |
|
DO0-0 |
DO_GPIO0 |
GPIO0 |
- |
|
DO0-1 |
DO_GPIO1 |
GPIO1 |
- |
|
DO0-2 |
DO_GPIO2 |
GPIO2 |
- |
|
DO0-3 |
DO_GPIO3 |
GPIO3 |
- |
|
DO0-4 |
DO_LD1_G |
GPIO22 (LD1-G) |
- |
|
DO0-5 |
DO_LD1_B |
GPIO23 (LD1-B) |
- |
|
DO0-6 |
DO_LD1_R |
GPIO24 (LD1-R) |
- |
|
ADC0 |
ADC_A0 |
A0 |
0 to 1000 |
|
ADC1 |
ADC_A1 |
A1 |
0 to 1000 |
|
ADC2 |
ADC_A2 |
A2 |
0 to 1000 |
|
ADC3 |
ADC_A3 |
A3 |
0 to 1000 |
|
PWM0 |
PWM0 |
PWM0 |
0 to 1000 |
|
PWM1 |
PWM1 |
PWM1 |
0 to 1000 |
|
PWM2 |
PWM2 |
PWM2 |
0 to 1000 |
|
PWM3 |
PWM3 |
PWM3 |
0 to 1000 |
|
UDO 0 |
SERVO_PWM4 |
PWM4 (Servo0) |
-90 to +90 |
|
UDO 1 |
SERVO_PWM5 |
PWM5 (Servo1) |
-90 to +90 |
|
UDO 2 |
SERVO_PWM6 |
PWM6 (Servo2) |
-90 to +90 |
|
UDO 3 |
SERVO_PWM7 |
PWM7 (Servo3) |
-90 to +90 |