DIY Things on EHW

.

Thursday, 14 January 2016

Interfacing Bluetooth Module with MSP430 Launchpad


Interfacing Bluetooth Module with MSP430 Launchpad

Here is the interfacing of a cheap Bluetooth module with MSP430 Lauchpad.
Bluetooth Module has 5 Pins with a UART I/O.


  1. Enable
  2. RX  
  3. TX
  4. VCC----> 5V
  5. GND---->Gnd

We are not connecting the Enable pin since it default Enabled.


  • RX is connected to UART pin of MSP430G2553 -P1.0
  • TX is connected to UART pin of MSP430G2553 -P1.1


VCC is connected to 5V output of MSP430 lauchpad and Ground to common Ground.



Interfacing Bluetooth Module with MSP430 Launchpad
Pin Connecton
























Interfacing Bluetooth Module with MSP430 Launchpad
Interfacing of MSP430 Launchpad with Bluetooth module



Interfacing Bluetooth Module with MSP430 Launchpad
Bluetooth Module
Make Sure your Jumper is connected in SW UART . Now it's time for Testing the setup.


Burn the below program :
IDE :- Energia 

Energia is an open-source electronics prototyping platform started by Robert Wessels in January of 2012 with the goal to bring the Wiring and Arduino framework to the Texas Instruments MSP430 based LaunchPad. The Energia IDE is cross platform and supported on Mac OS, Windows, and Linux.

Program :




byte ehw = 0; // incoming serial byte



void setup()

{

  // start serial port at 9600 bps:
  Serial.begin(9600);
}

void loop()
{
  // if we get a valid byte, read analog ins:
while (!Serial.available() > 0)
    ehw = Serial.read();
   Serial.println(ehw);
   delay(10);
  }


After burning open the serial monitor.

Download the Android  APP 


Android App from EmbeddedHW.com

  • Click on the Home Button

Home screen of EmbeddedHw Android App


  •  Turn On the Bluetooth of the smartphone & Pair the device (password:1234)
  •  Click on the connect button and select our device.
  •  Now click any of the buttons in the App home screen and verify whether any data is coming in the serial monitor of Energia. 

If everything works well , a data corresponding to each buttons will be shown in the serial monitor.





0 comments:

Post a Comment

 

Copyright @ 2016 All About Hardware .

Blog by EHW