[[ANT]]

* BC-ANT-SERIAL with various sensor-boards [#s06439c4]

>
There are the examples of various electronics works with BC-ANT-USB. The examples employ Texas Instruments MSP430 LaunchPad.~

>
BC-ANT-SERIAL can be connected to a microcontroller, such as MSP430 LaunchPad, with only five pins. 1.9~3.3V of power source, ground, and three lines of single end TXD, RXD, and RTS. (Reset, sleep, and suspend can be added as optional). The 5-pin can accept commonly used 2.54 mm (0.1 inch) pitch pin-header.~

Temperature Sensor Board Schematic

Atmospheric Pressure Sensor Board Schematic

Humidity Sensor Board Schematic

Alcohol Sensor Board Schematic

Temperature Sensor Board Parts List~
|No|qty.|Reference|Product Type|Specifications|Memo|
|1|1|MCP9801|Temperature Sensor| |http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en020950|
 

Atmospheric Pressure Sensor Board Parts List~

Humidity Sensor Board Parts List~

Alcohol Sensor Board Parts List~

LEDs, resistors, capacitors, switches, pin-headers, and CPUs can be available at electronics hobby shops. Also, you can purchase from mail orders and the internets. The sensors are available at digkey and sparkfun.~

The development environment used for these projects is Energia. This environment is a fork of Arduino and specifically created for MSP430 LaunchPad.
To create a new project, go to the “New” menu and select “New Project.” To set Board, select Board from the Tools menu and choose  “LaunchPad” w/ msp430g2553 (16MHz). Serial port is selected from Board of the Tools menu. The selection of port depends on your PC's setting.~

*Examples of Sketches [#c13953ae]
Compile and upload a sketch is done under its project, which targets to one specific sensor.   
- Temperature, Atmospheric Pressure, and Humidity sensor sketches.
To change the definitions at the first lines, the sketch will work with different sensors.
For example, to work with Atmospheric Pressure sensor, the top lines of the sketch are modified as they are shown below.
#undef USE_TEMPSENSOR
#undef USE_MCP9801
#define USE_BMP085
#undef USE_HIH6130
#undef USE_SEN21723
	- ANT.ino

**Explanation [#i3a50d69]
To execute this sketch, the values, which a sensor reads, are transmitted by BC-ANT-SERIAL. The values for the communication parameters are shown below.
||Temperature Sensor|Atmospheric Pressure Sensor|Humidity Sensor|Alcohol Sensor|
|Device #|33|34|35|36|
|Device Type|0|0|0|0|
|Transmission Type|0|0|0|0|
|Channel Period|2Hz|2Hz|2Hz|2Hz|
| Frequency|66 (2466MHz)|67 (2467MHz)|68 (2468MHz)|69 (2469MHz)|

* Python Application [#i6ed651e]
- 4S.py
-Alc.py
- config.py

These are written in wxPython. To use wxPython, install the execution environment correctly first. Then three files, which are shown above, are put in the directories, which have been created arbitrarily. To execute 4s.py, the values that the temperature, atmospheric pressure, humidity, and moisture sensors have been collected are displayed in the screen. From top, temperature is displayed in red,  atmospheric pressure is in white, humidity is defined in yellow, and moisture is displayed in  blue.

As Alc.py is executed, the outputs of alcohol sensor are displayed. Due to the characteristic of the sensor, it will takes at least 5 minutes to stabilize the outputs form the alcohol sensors.
The environment is created with python-2.7.3 and wxPython2.8-win32-unicode-2.8.12.1-py27.exe. 

* Revision History [#gd7a516d]
>
- 2013/02/05 This article is initially uploaded

Front page   New List of pages Search Recent changes   RSS of recent changes