This example project demonstrates how to monitor and control analog & digital inputs and outputs of Vega Aries development board from a Web browser through WiFi using CASP.
Target
Aries v2.0 development board is used in this project. However, any supported micro-controller board can be used. ESP8266 WiFi module is used with the micro-controller board to enable wireless connectivity.
Pre-Requisites
- CASP software is installed on the host PC
- Vega Aries BSP is installed.
- The project files are located at CASP installed directory ‘CASP/support/examples/vega_aries_examples/iot/02_http_server’. These are also available for download at this link.
Connection Diagram & Model
Connect the circuit as shown below. Connect any sensor to the ADC pin A0 & A1 of the target board for sensing. We use the on-board LEDs and a PWM output for controlling. Connect any DC motor through a suitable driver circuit (not shown the figure) to the PWM0 output of the board.

Procedure
- Connect the peripherals as shown in above connection diagram and connect the target board to the host PC.
- Launch CASP and open the downloaded project.
- Click ‘Setup Simulation’ to open a dialog box.
- Select ‘Target Programmer’ to ‘Programmer0’ to upload the program to RAM or ‘Programmer1’ to upload the program to flash memory of the target board.
- Set the ‘Target Programmer Port’ to which the board is connected.
- Save and Close the dialog box.
- Click Run button to build and program the board.
- The ESP8266 block WiFi in the target model is set to Access Point mode with SSID: esp8266_ap and SSID Password: 0000000000. User may need to connect the remote monitoring device such as a computer or a mobile phone to this network before continuing.
- After successfully establishing WiFi connection with the target, open a web browser, preferably Mozilla Firefox or Google Chrome on the device. Type the IP address 10.10.0.1 in the web browser. A page as shown in below animation should open up and start automatically updating itself at certain time intervals.
- To control a digital or analog output, first turn off the auto refresh by clicking on ‘Auto Refresh OFF’ and then enter the output tag and value to control it as shown in below animation. Turn auto refresh back ON to auto update the digital and analog inputs.

