DIY Things on EHW

.
Showing posts with label msp430. Show all posts
Showing posts with label msp430. Show all posts

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.





Saturday, 9 January 2016

Control 230V Devices Using Micro-Controller MSP430

Control 230V Devices Using Micro-Controller MSP430


Micro Controller Used :- MSP430G2553
Programming IDE        :- ENERGIA
Programmer                  :-Launchpad


Components Used :

LM317 - Linear Voltage Regulator

Micro-controller - MSP430G2553

Resistors -
R1-470ohm
R2-1k
R3-47k
R4-1K

Relay - 12V

Transistor-BC 548

12v Power Source

Control 230V Devices Using Micro-Controller MSP430
Micro-controller circuit to control 230V devices


Here is a Micro-controller simple circuit which can control our home appliance using a relay circuit .To control more devices more relay units can be added to the other GPIO's .Transistor is used to switch the relay according to the input from the Controller.Power the device using a 12v source . the regulator LM317 will regulate the 12V input to Controller operational voltage .Given below an example program to light the device (ex:230v CFL ) every 5 minutes.Connect the launchpad and burn the below program to controller.


Example Program



void setup() {                
  
  pinMode(2, OUTPUT);     
}

// the loop routine runs over and over again forever:
void loop() {
  digitalWrite(2, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(300000);             // wait for 5 minte
  digitalWrite(2, LOW);    // turn the LED off by making the voltage LOW
  delay(300000);               // wait for 5 minte
}



 

Copyright @ 2016 All About Hardware .

Blog by EHW