[[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~ &ref(maker-2012-1002a.pdf);~ > --Example of Implementation~ &ref(DSCF8200.JPG,,25%);~ > --Parts List~ |No|qty.|Reference|Product Type|Specifications|Memo| |1|1|MCP9801|Temperature Sensor| |http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en020950| | 2| 8|LED0-LED7, D2, D3, D4|LED | |Either chip type or w/lead φ3~5mm| | 3| 1|J1 |Female Pin-Header (Pin-Header Socket) |1 x 5 pin|2.54mm pitch, its size is adjusted to BC-ANT-SERIAL module| | 4| 8|R1,R2,R8-R13 |resistors 1/16~1/4W |1kΩ | | |5| 4|S1, S2|Push Switch |Momentary Type|As it is pressed, it is ON| |6| 1| |BC-ANT-SERIAL | || |7| 1| |Pin-Header |1 x 5 pin|2.54mm pitch. It is soldered to BC-ANT-SERIAL and connected to J2| > -Atmospheric Pressure Sensor Board~ --Schematic~ &ref(maker-2012-1003a.pdf);~ > --Example of Implementation~ &ref(DSCF8199.JPG,,25%);~ > --Parts List~ |No|qty.|Reference|Product Type|Specifications|Memo| | 1| 1|BMP-085 |Atmospheric Pressure Sensor| |http://www.bosch-sensortec.com/content/language2/html/3477.htm| | 2| 8|LED0-LED7, D2, D3, D4|LED | |Either chip type or w/lead φ3~5mm| | 3| 1|J1 |Female Pin-Header (Pin-Header Socket) |1 x 5 pin|2.54mm pitch, its size is adjusted to BC-ANT-SERIAL module| | 4| 8|R1,R2,R8-R13 |resistors 1/16~1/4W |1kΩ | | |5| 4|S1, S2|Push Switch |Momentary Type|As it is pressed, it is ON| |6| 1| |BC-ANT-SERIAL | || |7| 1| |Pin-Header |1 x 5 pin|2.54mm pitch. It is soldered to BC-ANT-SERIAL and connected to J2| > -Humidity Sensor Board~ --Schematic~ &ref(maker-2012-1004a.pdf);~ > --Example of Implementation~ &ref(DSCF8202.JPG,,25%);~ > --Parts List~ |No|qty.|Reference|Product Type|Specifications|Memo| | 1| 1|HIH-6130 |Humidity Sensor| |http://sensing.honeywell.com/product%20page?pr_id=142038| | 2| 8|LED0-LED7, D2, D3, D4|LED | |Either chip type or w/lead φ3~5mm| | 3| 1|J1 |Female Pin-Header (Pin-Header Socket) |1 x 5 pin|2.54mm pitch, its size is adjusted to BC-ANT-SERIAL module| | 4| 8|R1,R2,R8-R13 |resistors 1/16~1/4W |1kΩ | | |5| 4|S1, S2|Push Switch |Momentary Type|As it is pressed, it is ON| |6| 1| |BC-ANT-SERIAL | || |7| 1| |Pin-Header |1 x 5 pin|2.54mm pitch. It is soldered to BC-ANT-SERIAL and connected to J2| > -Alcohol Sensor Board~ --Schematic~ &ref(maker-2012-1004a.pdf);~ > --Example of Implementation~ &ref(DSCF8201.JPG,,25%);~ > --Parts List~ |No|qty.|Reference|Product Type|Specifications|Memo| | 1| 1|SEN21723 |Alcohol Sensor| |http://www.seeedstudio.com/wiki/index.php?title=Twig_-_Alcohol_Sensor| | 2| 8|LED0-LED7, D2, D3, D4|LED | |Either chip type or w/lead φ3~5mm| | 3| 1|J1 |Female Pin-Header (Pin-Header Socket) |1 x 5 pin|2.54mm pitch, its size is adjusted to BC-ANT-SERIAL module| | 4| 8|R1,R2,R8-R13 |resistors 1/16~1/4W |1kΩ | | |5| 4|S1, S2|Push Switch |Momentary Type|As it is pressed, it is ON| |6| 1| |BC-ANT-SERIAL | || |7| 1| |Pin-Header |1 x 5 pin|2.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 [#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 ← This is for Atmospheric Pressure sensor. Make this part '#define'.~ #define USE_BMP085 ← This is for Atmospheric Pressure sensor. Make this part ''#define''.~ #undef USE_HIH6130~ #undef USE_SEN21723~ > --&ref(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)| * Sample & Demo Applications [#ie706426] ** iOS Application for ANT Adapter Demo [#d60817df] > 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.~ - &ref(ANTDemo.zip);~ **Python Application [#i6ed651e] > - &ref(4S.py);~ - &ref(Alc.py);~ - &ref(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