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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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 @ E14-CLEWE @#7_Blog7
  • 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: jkutzsch
  • Date Created: 9 Apr 2017 5:20 AM Date Created
  • Views 888 views
  • Likes 4 likes
  • Comments 6 comments
  • safe and sound design challenge
  • safe & sound
Related
Recommended

Safe & Sound @ E14-CLEWE @#7_Blog7

jkutzsch
jkutzsch
9 Apr 2017

E14-C.L.E.W.E. INDEX:

E14-C.L.E.W.E. INDEX:

#1_”The word.”

#6_Energia!

#2_”The Science.”

#7_Blog7

#3_"GPS decisions."

#8_GPS_Issues

#4_"GPS arrives!"

#5_"The box, the box!"

                                                                             image

Safe & Sound @ E14-CLEWE @ #7_Blog7

 

When Computer systems fail, it pours!  I know that isn't the actual quote but it seemed apt currently.

After being lucky enough to have solid performing computer provided to me and all of my software loaded onto it, the kind lender had an emergency where he needed his hardware back.  So back to reloading everything onto another system!  Since the Energia load was previously documented I am not going to redo already covered information.

 

The new system is up and running, a tad slower, well a lot slower, since it is older, but it is going forward which is the preferred direction.

 

One of the big items I have been working has been just doing some basic testing to see how well the Ultimate GPS Data Logger shield would interface with the TI MCU and Energia.  Nothing too fancy, just trying to receive the basic NMEA string I was seeing with the Arduino UNO. 

 

Sadly no success as of yet.  So I started working with some of the kit items to see if they interface well and that is showing progress.

 

image

 

