SlideShare a Scribd company logo
MSP430G2 with BLE
Code:
void setup() {
Serial.begin(9600); /* Define baud rate for serial communication */
Serial.println("AT");
}
void loop() {
String str = "";
while (Serial.available()) {
Serial.write((char) Serial.read());
delay(1); //wait for the next byte, if after this nothing has arrived it means the text was not part of
the same stream entered by the user
}
}
Board: MSP430G2553
BLE: AT-09
AT-09 GND <-> Any Arduino GND Pin
AT-09 VCC <-> Any Arduino 5V Pin or 3.3V Pin
Turn on you Arduino, you should see the AT-09 led blink.
Let’s connect the TXD and RXD pins with the Arduino like this:
AT-09 RXD <-> Arduino PIN 3
AT-09 TXD <-> Arduino PIN 2
After that, we can begin the serial communication by calling Serial.begin(9600) and send the first
command Serial.println(“AT”).
The AT command allows to verify that we are correctly connected and return “OK” in that case. It acts
like a ping command.
In order to display the response in the Arduino serial
For Testing: Play store>> Download App: BLE TERM
https://play.google.com/store/apps/details?id=com.manishtaraiya.bleterm&hl=en_IN
NOTE: For Reading and Writing We need to change the Service in APP
Reference Links:
https://stackoverflow.com/questions/9901058/arduino-cant-read-serial-properly
https://medium.com/@yostane/using-the-at-09-ble-module-with-the-arduino-3bc7d5cb0ac2

More Related Content

PPTX
How to obtain ip address from a different network dhcp
PDF
Simulasi vlan
PDF
MaxBotix Code Examples
DOC
Resumen vlan configuracion basica
PDF
Gre tunnel pdf
PPTX
GRE Tunnel Configuration
PDF
Library Book Locator
PDF
Project lfsr
How to obtain ip address from a different network dhcp
Simulasi vlan
MaxBotix Code Examples
Resumen vlan configuracion basica
Gre tunnel pdf
GRE Tunnel Configuration
Library Book Locator
Project lfsr

What's hot (12)

PPTX
Neutron Deep Dive
DOCX
PPTX
How to configure Dynamic nat
PDF
Basic cisco commands_by_marcus_nielson_2
PPTX
How to configure different Spanning tree port status
PPTX
How to create Security on Cisco switch
PPTX
Differential audio using pwm
PDF
VPNIPSec site to site
PDF
Mpc6585 hardware manual v1.4
PDF
Basics of Cryptography - Stream ciphers and PRNG
DOCX
Significance of scrambler in sonet
PDF
The Stub Series Terminated low Voltage Logic (SSTV) family, used for SDRAM mo...
Neutron Deep Dive
How to configure Dynamic nat
Basic cisco commands_by_marcus_nielson_2
How to configure different Spanning tree port status
How to create Security on Cisco switch
Differential audio using pwm
VPNIPSec site to site
Mpc6585 hardware manual v1.4
Basics of Cryptography - Stream ciphers and PRNG
Significance of scrambler in sonet
The Stub Series Terminated low Voltage Logic (SSTV) family, used for SDRAM mo...
Ad

Similar to Msp430 g2 with ble(Bluetooth Low Energy) (20)

DOCX
Keypad interfacing 8051 -NANOCDAC
PDF
Embedded system course projects - Arduino Course
DOC
FINISHED_CODE
PDF
EEE UNIT-2 PPT.pdf
PPT
Physical prototyping lab3-serious_serial
PDF
I2C programming with C and Arduino
PPTX
INTODUCTION OF IOT AND INTERFACING WITH ARDUINO UNO
PPTX
Cortex M3 LPC176x NXP
PDF
Most usefull at commands
PPTX
Socket programming in c
PPTX
Arduino cic3
PDF
I2c interfacing raspberry pi to arduino
PPT
AN INTRODUCTION TO SERIAL PORT INTERFACING
PDF
Gaztea Tech Robotica 2016
PPT
Chapter5 dek3133
PDF
Up and running with Teensy 3.1
PPTX
Lecture 1 Socket programming elementary tcp sockets.pptx
DOC
Cataloge ge 3.control and_automation-26_vat300_e_c6-12_rev_b
DOCX
Automatic irrigation system using Arduino
PDF
Assembler4
Keypad interfacing 8051 -NANOCDAC
Embedded system course projects - Arduino Course
FINISHED_CODE
EEE UNIT-2 PPT.pdf
Physical prototyping lab3-serious_serial
I2C programming with C and Arduino
INTODUCTION OF IOT AND INTERFACING WITH ARDUINO UNO
Cortex M3 LPC176x NXP
Most usefull at commands
Socket programming in c
Arduino cic3
I2c interfacing raspberry pi to arduino
AN INTRODUCTION TO SERIAL PORT INTERFACING
Gaztea Tech Robotica 2016
Chapter5 dek3133
Up and running with Teensy 3.1
Lecture 1 Socket programming elementary tcp sockets.pptx
Cataloge ge 3.control and_automation-26_vat300_e_c6-12_rev_b
Automatic irrigation system using Arduino
Assembler4
Ad

