This example demonstrates how to monitor various on-board sensors data from Aries IoT v1.0 board and also control the on-board buzzer and some GPIOs from the host PC through WiFi. Aries ioT board is a versatile micro-controller development board with rich set of peripherals such as
- WiFi module
- Digital Proximity, Ambient Light, RGB and Gesture Sensor
- 6 Axis Digital Accelerometer, Gyroscope Sensor
- Gas, Humidity, Pressure, Temperature Sensor
- Thermistor Potentiometer
- Piezoelectric Buzzer
CASP model that runs on the Aries board consists of blocks corresponding to all the above peripherals. The data is acquired from these peripherals and send via on-board WiFi to the host PC. The model also consists a logic to vary the brightness of the on-board tri-color LED to replicate the color sensed by the on-board color sensor. The model that runs on host PC consists of plots and display blocks to display the data send from the board.
Target
Vega Aries IoT v1.0 development board is used as the target in this example.
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/04_casp_sensor_server’. These are also available for download at this link.
Connection Diagram & Model

Procedure
- Connect the target board to the host PC via a USB cable. The host PC should have a WiFi adapter.
- The WiFI101 block in the ‘target_model’ is configured as ‘Access Point’ mode with IP address 10.10.0.1. As such, after the board is programmed the on-board tri-color LED should glow with low brightness indicating that the board is ready to communicate.
- Note the serial port number to which the board is connected to the host PC, from the host operating system.
- Open Home->Simulation->Setup Simulation Parameters menu item. Under TargetHW->General tabs set ‘Target Programmer Port’ parameter to the serial port to which the board is connected.
- Build the model and program the board by clicking on Run button.
- Connect the host PC to the boards WiFi access point. The access point will appear with SSID ‘aries_iot’ and password ‘0000000000’.
- After the WiFi connection is established run another instance of CASP on the host PC and load the ‘native_model’ project.
- Click on Home->Simulation->Configure Simulation IO menu item. ‘Configure Simulation Hardware’ window will open. Click on ‘Connect Device’ button to connect to the board as shown in below figure. After the connection is established check the ‘Online Data’ option to start communicating with board with cycle times around 80 msec as shown in below figure.

- Run the model by clicking on the Run button. A simulation panel window should open and communicate with the board. A screen shot of the simulation panel window is shown below.
