Things used in this project

Hardware components:
Msp exp430fr6989 msp exp430fr6989 side
TI LaunchPad MSP-EXP430FR6989 LaunchPad
×1
Msp exp430f5529lp 5529 lp angle%5b1%5d
TI LaunchPad MSP-EXP430F5529LP LaunchPad
×1
SeeedStudio Grove IR Emitter
×1
SeeedStudio Grove IR Receiver
×1
Software apps and online services:
Energiabadgelogo2
TI LaunchPad Energia

Code

IRSendSerialC/C++
Uploaded to the 5529 to read Serial input and emit it over IR.
#include <IRSendRev.h>
#define pb1 PUSH1 
#define BIT_LEN         0
#define BIT_START_H     1
#define BIT_START_L     2
#define BIT_DATA_H      3
#define BIT_DATA_L      4
#define BIT_DATA_LEN    5
#define BIT_DATA        6
 
const int ir_freq = 38;                 // 38k
IRSendRev IR;
unsigned char dtaSend[40];
String buffer;
 
void setup()
{
    IR.setSend(40);
    Serial.begin(115200);
}
 
void loop()
{
  if (Serial.available()){
    buffer = "";
    while(Serial.available()>0){
      buffer += char(Serial.read());
    }
    dtaSend[BIT_DATA_LEN] = buffer.length();
    int i;
    for(i = 0; i<buffer.length();i++){
      dtaSend[BIT_DATA+i] = buffer[i];
    }
    IR.Send(dtaSend, 38);
  }
    delay(100);
}
IRRecvSerialC/C++
Code uploaded to the 6989 to receive ASCII codes over IR and print them on the built in LCD display.
#include <LCD_Launchpad.h>

#include <IRSendRev.h>
 
#define BIT_LEN         0
#define BIT_START_H     1
#define BIT_START_L     2
#define BIT_DATA_H      3
#define BIT_DATA_L      4
#define BIT_DATA_LEN    5
#define BIT_DATA        6

const int pinRecv = 5;              // ir receiver connect to D2
IRSendRev IR; 
boolean state = 0;
LCD_LAUNCHPAD LCD;
char buffer[40]; 
int dta[40];

void setup()
{
    Serial.begin(115200);
    IR.Init(pinRecv);
    LCD.init();
}

 
void loop()
{
  if(IR.IsDta())                  // get IR data
  {
    IR.Recv(dta);               // receive data to dta
    int i;
    for (i = 0;i<dta[BIT_DATA_LEN];i++){
      buffer[i] =  char(dta[BIT_DATA+i]);
    }
    buffer[i] = '\0';
    LCD.displayScrollText(buffer,400);
  }
}
IRGroveC/C++
Library used to enable IR communication
No preview (download only).

Credits

81a21a12aab58cdfe8d1306c85500e45
Chris Roberts

I am an applications engineer with Texas Instruments working with the Launchpad by trade, and a maker by passion!

Replications

Did you replicate this project? Share it!

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Similar projects you might like

Convo-Care: Alexa-Controlled E-Health App
Intermediate
  • 311
  • 9

Protip

Convo-Care provides a better e-health experience through a conversational UI.

Smart and Safe Cabinets
Intermediate
  • 510
  • 10

Full instructions

With 41% of poisonings happening to children under 4, more needs to be done. We use Amazon Alexa and Intel IoT to lock and unlock cabinets.

Smart and Safe Cabinets

Magic Smoke Replacement Team

Mobile Life IoT
Intermediate
  • 186
  • 4

Work in progress

A mobile network connected security and monitoring system suited to today's RV-er concerned about protecting their investment.

Family, friend or foe - PIR arm/disarm using BLE
Intermediate
  • 136
  • 2

Full instructions

It's a BLE-enabled, cloud-connected smartphone app used to control & monitor who/when PIR is armed/disarmed. Uses Slack for notifications.

Sigfox - Callback Configuration Example
Intermediate
  • 287
  • 5

Protip

Configure a callback in Sigfox backend and send data to Taurus Platform.

Bike Swarm
Intermediate
  • 634
  • 14

Work in progress

Cyclists will be able to connect seamlessly to form a synchronized swarm of riders to reduce traffic congestion and improving safety.

Bike Swarm

Team Bright Water Bottle

ProjectsCommunitiesContestsLiveJobsFree StoreBlogAdd projectSign up / Login
Respect project