CASP GPIO Project

 

Download Project

 

This project demonstrates how to convert a given target hardware 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 Arduino 8-bit microcontroller boards. User can modify the model for other boards supported by CASP with more IOs added.

·       This model uses USB serial port to communicate with host PC. Other communication options such as Ethernet and Wifi can be used with suitable hardware added to the board and by using corresponding block in place of ‘Serial’ in the model.

·       The current model was compiled for Arduino Uno, Nano, and Leonardo Boards. Respective Hex files are available in pre-built folder in this project directory. User can directly use this hex files to program the boards.

·       Pin Mapping for Arduino Uno, Nano, and Leonardo Boards are as under.

CASP End Point Name: GPIO_EP

CASP GPIO Name

Hardware Pin

Range

DI0-0

2

-

DI0-1

4

-

DI0-2

7

-

DI0-3

8

-

DI0-4

12

-

DO0-0

A3

-

DO0-1

A4

-

DO0-2

A5

-

DO0-3

13

-

ADC0

A0

0.0 to 1.0

ADC1

A1

0.0 to 1.0

ADC2

A2

0.0 to 1.0

PWM0

3

0.0 to 1.0

PWM1

5

0.0 to 1.0

PWM2

6

0.0 to 1.0

PWM3

9

0.0 to 1.0

UDO0

10 (Servo0)

-90.0 to +90.0

UDO1

11 (Servo1)

-90.0 to +90.0