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.
Compile and upload a sketch is done under its project, which targets to one specific sensor.
#undef USE_TEMPSENSOR
#undef USE_MCP9801
#define USE_BMP085
#undef USE_HIH6130
#undef USE_SEN21723
- ANT.ino
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) |
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.
- 2013/02/05 This article is initially uploaded