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 #7 : Its Dark and I'm Falling...
  • 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: 16 Apr 2017 5:58 PM Date Created
  • Views 1158 views
  • Likes 4 likes
  • Comments 7 comments
  • opt3001
  • energia
  • mpu6050
  • ti
Related
Recommended

Safe & Sound T-Shirt for Monitoring Elderly and Physically Challenged Patients #7 : Its Dark and I'm Falling...

sakthi.1260
sakthi.1260
16 Apr 2017

Hello Guys,

This week's blog is here, so started working on IMU and Light sensors.

 

I had a few issues with the Sensors booster pack BMI160 and the Energia, I'm still working on it but for now I'm using a MPU6050. Well its a I2C accelerometer and gyroscope.

 

You can get the library and the examples over here, this guy has done a great job. You might get a few warnings when compiling the free fall example in Energia IDE. Just open the MPU6050.cpp file and remove ';' on the #endif statements.

 

I just made small modification to the Freefall example in the loop section. Just to display a message when I drop the breadboard image

 

void loop()
{
  Vector rawAccel = mpu.readRawAccel();
  Activites act = mpu.readActivites();
if(act.isFreeFall)
{
  Serial.print("Madness is like gravity...all it takes is a little push");
  Serial.print("\n");
} 
  
  
}

 

 

The connections are straight forward,

 

SCL-->SCL

SDA-->SDA

VIN-->3V3

GND-->GND

 

image

 

 

image

 

and for the optical sensor I'm using the OPT3001 itself, but from a separate breakout board.  connections are same as for the MPU6050.

 

image

 

and here we go, fluorescent light was about some 6ft away from the sensor.

 

image

 

The code? Well i used the opt3001 demo code in the energia IDE image.

 

image

 

Cheers image

  • Sign in to reply

Top Comments

  • DAB
    DAB over 8 years ago in reply to sakthi.1260 +2
    Never. Trust me, when I get sarcastic, you will know it. Just saying that I like what I read and you presented good data results for a simple test. I look forward to more. DAB
  • DAB
    DAB over 8 years ago +1
    Nice update. DAB
  • mcb1
    mcb1 over 8 years ago +1
    is that sarcastic DAB I doubt that was the intention. Great to see the relatively simple detection. Many get hung up on comparisons and trigger points, rather than just detecting a large change. Mark
  • DAB
    DAB over 8 years ago in reply to sakthi.1260

    Never.

     

    Trust me, when I get sarcastic, you will know it.

     

    Just saying that I like what I read and you presented good data results for a simple test.

     

    I look forward to more.

     

    DAB

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

    I know it Mark, just pulling DAB for a conversation image

     

    Cheers,

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • sakthi.1260
    sakthi.1260 over 8 years ago in reply to jomoenginer

    Hi Jon,

     

    I too saw the curie stuff, its still buggy for Energia, working on it by the side.

     

    Cheers,

    Sakthi

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

    Looks like the BMI160 from the BOOSTXL-SENSORS has not been ported over to Energia, although there are TI-RTOS and a non-RTOS examples in the MSP432 Software Examples download but I suppose those do not help you.

     

    However, someone did port over the Intel Curie BMI160 example to a break-out board for Arduino that communicates via SPI.  You might want to have a look at this and see if you can get it to work with the MSP432 and the BOOSTXL-SENSORS Booster pack.

     

    https://github.com/hanyazou/BMI160-Arduino

     

    https://forum.arduino.cc/index.php?topic=402379.0

     

     

    Cheers,

     

    Jon

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

    is that sarcastic DAB

    I doubt that was the intention.

     

    Great to see the relatively simple detection.

    Many get hung up on comparisons and trigger points, rather than just detecting a large change.

     

    Mark

    • Cancel
    • Vote Up +1 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 © 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