element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Safe and Sound
  • Challenges & Projects
  • Design Challenges
  • Safe and Sound
  • More
  • Cancel
Safe and Sound
Blog Safe & Sound T-Shirt for Monitoring Elderly and Physically Challenged Patients #9 : Back on Track, Meet Mr.Edison
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: sakthi.1260
  • Date Created: 14 May 2017 9:00 PM Date Created
  • Views 608 views
  • Likes 6 likes
  • Comments 2 comments
  • energia
  • bluetooth hc-05
  • ardiuno
  • msp432
  • intel edison
Related
Recommended

Safe & Sound T-Shirt for Monitoring Elderly and Physically Challenged Patients #9 : Back on Track, Meet Mr.Edison

sakthi.1260
sakthi.1260
14 May 2017

Hello guys,

 

Sorry fornot updating for two weeks, my PC crashed lost almost all the files and I was also kinda stressed.. Trying to redo a lot stuffs, have been busy too..

Here comes this week's update......

So this blog covers the Bluetooth part, Sending Data Collected by Launchpad to Intel Edison.But first we need to make them speak.

image

 

 

I'll be using the cheap HC-05 Bluetooth modules for this purpose.

The Reason : The Bluetooth booster pack had some UID issues when connecting to the Edison. On the other side I tried to configure the Edison to receive the Bluetooth Data but now lost all the documentations.

 

Most of you guys would know about the HC-05, I've a plenty of them lying around.

 

image

 

 

Testing the Modules.

 

The Setup

 

HC-05                Launchpad           

Tx                           P3.2                 

Rx                           P3.3                

5V                            5V

GND                       GND

 

image

Don't mind those push buttons, they are dummy image

 

 

The Test Code:

Just in case to test the

The same works for both the Edison(Arduino IDE) and Launchpad (Energia IDE)

void setup() {
  Serial.begin(9600);
  
  Serial1.begin(9600);  

}

char recvChar;

void loop() {
    
    if(Serial1.available())
    {
       recvChar = Serial1.read();
       Serial.print(recvChar);
       Serial.println();
    }
}

 

I had this android app written using MITapp Inventor long ago for some other purpose, but came handy for testing these modules. There are plenty of Apps like this in the store.

and Test results were both the modules worked.

image

 

image

 

Whats Next?We need to make two Bluetooth Radios to talk, so we need to make one of the HC-05 as Master and the other as slave,this can be done by entering into the AT mode. There are a lot of tutorials out there for this process, but I'm gonna skip them.

I just used a USB to UART chip from FTDI and configured them.

For now one module is configured as Master and bind to the other one.

 

Sending data from Energia to Edison:

 

The Setup:

 

One hooked up with Launchpad another with Edison

 

HC-05                Launchpad            Edison in Arduino Breakout

  Tx                        P3.2                                     0

  Rx                        P3.3                                     1

  5V                         5V                                      5V

GND                     GND                                   GND

 

image

 

 

 

 

The code for Launchpad is same as the test code, for the Edison alone I've added a few lines, so that it can log the data into a text file. fopen() and fprintf() functions came in handy.

 

Edison Code:

FILE* fp;
char recvChar;

void setup() {
  Serial.begin(9600);
  Serial1.begin(9600);
 system("echo T-shirt > /log.txt");

}


void loop() {
   fp=fopen("/log.txt","a");
  if(Serial.available())
    {
       recvChar = Serial.read();
       Serial1.print(recvChar);
    }
    
    if(Serial1.available())
    {
       recvChar = Serial1.read();
       Serial.print(recvChar);
       fprintf(fp,"%c",recvChar);
    }
    fclose(fp);
}

This data for now is the one I'm entering in the SerialMonitor of Energia IDE but this actually will be the data collected from the Sensors in the upcoming blog.

 

Sent a "Hello" from LaunchPad to Edison

 

Voila!

image

Cheers image

  • Sign in to reply

Top Comments

  • e14phil
    e14phil over 8 years ago +2
    Very happy to have you back! Keep up the good work!
Parents
  • e14phil
    e14phil over 8 years ago

    Very happy to have you back! Keep up the good work!

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • e14phil
    e14phil over 8 years ago

    Very happy to have you back! Keep up the good work!

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
  • sakthi.1260
    sakthi.1260 over 8 years ago in reply to e14phil

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube