<!DOCTYPE html><html><head>
<meta charset="utf-8">
<meta name="author" content="Edvard S. Pettersen, Eirik Vikan, Fred Grønnerød">
<title>Sensor Controller Project from Scratch</title>
<link rel="stylesheet" href="../../../web_support/strapdown/v/0.2/fonts/ubuntu-regular-woff.css"><link rel="stylesheet" href="../../../web_support/strapdown/v/0.2/fonts/glyphicons-halflings-regular.css"><link rel="stylesheet" href="../../../web_support/strapdown/v/0.2/themes/united2.min.css"><link rel="stylesheet" href="../../../web_support/strapdown/v/0.2/themes/bootstrap-responsive.min.css"><link rel="stylesheet" href="../../../web_support/strapdown/v/0.2/strapdown.css"><link rel="shortcut icon" type="image/x-icon" href="../../../.metadata/favicon.ico"></head>
<!-- START PRE -->
<!-- END PRE -->
<body style=""><div class="container"><nav class="navbar navbar-default navbar-static-top"><div class="container-fluid"> <div class="navbar-header"> <div id="headline" class="navbar-brand">Sensor Controller Project from Scratch</div> </div> </div></nav><div class="container"><div class="row row-offcanvas row-offcanvas-left"><div class="col-xs-12 col-sm-9" id="content"><h1 class="body-heading" id="introduction">Introduction<a class="anchor-link glyphicon glyphicon-link" aria-hidden="true" href="#introduction"></a></h1><p>This workshop will show you how to create and integrate a basic Sensor
Controller ADC driver with a blank TI-RTOS project. The training is
expected to take about 2h to complete. There should be at least an beginner
level of knowledge of the C programming language as well experience with
embedded software development to be able to complete the tasks.</p>
<p>The Sensor Controller ADC driver will measure an analog input voltage on one
pin (DIO29) and set the green LED if the input ADC value is below a set
threshold to indicate LOW input. If the ADC input value is above the set
threshold it will notify the main application processor which then set the Red
LED to indicate HIGH input. To vary the input voltage applied to the pin, an
external voltage source can be connected to the analog input pin. In this
workshop a jumper from the LaunchPad is used to short the analog input pin with
adjacent pins (DIO28 and DIO30). There are two additional bonus tasks, one for
<em>Bluetooth</em>® low energy and one for proprietary operation. Refer to the table
below to find the required HW for each bonus task.</p>
<div class="bs-callout bs-callout-info "><h4><span class="glyphicon glyphicon-info-sign gi-2x" style="vertical-align: middle; margin-right: 0.2em;"></span><span style="vertical-align: middle;">Compatible Connected MCU LaunchPad kits
</span></h4>
<p>This workshop can be completed with any one of the SimpleLink™ Wireless MCU
with Sensor Controller devices described in the table below. Install the
required Associated SimpleLink™ Software Development Kit matching your device.
For more details on LaunchPads please visit the [LaunchPad overview page]
(<a href="http://www.ti.com/lsds/ti/tools-software/launchpads/launchpads.page">http://www.ti.com/lsds/ti/tools-software/launchpads/launchpads.page</a>).</p>
</div>
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>S-W-MCU</th>
<th>LaunchPad</th>
<th>SDK</th>
<th>Bonus</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="http://www.ti.com/product/CC2640R2F">CC2640R2F</a></td>
<td><a href="http://www.ti.com/tool/launchxl-cc2640r2">LAUNCHXL-CC2640R2</a></td>
<td><a href="http://www.ti.com/tool/SIMPLELINK-CC2640R2-SDK">SimpleLink™ <em>Bluetooth</em>® low energy CC2640R2 Software Development Kit 1.50.00</a></td>
<td>Bonus Task 1</td>
</tr>
<tr>
<td><a href="http://www.ti.com/tool/SIMPLELINK-CC26X2-SDK">CC26x2R1</a></td>
<td><a href="http://www.ti.com/tool/launchxl-cc26x2r1">LAUNCHXL-CC26x2R1</a></td>
<td><a href="http://www.ti.com/tool/SIMPLELINK-CC26X2-SDK">SimpleLink™ CC26x2 Software Development Kit 1.60.00</a></td>
<td>Bonus Task 1</td>
</tr>
<tr>
<td><a href="http://www.ti.com/product/CC1310">CC13x0</a></td>
<td><a href="http://www.ti.com/tool/launchxl-cc1310">LAUNCHXL-CC1310</a><br><a href="http://www.ti.com/tool/launchxl-cc1350">LAUNCHXL-CC1350</a></td>
<td><a href="http://www.ti.com/tool/SIMPLELINK-CC13X0-SDK">SimpleLink™ CC13x0 Software Development Kit 1.60.00</a></td>
<td>Bonus Task 2</td>
</tr>
<tr>
<td><a href="http://www.ti.com/product/CC1312">CC13x2</a></td>
<td><a href="http://www.ti.com/tool/launchxl-cc1312">LAUNCHXL-CC1312</a><br><a href="http://www.ti.com/tool/launchxl-cc1352">LAUNCHXL-CC1352</a></td>
<td><a href="http://www.ti.com/tool/SIMPLELINK-CC13X2-SDK">SimpleLink™ CC13x2 Software Development Kit 1.60.00</a></td>
<td>Bonus Task 2</td>
</tr>
</tbody>
</table>
<h1 class="body-heading" id="abbreviations-terminology">Abbreviations / terminology<a class="anchor-link glyphicon glyphicon-link" aria-hidden="true" href="#abbreviations-terminology"></a></h1><table class="table table-striped table-bordered">
<thead>
<tr>
<th>Abbreviation / terminology</th>
<th>Definition</th>
</tr>
</thead>
<tbody>
<tr>
<td>CCS</td>
<td>Code Composer Studio</td>
</tr>
<tr>
<td>SC</td>
<td>Sensor Controller</td>
</tr>
<tr>
<td>SCS</td>
<td>Sensor Controller Studio</td>
</tr>
<tr>
<td>AUX RAM</td>
<td>Sensor Controller Memory</td>
</tr>
<tr>
<td>RTC</td>
<td>Real-Time Clock</td>
</tr>
<tr>
<td>RTOS</td>
<td>Real-Time Operating System</td>
</tr>
<tr>
<td>TI-RTOS</td>
<td>RTOS for TI microcontrollers</td>
</tr>
<tr>
<td>SDK</td>
<td>Software Development Kit</td>
</tr>
<tr>
<td>S-W-MCU</td>
<td>SimpleLink™ Wireless Micro Controller Unit</td>
</tr>
</tbody>
</table>
<h1 class="body-heading" id="prerequisites">Prerequisites<a class="anchor-link glyphicon glyphicon-link" aria-hidden="true" href="#prerequisites"></a></h1><h2 class="body-heading" id="completed-material">Completed material<a class="anchor-link glyphicon glyphicon-link" aria-hidden="true" href="#completed-material"></a></h2><ul>
<li><a href="../sc_01_basic/sc_01_basic.html">Sensor Controller Basics - Getting Started</a></li>
<li><a href="../../rtos/tirtos_basics/tirtos_basics.html">TI-RTOS Basics Lab 1</a></li>
<li>For Bonus Task 1: <a href="../../blestack/ble_01_basic/ble_01_basic.html">Bluetooth Low Energy Fundamentals workshop</a></li>
<li>For Bonus Task 2: <a href="../../prop_rf/prop_01_basic/prop_01_basic.html">Proprietary RF – Basic RX and TX</a></li>
</ul>
<h2 class="body-heading" id="software-for-desktop-development">Software for desktop development<a class="anchor-link glyphicon glyphicon-link" aria-hidden="true" href="#software-for-desktop-development"></a></h2><p>Except for the relevant SDK for your choice of Launchpad, you also need the
following software:</p>
<ul>
<li><a href="http://www.ti.com/tool/ccstudio">Code Composer Studio CCS 7.4 or later installed with support for CC13xx/CC26xx devices</a></li>
<li><a href="http://www.ti.com/tool/SENSOR-CONTROLLER-STUDIO">Sensor Controller Studio 2.0.0 or later + all Patches</a></li>
</ul>
<ul>
<li><p>For Bonus Task 1:</p>
<ul>
<li>Bluetooth mobile app: <ul>
<li>Android: BLE Scanner by Bluepixel Technology LLP - available on the
<a href="https://play.google.com/store/apps/details?id=com.macdom.ble.blescanner&hl=en">Google Play store</a></li>
<li>iOS: LightBlue Explorer - <em>Bluetooth</em>® Low Energy by Punch Through -
available on the
<a href="https://itunes.apple.com/us/app/lightblue-explorer-bluetooth-low-energy/id557428110?mt=8">App Store</a></li>
</ul>
</li>
</ul>
<p><strong>OR</strong></p>
<ul>
<li>BTool (located in tools->blestack directory of the SimpleLink CC2640R2 SDK installation) </li>
</ul>
</li>
</ul>
<ul>
<li>For Bonus Task 2:<ul>
<li><a href="http://www.ti.com/tool/smartrftm-studio">SmartRF Studio 7 v.2.8.0 or later</a></li>
</ul>
</li>
</ul>
<h2 class="body-heading" id="hardware">Hardware<a class="anchor-link glyphicon glyphicon-link" aria-hidden="true" href="#hardware"></a></h2><ul>
<li><a href="http://www.ti.com/tool/launchxl-cc1310">LAUNCHXL-C