Here I have the TI MCU (https://www.element14.com/community/view-product.jspa?fsku=2473128&nsku=41Y9541&COM=noscriptMSP-EXP432P401R ) with the Sensor booster ( https://www.element14.com/community/view-product.jspa?fsku=2510675&nsku=72Y1732&COM=noscriptBOOSTXL-SENSORS) mounted directly on top.  Off to the side I have the LCD booster (https://www.element14.com/community/view-product.jspa?fsku=2429519&nsku=11X5261&COM=noscript430BOOST-SHARP96), and of course on the left I have my Ultimate GPS Data Logger shield.

 

While my GPS is showing green and even eventually getting a full signal, at no time am I seeing anything coming across the Serial Monitor.  I will continue to pursue this and am wondering if some code I am working on that specifies GPS might be of assistance.

 

Actually having the kit in hand has let me lay out some of the boosters and I really like the idea of the sensor booster and the LCD booster applied to the CLEWE so these are the 2 boosters I am starting with while also trying to tie in the GPS.

 

As you can see with the picture I think I will be able to mount the GPS shield next to the Sensor booster and save some space.  The LCD will be slightly off so the project does not get to thick and unwieldy.  I still want to have space for the battery so the LCD will have a friend.

 

Off of the Energia website (appropriately found in the reference section,) I found some test code for the LCD_SharpBoosterPack.  It was based off of the 430 but is still valid and a quick and fun way to test the LCD.

 

LCD_SharpBoosterPack_SPI_Main.ino

 

>>>

//

// Sharp BoosterPackLCD SPI

// Example for library for Sharp BoosterPack LCD with hardware SPI

//

//

// Author : Stefan Schauer

// Date : Jan 29, 2014

// Version: 1.00

// File : LCD_SharpBoosterPack_SPI_main.ino

//

// Version: 1.01 : added support for CC3200

//

// Based on the LCD5110 Library

// Created by Rei VILO on 28/05/12

// Copyright (c) 2012 http://embeddedcomputing.weebly.com

// Licence CC = BY SA NC

//

 

#include "Energia.h"

 

// Include application, user and local libraries

#include "SPI.h"

#include "LCD_SharpBoosterPack_SPI.h"

 

// Variables

 

LCD_SharpBoosterPack_SPI myScreen;

uint8_t k = 0;

 

 

// Add setup code

void setup() {

#if defined(__MSP430__) //SPI for MSP430 processors

  SPI.begin();

  SPI.setClockDivider(SPI_CLOCK_DIV2);

  SPI.setBitOrder(MSBFIRST);

  SPI.setDataMode(SPI_MODE0);

#elif defined(__TM4C123GH6PM__ || __LM4F120H5QR__) //SPI for TM4C and LM4F processors

  //SPI.Select(2); //Chip select pin 2 for TM4C

  SPI.begin();

  SPI.setClockDivider(SPI_CLOCK_DIV128); // for LM4F120H5QR DIV2 = 4 MHz !

#elif defined(__CC3200R1M1RGC__) //SPI for CC3200 processors

  SPI.begin();

  SPI.setClockDivider(SPI_CLOCK_DIV2); // for __CC3200R1M1RGC__ DIV2 = 4 MHz !

  SPI.setBitOrder(MSBFIRST);

  SPI.setDataMode(SPI_MODE0);

#endif

 

  myScreen.begin();

 

  myScreen.setFont(1);

  myScreen.text(10, 10, "Hello!");

  myScreen.flush();

 

  delay(1000);

  myScreen.clear();

}

 

// Add loop code

void loop() {

 

  k++;

  myScreen.clearBuffer();

  myScreen.setFont(0);

  myScreen.text(k, 10, "ABCDE");

  for (uint8_t i=10; i<LCD_HORIZONTAL_MAX-10; i++) {

  myScreen.setXY(i,20,1);

  }

 

  for (uint8_t i=0; i<=20; i++) {

  myScreen.setXY(50+i,30,1);

  }

  for (uint8_t i=0; i<=20; i++) {

  myScreen.setXY(50,30+i,1);

  }

  for (uint8_t i=0; i<=20; i++) {

  myScreen.setXY(50+i,50,1);

  }

  for (uint8_t i=0; i<=20; i++) {

  myScreen.setXY(70,30+i,1);

  }

 

  myScreen.setFont(1);

  myScreen.text(10, 60, "ABC");

  myScreen.flush();

  delay(200);

}

<<<

 

Just for fun I modified the two lines I highlighted in Green.  Replacing the "ABCDE" with "CLEWE" and the "ABC" with "E14"

 

 

 

image

 

If you are going to do a test you might as well make it fit your Project! 

 

image

 

Here is a not so clear/sharp image of the LCD_SharpBooster Pack with CLEWE moving around.

 

 

Since the success of that code I have been working on a new sketch that will pull the temperature from the Sensor booster and display it on the LCD as well as hopefully parsing the GPS data and displaying it.

 

Thank you for your time and attention!

  • Sign in to reply

Top Comments

  • Akbari1982
    Akbari1982 over 8 years ago +2
    Hi jkutzsch , Great job! Have you been able to get the UART interface between the GPS Module and MSP-EXP432P401R to work ? I checked the Digital I/O specs of both devices and they seem to be compatible…
  • DAB
    DAB over 8 years ago +1
    Nice post. The Energia and CCS are supposed to be pretty compatible. It is very useful to see that proven. DAB
  • jkutzsch
    jkutzsch over 8 years ago in reply to Akbari1982

    Akbari1982 Do you have any suggestions on where to see code that will actually monitor the RX/TX p3.2 &p3.3?

     

    I have been trying some of the Energia examples but nothing sees the GPS that is easily seen when connected to the Arduino.  :-(

     

    This tutorial entry looked promising:  Energia Reference - Tutorials but no go.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Akbari1982
    Akbari1982 over 8 years ago

    Hi jkutzsch,

     

    Great job!

    Have you been able to get the UART interface between the GPS Module and  MSP-EXP432P401R to work ?

    I checked the Digital I/O specs of both devices and they seem to be compatible at 3.3V supply voltage (taking into account that the GPS Module uses TTL logic levels vs. CMOS logic levels on the MSP432 MCU).

    Let me know if you need any help with that.

     

    Kind regards,

    Mo.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jkutzsch
    jkutzsch over 8 years ago in reply to Jan Cumps

    Jan Cumps Thanks for the information.  I was pretty sure it was okay otherwise I wouldn't have posted, but better to check in and verify.  :-)  Hadn't realized there was a format code option!  That is cool.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 8 years ago

    Nice post.

     

    The Energia and CCS are supposed to be pretty compatible.  It is very useful to see that proven.

     

    DAB

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 8 years ago in reply to jkutzsch

    Certainly, jkutzsch. That's just fine.

    And a heads-up: There's a nice 'format code' option in the e14 blog editor.

    Select your code in the blog, press the >> button, then Syntax Highlighting, and select C++.

     

    Your example would look like this:

    //
    // Sharp BoosterPackLCD SPI
    // Example for library for Sharp BoosterPack LCD with hardware SPI
    //
    //
    // Author : Stefan Schauer
    // Date : Jan 29, 2014
    // Version: 1.00
    // File : LCD_SharpBoosterPack_SPI_main.ino
    //
    // Version: 1.01 : added support for CC3200
    //
    // Based on the LCD5110 Library
    // Created by Rei VILO on 28/05/12
    // Copyright (c) 2012 http://embeddedcomputing.weebly.com
    // Licence CC = BY SA NC
    //
    
    #include "Energia.h"
    
    // Include application, user and local libraries
    #include "SPI.h"
    #include "LCD_SharpBoosterPack_SPI.h"
    
    // Variables
    
    LCD_SharpBoosterPack_SPI myScreen;
    uint8_t k = 0;
    
    
    // Add setup code
    void setup() {
    #if defined(__MSP430__) //SPI for MSP430 processors
      SPI.begin();
      SPI.setClockDivider(SPI_CLOCK_DIV2);
      SPI.setBitOrder(MSBFIRST);
      SPI.setDataMode(SPI_MODE0);
    #elif defined(__TM4C123GH6PM__ || __LM4F120H5QR__) //SPI for TM4C and LM4F processors
      //SPI.Select(2); //Chip select pin 2 for TM4C
      SPI.begin();
      SPI.setClockDivider(SPI_CLOCK_DIV128); // for LM4F120H5QR DIV2 = 4 MHz !
    #elif defined(__CC3200R1M1RGC__) //SPI for CC3200 processors
      SPI.begin();
      SPI.setClockDivider(SPI_CLOCK_DIV2); // for __CC3200R1M1RGC__ DIV2 = 4 MHz !
      SPI.setBitOrder(MSBFIRST);
      SPI.setDataMode(SPI_MODE0);
    #endif
    
      myScreen.begin();
    
      myScreen.setFont(1);
      myScreen.text(10, 10, "Hello!");
      myScreen.flush();
    
      delay(1000);
      myScreen.clear();
    }
    
    // Add loop code
    void loop() {
    
      k++;
      myScreen.clearBuffer();
      myScreen.setFont(0);
      myScreen.text(k, 10, "ABCDE");
      for (uint8_t i=10; i<LCD_HORIZONTAL_MAX-10; i++) {
      myScreen.setXY(i,20,1);
      }
    
      for (uint8_t i=0; i<=20; i++) {
      myScreen.setXY(50+i,30,1);
      }
      for (uint8_t i=0; i<=20; i++) {
      myScreen.setXY(50,30+i,1);
      }
      for (uint8_t i=0; i<=20; i++) {
      myScreen.setXY(50+i,50,1);
      }
      for (uint8_t i=0; i<=20; i++) {
      myScreen.setXY(70,30+i,1);
      }
    
      myScreen.setFont(1);
      myScreen.text(10, 60, "ABC");
      myScreen.flush();
      delay(200);
    }

    • 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