Tutorial on Connecting CC3200 to Cloud
15 June 2018
The SimpleLink™ Wi-Fi® CC3200 LaunchPad™ development kit (with QFN-packaged device) is an evaluation development platform for the CC3200 wireless microcontroller (MCU), the industry’s first single-chip programmable MCU with built-in Wi-Fi connectivity Know more about CC3200 from TI's website
Let's start with setting up the CC3200 LaunchPad™
Part I: Installation and settings of CCS:
- If you have not already done, follow the installation and settings of CC3200 through this link https://www.youtube.com/watch?v=xbh9I8waq5g
- To create the temperature sensor project, go in options file-> New-> CCS
- Write the name of the project, select the option Empty project (with main.c) and click on Finish option.
- You can download the all .h and .c files from https://github.com/things-cloud/temperature-sesnor-node-cc3200
- Add the .h and .c files to your project: Right click on the project and go in option add files.
- Navigate to download folder “temperature-sesnor-node-cc3200” and select the .h and .c files to add into the project. Click on open option.
- Select the option “copy files” and click on “Ok”.
- Go on project explorer-> file name and right click from mouse and go in properties.
- Go on project explorer-> file name and right click from mouse and go in properties. Include the file path in ARM compiler-> include options (#include search path)
- Include the file path in ARM linker-> file search ->Include library file or command file: "libc.a"
- For wi-fi settings, go in project explorer->your_file->/example/common->common.h Change SSID_NAME, SECURITY_KEY and SECURITY_TYPE = “SL_SEC_TYPE_WPA” or WPA2
CCS side of the setup is now done. We will park it here for few minutes and setup cloud account, which will give you sample code to paste it back. Cloud account will be setup on Thingsio.ai, which enables the CC3200 to send, store and vizualize your sensor data
Part II: Setting up Cloud Account on Thingsio.AI
ThingsIO.AI is a IoT Platform for developers. As a developer we understood the pain of not having a seamless place to connect, analyze and process device data. Many pure analytics platforms does not offer device management, which is core for the iot. That is the reason of ThingsIO.AI
- Register the account via this link http://thingsio.ai/#/register
- Create a project:
- Write the name of the project:
- Now, you will be on the project dashboard of your account. Click on the new project option:
- Click on the add a new device option:
- Enter the device name and click on the create and configure device:
- Click on the add a new device option:
- Track your device’s special parameters here. This can be set in device configuration (default to null).
- You can see your real time and special parameter’s graph.
- You can see your all data points.
- You can see here your last 5 data points.
- You can see here all the list of created graphs.
- Go in sample device code options and click on the CC3200. You will get the sample code from there and paste into your CCS.
- Click on the “Send trial data” to send a trial data to the server:
- Copy and paste the sample code from the previous step into your CCS in “main.c”.
- Go in view option-> target configuration and click on it.
- Select on user defined option->right click on it->click on the New Target Configuration. Click on it.
- Browse and select the file .ccxml and click on finish.
- You can attach the temperature sensor on PIN 58 on CC3200.
- Plugin the CC3200 through USB cable. Check in device manager the port name and number.
- Check the pin configuration and shorting of pins in CC3200.
- Select the project, go in view option ->debug option and click on it.
- Open the Hercules or tera-term application to see the output/procedure of the CC3200.
- Go in serial and set the Name: according to your port number, Baud rate: 19200, Data size: 8 and Parity: none and open it.
- Go in CCS. Now, you will on debug page. Press F8 or click on resume option.
- You can see all the response from the server, connection with the wi-fi etc. in Hercules or tera-term.
- Now, click on the configuration device option.
- You can set the special parameters (this is tracked on the device dashboard) & transform it accordingly and add new parameters (Parameters are updated automatically as you send them from your device).
- Click on the update device option:
- You can also set your device geographical location.
- To create a graph for your device click on the “create graph option”.
- Click on the preview option. You will see your created graph and click save changes.
Part III: Setting up CC3200 LaunchPad™
Now switch back to your CCS Project. The new few steps you have to do it you CCS project and is related to CC3200 Launchpad.
Now your CC3200 LaunchPad™ is configured and it is sending data to the cloud, thingsio.ai. Last part is to visualize the data
Comments
Please log in or sign up to comment.