element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • More
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • More
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • More
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • More
  • 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
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
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: dougw
  • Date Created: 12 Mar 2017 3:24 AM Date Created
  • Views 157 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)

Here is the corresponding schematic:

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

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
Upload Preview

 

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

Anonymous

Top Comments

  • dwinhold
    dwinhold over 5 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 5 years ago in reply to dwinhold +3

    Product LinkProduct 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 5 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…

  • mcb1
    mcb1 over 5 years ago in reply to dwinhold

    You're welcome.

    It's a weird device where the handle where the fingers touch is a flexible tube.

    You squeeze it and place it over the part then let go. The vacuum should hold it.

     

    I wouldn't recommend going for long walks, but it should (I hope) hold it long enough to get it over the board.

     

    Most vacuum tools have a constant suction, so leakage within reason will still hold the part.

    This has none of that, and having seen the surface of the regulator chip, I'm wondering if it will seal.

     

     

    Regardless it was low cost and looks like it can be adapted if required.

     

    shabaz has been building his own device

    Building a SMT Pick-and-Place Buddy

     

    rachaelp has also been building one

    Lab Equipment Projects - Vacuum Pick and Place Assistant Part 1 - Overview

    Lab Equipment Projects - Vacuum Pick and Place Assistant Part 2 - Prototype Design

     

    Mark

    • Cancel
    • Vote Up +2 Vote Down
    • Reply
    • More
    • Cancel
  • dwinhold
    dwinhold over 5 years ago in reply to mcb1

    I did solve the problem but I like the pickup tool. I will be ordering it very soon.

     

    Thank you for the tip and Link!!

     

    Dale

    • Cancel
    • Vote Up +2 Vote Down
    • Reply
    • More
    • Cancel
  • mcb1
    mcb1 over 5 years ago in reply to dwinhold

    Product LinkProduct 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 $20

    Product LinkProduct Link

     

    Not sure how it will go, but worth a try.

     

    Mark

    • Cancel
    • Vote Up +3 Vote Down
    • Reply
    • More
    • Cancel
  • dougw
    dougw over 5 years ago in reply to jomoenginer

    Thanks for the tip.

    The sensors will eventually be run in a sequence to ensure their heaters are not all on at the same time.

    • Cancel
    • Vote Up 0 Vote Down
    • Reply
    • More
    • Cancel
  • dougw
    dougw over 5 years ago in reply to dwinhold

    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 substituted for that resistor.

    • Cancel
    • Vote Up +2 Vote Down
    • 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 © 2022 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

  • Facebook
  • Twitter
  • linkedin
  • YouTube