ANT

BC-ANT-SERIAL with various sensor-boards

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.

  • Example of Implementation
    DSCF8200.JPG
  • Parts List
    Noqty.ReferenceProduct TypeSpecificationsMemo
    11MCP9801Temperature Sensorhttp://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en020950
    28LED0-LED7, D2, D3, D4LEDEither chip type or w/lead φ3~5mm
    31J1Female Pin-Header (Pin-Header Socket)1 x 5 pin2.54mm pitch, its size is adjusted to BC-ANT-SERIAL module
    48R1,R2,R8-R13resistors 1/16~1/4W1kΩ
    54S1, S2Push SwitchMomentary TypeAs it is pressed, it is ON
    61BC-ANT-SERIAL
    71Pin-Header1 x 5 pin2.54mm pitch. It is soldered to BC-ANT-SERIAL and connected to J2
  • Example of Implementation
    DSCF8199.JPG
  • Parts List
    Noqty.ReferenceProduct TypeSpecificationsMemo
    11BMP-085Atmospheric Pressure Sensorhttp://www.bosch-sensortec.com/content/language2/html/3477.htm
    28LED0-LED7, D2, D3, D4LEDEither chip type or w/lead φ3~5mm
    31J1Female Pin-Header (Pin-Header Socket)1 x 5 pin2.54mm pitch, its size is adjusted to BC-ANT-SERIAL module
    48R1,R2,R8-R13resistors 1/16~1/4W1kΩ
    54S1, S2Push SwitchMomentary TypeAs it is pressed, it is ON
    61BC-ANT-SERIAL
    71Pin-Header1 x 5 pin2.54mm pitch. It is soldered to BC-ANT-SERIAL and connected to J2
  • Example of Implementation
    DSCF8202.JPG
  • Parts List
    Noqty.ReferenceProduct TypeSpecificationsMemo
    11HIH-6130Humidity Sensorhttp://sensing.honeywell.com/product%20page?pr_id=142038
    28LED0-LED7, D2, D3, D4LEDEither chip type or w/lead φ3~5mm
    31J1Female Pin-Header (Pin-Header Socket)1 x 5 pin2.54mm pitch, its size is adjusted to BC-ANT-SERIAL module
    48R1,R2,R8-R13resistors 1/16~1/4W1kΩ
    54S1, S2Push SwitchMomentary TypeAs it is pressed, it is ON
    61BC-ANT-SERIAL
    71Pin-Header1 x 5 pin2.54mm pitch. It is soldered to BC-ANT-SERIAL and connected to J2
  • Example of Implementation
    DSCF8201.JPG
  • Parts List
    Noqty.ReferenceProduct TypeSpecificationsMemo
    11SEN21723Alcohol Sensorhttp://www.seeedstudio.com/wiki/index.php?title=Twig_-_Alcohol_Sensor
    28LED0-LED7, D2, D3, D4LEDEither chip type or w/lead φ3~5mm
    31J1Female Pin-Header (Pin-Header Socket)1 x 5 pin2.54mm pitch, its size is adjusted to BC-ANT-SERIAL module
    48R1,R2,R8-R13resistors 1/16~1/4W1kΩ
    54S1, S2Push SwitchMomentary TypeAs it is pressed, it is ON
    61BC-ANT-SERIAL
    71Pin-Header1 x 5 pin2.54mm pitch. It is soldered to BC-ANT-SERIAL and connected to J2

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

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 ← This is for Atmospheric Pressure sensor. Make this part #define.
    #undef USE_HIH6130
    #undef USE_SEN21723

Explanation

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 SensorAtmospheric Pressure SensorHumidity SensorAlcohol Sensor
Device #33343536
Device Type0000
Transmission Type0000
Channel Period2Hz2Hz2Hz2Hz
Frequency66 (2466MHz)67 (2467MHz)68 (2468MHz)69 (2469MHz)

Sample & Demo Applications

iOS Application for ANT Adapter Demo

This iOS application allows to communicate the sensor boards, which are equipped with BC-ANT-SERIAL and iOS devices, attached to ANT Adapter. This iOS application is freely downloaded below.

Python Application

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

  • 2013/02/05 This article is initially uploaded

Attach file: fileANTDemo.zip 1121 download [Information] file4S.py 1297 download [Information] fileAlc.py 1371 download [Information] fileconfig.py 1362 download [Information] fileANT.ino 1373 download [Information] filemaker-2012-1002a.pdf 1434 download [Information] fileDSCF8200.JPG 1685 download [Information] fileDSCF8199.JPG 1662 download [Information] filemaker-2012-1003a.pdf 1448 download [Information] fileDSCF8202.JPG 1684 download [Information] filemaker-2012-1004a.pdf 1392 download [Information] fileDSCF8201.JPG 1669 download [Information]

Front page   Edit Freeze Diff Backup Upload Copy Rename Reload   New List of pages Search Recent changes   RSS of recent changes
Last-modified: 2013-06-19 (Wed) 08:16:22 (3963d)