Skip to content

Wireless temperature sensor which uses an MSP-EXP430FR2433 LaunchPad, 430BOOST-CC110L wireless transceiver, BOOSTXL-BATTPACK LiPo power source, and 430BOOST-SHARP96 low-power display.

License

Notifications You must be signed in to change notification settings

Andy4495/MSP430TempSensorWithDisplay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MSP430 Temperature Sensor with Display and Fuel Tank BoosterPack Support

Arduino Compile Sketches Check Markdown Links

Wireless temperature sensor which uses an MSP-EXP430FR2433 LauchPad, 430BOOST-CC110L wireless transceiver, BOOSTXL-BATTPACK LiPo power source, and 430BOOST-SHARP96 low-power display.

In addition to using the SHARP96 LCD to display the temperature and other settings, a Wireless Sensor Receiver Hub can be used to process and store the data.

Hardware Modifications

Because of some BoosterPack/LaunchPad pin incompatibilities and to decrease power consumption, it is necessary to make the following hardware changes:

  • FR2433 LaunchPad

    • Remove jumper J10 to disconnect LED1.
    • Remove jumper J11 to disconnect LED2.
    • Remove all jumpers from J101 to disconnect the emulation section from the target section of the LaunchPad.

    Note that you will need to connect the GND, SBWTDIO, and SBWTDCK jumpers to program the board.

    Do not supply USB power to the LaunchPad when it is plugged into the FuelTank BoosterPack unless the 5V and 3V3 jumppers are removed.

  • FuelTank BoosterPack

    • Route the I2C signals to pins 9 and 10:
      • Cut the PC traces on the front of the FuelTank that go to pins 14 and 15 (these traces start at two vias directly beneath R5).
      • Gently remove the JP1 female header by inserting a thin flat screwdriver between the header and the PC board. Set the header aside so it can be replaced later.
      • Solder a wire from the right pad of R6 (leaving the resistor in place) to BoosterPack pin 10, as close to the PC board as possible (this is the new SDA signal).
      • Solder a wire from the right pad of R5 (leaving the resistor in place) to BoosterPack pin 9, as close to the PC board as possible (this is the new SCL signal).
      • Use a small diagonal cutter or other tool to clip away excess plastic on the removed header where pins 9 and 10 are located. This is to allow some clearance to the newly soldered wires when replacing the header.
      • Replace the JP1 female header.
    • Remove resistors R11, R12, R13 from the FuelTank BoosterPack.
      • This ensures that the CHARGE, EN, and POWER_GOOD signals don't interfere with LCD control and SPI signals.
    • Remove 10KΩ resistors R18 and R20 and install pulldown 10KΩ or 22KΩ resistors in R17 and R19.
      • This significantly reduces current consumption by the buck/boost converters.
      • The configuration of the TPS6300x converters on the FuelTank causes a relatively high current drain in low-power configurations. See this article for more information.
    • Remove 1KΩ resistor R14 to disable the BAT LOW LED.
      • The LED quickly drains whatever remaining power is available in the battery, often to the point that a special procedure needs to be performed to re-enable the battery for charging (see Section 6 in the Fuel Tank User's Guide).
    • Further power reduction (on the order of 50 uA) is possible by disabling the 5V converter (TPS63002 chip labeled IC4). However, this is a more difficult modification, and also makes the FuelTank less useful without undoing the change (since 5V output is no longer available). To disable IC4, cut the trace going to pin 6 of IC4, and replace it with a wire soldered from pin 6 to GND.

Implementation Details

Data Collection

The sketch collects the following data:

  • MSP430

    • Die temperature in degrees Fahrenheit * 10
      • For example, 733 represents 73.3 degrees F
    • Number of times "loop()" has run since the last reboot
  • FuelTank BoosterPack readings from the BQ27510 Fuel Gauge

    • LiPo Battery voltage (millivolts)
      • For example, 2977 represents 2.977 volts
    • StandbyTimeToEmpty value (minutes)
      • This is sent using the Millis field in the transmitted data structure

After collecting the sensor data, the data is packaged and transmitted to a receiver hub which can then further process and store the data over time.

Temperature Calibration

The calibration data programmed into both of my FR2433 chips improves the temperature readings, but still produces readings that are off by several degrees. I have added a #define to allow further refinement of the calibrated temperature readings:

#define TEMP_CALIBRATION_OFFSET 0

This offset is added to the calibrated reading. Since the temperature values are represented as tenth degrees, the offset value also needs to be in tenth degrees. For example, if you want to increase the temperature reading by 2 degrees, then set the TEMP_CALIBRATION_OFFSET value to 20.

When using this program, start with TEMP_CALIBRATION_OFFSET set to zero, and compare the readings with a known good thermometer. Then update the value as needed for the specific board/chip that you are using (if necessary).

Display Configuration

There is a conflict with the LCD library's use of the OneMsTaskTimer and sleep(), such that sleep() does not work properly. This appears to be related to the software VCOM clock generation. The VCOM clock (as described in the LCD application note) is needed to prevent DC bias buildup in the display which can cause burn-in. However, this also significantly impacts power usage of the overall sketch. Therefore, the sketch disables the automatic screen refresh function by setting the autoVCOM parameter in the constructor to false. To limit burn-in, the sketch reverses the display every time it updates.

Power Usage

With the microcontroller sleeping most of the time, overall power consumption is very low. Per EnergyTrace measurements, the module pulls a mean current draw of 0.027 mA. A fully charged FuelTank can power this setup for several months.

BQ27510 Interface

This sketch uses software I2C to get data from the BQ27510 Fuel Gauge on the Fuel Tank BoosterPack. The BQ27510 has a simple I2C interface which makes it easy to implement directly without the use of a specialized library.

LaunchPad and BoosterPack Pin usage

     FR2433  Fuel Tank CC110L SHARP96  Comment
   --------- --------- ------ -------  -------
 1     3V3      3V3      3V3           Power -- Note that SHARP96 uses I/O pin for power instead of VCC
 2    LED1              GDO2   LCDPWR  CC110L Energia library does not use GDO2 and configures it as high impedance. Disconnect LED1 jumper (J10) on FR2433 LaunchPad
 3     RXD
 4     TXD
 5                             LCD_EN
 6                             LCD_CS
 7     SCK               SCK      SCK
 8
 9     SCL      SCL                    Software I2C. Fuel Tank hardware modified to move I2C to pins 9/10 instead of 14/15
10     SDA      SDA                    Software I2C. Fuel Tank hardware modified to move I2C to pins 9/10 instead of 14/15
11
12
13
14    MISO              MISO
15    MOSI              MOSI     MOSI
16   RESET
17
18                        CS
19    LED2              GDO0           Disconnect LED2 jumper (J11) on FR2433 LaunchPad
20     GND      GND      GND      GND

External Libraries

References

License

The software and other files in this repository are released under what is commonly called the MIT License. See the file LICENSE.txt in this repository.

About

Wireless temperature sensor which uses an MSP-EXP430FR2433 LaunchPad, 430BOOST-CC110L wireless transceiver, BOOSTXL-BATTPACK LiPo power source, and 430BOOST-SHARP96 low-power display.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages