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
    About the element14 Community
  • 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 and Sound - MSP-EXP432P401 & Sharp LCD - blog 8
  • 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: dougw
  • Date Created: 12 Mar 2017 3:24 AM Date Created
  • Views 2044 views
  • Likes 6 likes
  • Comments 10 comments
  • safe and sound
  • safe and sound design challenge
  • hazardous_environmental_factors
  • invisible_hazards
  • safe & sound
  • wearable technology
  • Wearables
  • safe&sound
  • doug_wong
Related
Recommended

Safe and Sound - MSP-EXP432P401 & Sharp LCD - blog 8

dougw
dougw
12 Mar 2017

This update covers my first attempt to fire up the  MSP-EXP432P401RMSP-EXP432P401R I am using Energia at this point since they claim to support this platform and the Sharp display.

I modified the  430BOOST-SHARP96430BOOST-SHARP96 to be always enabled by unsoldering the R16 zero ohm resistor and soldering it at the R17 location. This is needed in my design to avoid a conflicting use of one of the GPIO pins. (It conflicts with the CC3100 Boosterpack)

image

Here is the corresponding schematic:

image

The Sharp Boosterpack LCD plugs directly on the  MSP-EXP432P401RMSP-EXP432P401R as shown below

image

You can see the results of my first code in the picture.

Here is the source code:

 

//  Hazardous Gas Sensor Module

//  MSP_EXP432P401R

  430BOOST-SHARP96430BOOST-SHARP96

  CC3100MODBOOSTCC3100MODBOOST

//  MQx_Sensor Boosterpack

//  Author :  Doug Wong

//  Date   :  Mar 11, 2017

//  Version:  1.00

//

//

 

 

// Include application, user and local libraries

#include "SPI.h"

#include "OneMsTaskTimer.h"

#include "LCD_SharpBoosterPack_SPI.h"

 

 

// Variables

LCD_SharpBoosterPack_SPI myScreen;

int AlcPin = A11;           //MQ3 - Alcohol

int COPin = A14;            //MQ7 - Carbo Monoxide

int AQPin = A13;            //MQ135 - Air Quality

int CO2Pin = A8;            //CO2

int UVPin = A9;             //Ultraviolet Light

int AlcValue = 0;           //MQ3 - Alcohol

int COValue = 0;            //MQ7 - Carbo Monoxide

int AQValue = 0;            //MQ135 - Air Quality

int CO2Value = 0;           //CO2

int UVValue = 0;            //Ultraviolet Light

String AlcStr;

String COStr;

String AQStr;

String CO2Str;

String UVStr;

 

 

// setup code

void setup() {

    Serial.begin(9600);

    myScreen.begin();

  

// setup LCD to display sensor data

    myScreen.clearBuffer();

  

    myScreen.setFont(1);

    myScreen.text(5, 1, "SENSORS");

    myScreen.setFont(0);

    myScreen.text(3, 22, "Alc         ppm");

    myScreen.text(3, 37, "CO          ppm");

    myScreen.text(3, 52, "AQ          ppm");

    myScreen.text(3, 67, "CO2         ppm");

    myScreen.text(3, 82, "UV          idx");

    myScreen.flush();

}

 

 

// loop to read and display sensor data

void loop()

{

  AlcValue = analogRead(AlcPin);    //read Alcohol sensor

  COValue = analogRead(COPin);      //read CO sensor

  AQValue = analogRead(AQPin);      //read Air Quality sensor

  CO2Value = analogRead(CO2Pin);    //read CO2 sensor

  UVValue = analogRead(UVPin);      //read UV sensor

 

 

  AlcStr = String(AlcValue);        //convert reading to ASCII

  COStr = String(COValue);          //convert reading to ASCII

  AQStr = String(AQValue);          //convert reading to ASCII

  CO2Str = String(CO2Value);        //convert reading to ASCII

  UVStr = String(UVValue);          //convert reading to ASCII

 

    myScreen.setFont(0);

    myScreen.text(33, 22, AlcStr + "   ");  //display alcohol

    myScreen.text(33, 37, COStr + "   ");   //display CO

    myScreen.text(33, 52, AQStr + "   ");   //display Air Quality

    myScreen.text(33, 67, CO2Str + "   ");  //display CO2

    myScreen.text(33, 82, UVStr + "   ");   //display UV

    myScreen.flush();

  

  delay(100);

}

 

One thing to note - the Energia selector for the target board did not show the MSP-EXP432P401RMSP-EXP432P401Rin its list it just showed Launchpad /w MSP432 EMT (48MHz)" - but it seems to work.

I do not have my sensor Boosterpack back from the PCB shop yet, so I connected 5 potentiometers to simulate the 5 sensors.

Here is a demo video of the system in action:

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

My next blog is likely to be about ELF radiation or maybe I will cover all RF in one blog.

The Boosterpack PCB I designed has shipped but not arrived, so that is also a possibility.

 

All links to blogs related to this project can be found in the first blog here:

Safe and Sound - Invisible Hazardous Environmental Factors Monitoring System - blog 1

  • Sign in to reply

Top Comments

  • dwinhold
    dwinhold over 9 years ago +3
    Here is an update... It is ok to laugh... I just completed the change on my 430BOOST-SHARP96 of moving the R16 0 ohm resistor to R17.... But not without issues.... De-soldering went without a hitch, picked…
  • mcb1
    mcb1 over 9 years ago in reply to dwinhold +3
    Product Link Product Link Same thing happened when we were fixing my Intel Edison breakout board. The regulator chip went flying .... luckily I ordered two. To help remedy this I brought one of these for…
  • dougw
    dougw over 9 years ago in reply to dwinhold +2
    All I know is when it happens to me, it is the opposite of a laughing matter. The expletives can be significantly more vehement that you would expect from loss of a 1 cent part. A piece of wire can be…
Parents
  • dwinhold
    dwinhold over 9 years ago

    Thank you for this post, very informative!!

     

    Dale

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • dwinhold
    dwinhold over 9 years ago

    Thank you for this post, very informative!!

     

    Dale

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
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 © 2026 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