More from JIGAR MAKHIJA (20)

PPTX
Php gd library
PPTX
Php pattern matching
PPTX
Php cookies
PPTX
Php functions
PPTX
Php sessions
PPTX
Php server variables
PDF
Db function
PDF
C++ version 1
PDF
C++ Version 2
PPTX
SAP Ui5 content
DOCX
Solution doc
PDF
Overview on Application protocols in Internet of Things
PDF
125 green iot
PDF
Embedded system lab work
PPTX
Presentation on iot- Internet of Things
PPTX
PDF
Learn Japanese -Basic kanji 120
PPTX
View Alignment Techniques
DOCX
Letters (complaints & invitations)
PDF
Letter Writing invitation-letter
Php gd library
Php pattern matching
Php cookies
Php functions
Php sessions
Php server variables
Db function
C++ version 1
C++ Version 2
SAP Ui5 content
Solution doc
Overview on Application protocols in Internet of Things
125 green iot
Embedded system lab work
Presentation on iot- Internet of Things
Learn Japanese -Basic kanji 120
View Alignment Techniques
Letters (complaints & invitations)
Letter Writing invitation-letter

Recently uploaded (20)

PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PDF
Complications of Minimal Access Surgery at WLH
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
RMMM.pdf make it easy to upload and study
PPTX
Pharma ospi slides which help in ospi learning
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
Cell Structure & Organelles in detailed.
PPTX
GDM (1) (1).pptx small presentation for students
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
Cell Types and Its function , kingdom of life
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Trump Administration's workforce development strategy
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PPTX
master seminar digital applications in india
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
Complications of Minimal Access Surgery at WLH
Pharmacology of Heart Failure /Pharmacotherapy of CHF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
RMMM.pdf make it easy to upload and study
Pharma ospi slides which help in ospi learning
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
2.FourierTransform-ShortQuestionswithAnswers.pdf
Microbial disease of the cardiovascular and lymphatic systems
Cell Structure & Organelles in detailed.
GDM (1) (1).pptx small presentation for students
Module 4: Burden of Disease Tutorial Slides S2 2025
Cell Types and Its function , kingdom of life
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Trump Administration's workforce development strategy
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
master seminar digital applications in india

Msp430 g2 with ble(Bluetooth Low Energy)

  • 1. MSP430G2 with BLE Code: void setup() { Serial.begin(9600); /* Define baud rate for serial communication */ Serial.println("AT"); } void loop() { String str = ""; while (Serial.available()) { Serial.write((char) Serial.read()); delay(1); //wait for the next byte, if after this nothing has arrived it means the text was not part of the same stream entered by the user } } Board: MSP430G2553
  • 2. BLE: AT-09 AT-09 GND <-> Any Arduino GND Pin AT-09 VCC <-> Any Arduino 5V Pin or 3.3V Pin Turn on you Arduino, you should see the AT-09 led blink. Let’s connect the TXD and RXD pins with the Arduino like this: AT-09 RXD <-> Arduino PIN 3 AT-09 TXD <-> Arduino PIN 2 After that, we can begin the serial communication by calling Serial.begin(9600) and send the first command Serial.println(“AT”). The AT command allows to verify that we are correctly connected and return “OK” in that case. It acts like a ping command. In order to display the response in the Arduino serial For Testing: Play store>> Download App: BLE TERM https://play.google.com/store/apps/details?id=com.manishtaraiya.bleterm&hl=en_IN
  • 3. NOTE: For Reading and Writing We need to change the Service in APP Reference Links: https://stackoverflow.com/questions/9901058/arduino-cant-read-serial-properly https://medium.com/@yostane/using-the-at-09-ble-module-with-the-arduino-3bc7d5cb0ac2