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.

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.

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


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