C2000 Tutorial -1

For our first test we will use the “TempSensorConv” example from the “controlSUITE” that you will get from here. In its default state this example will get the temperature reading of the microcontroller chip (via ADCIN5) and convert it into degree Celsius and Kelvin. But to see the temperature reading is not very straight forward.

So first of all Build the project by clicking on  20150624T234825 and then click on the debug 20150624T234839button. After that click on20150625T003630 to download the program on your launchpad. Unfortunately CCS is not like Arduino IDE where you can open a serial monitor to view the values of your variables. Here you need to use serial emulators like “puTTY” or “Tera Term”. But that i will show you in my next post. Right now we will use the features that is provided by CCS itself. So for that you need to put the “degC” variable on watch after clicking on the “Expressions” tab on the right hand side and clicking on “Add New Expression” and then write degC variable to it.

20150625T000345

But the problem is that you will get the reading only once, so for getting continuous readings you will need to click on Continuous Refresh button.20150624T235121

Screenshot (19)
 

This is what it looks like. 

 

 

Screenshot (13)

 

 

 

Now the good part is that you can also visualize the graph of the variable degC. For that right click on degC and then click on Graph.

 

 

This is what you will get…

Screenshot (14) Screenshot (15)

The default sampling rate is 1Hz for CCS to refresh the samples, so change it to 100Hz to see rapidly changing values. you can blow on the Chip to decrease the temperature or keep it closer to the heat sink of the laptop to increase the temperature of the chip.

Screenshot (16) Screenshot (17) Screenshot (18)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s