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
      •  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
Sensors
  • Technologies
  • More
Sensors
Sensor Forum How to use the Microstack Accelerometer with Beaglebone Black
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Sensors to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 6 replies
  • Answers 1 answer
  • Subscribers 343 subscribers
  • Views 1524 views
  • Users 0 members are here
  • i2c
  • issue
  • accelerometer
  • BeagleBone
  • microstack
Related

How to use the Microstack Accelerometer with Beaglebone Black

Former Member
Former Member over 10 years ago

Hi Guys!

I've tried to mount a Microstack Accelerometer on my new Beaglebone Black using the Program Matlab. (Sensor Technical Page Franell: Microstack Accelerometer Accessory Board).

First i had some Issues because there was missing a Jumper on the board so i couldn't get the I2C Adress of my Sensor (JP1-2   JP1-3).

Now that i managed to get the Adress and connect to my Sensor via I2C i am not able to get any right Data.

My Program in Matlab:

imageimage

The Microstack Accelerometer has a MMA8491Q Xtrinsic 3-Axis Accelerometer on board (  http://cache.freescale.com/files/sensors/doc/data_sheet/MMA8491Q.pdf  ) so it has 7 registers:

 

image

Every time i am reading (via I2C) the data from my Accelerometer i get this:

 

00000000

01010101

01010100

10101000

10011000

10101111

00010000

ZYXDR, ZDR, YDR or XDR are set 1 if the Data is ready.

So there is no change in Data , could anybody help me?

  • Sign in to reply
  • Cancel

Top Replies

  • Former Member
    Former Member over 10 years ago in reply to clem57 +1
    On the Microstack Accelerometer is a 3.3V pin where I connected 3.3V from my Beaglebone Black. I measured the Voltage with my Oscilloscope. I read also about the EN pin but there is no EN pin on the Microstack…
  • Former Member
    Former Member over 10 years ago in reply to clem57 +1
    I am going to send element14 a mail to replace the datasheet in the document section( -> Microstack Accelerometer Accessory Board ) with the rigth datasheet( -> http://www.freescale.com/files/sensors/doc…
Parents
  • clem57
    0 clem57 over 10 years ago

    Did you read all the data sheet? To go into ACTIVE mode (to collect data), you need to get Vdd to at least 1.95 volts (check for this with volt meter) and accelerometer subsystem is turned on at the rising edge of the EN pin.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • clem57
    0 clem57 over 10 years ago

    Did you read all the data sheet? To go into ACTIVE mode (to collect data), you need to get Vdd to at least 1.95 volts (check for this with volt meter) and accelerometer subsystem is turned on at the rising edge of the EN pin.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • Former Member
    0 Former Member over 10 years ago in reply to clem57

    On the Microstack Accelerometer is a 3.3V pin where I connected 3.3V from my Beaglebone Black. I measured the Voltage with my Oscilloscope. I read also about the EN pin but there is no EN pin on the Microstack board so I thought that it is connected internal.

    image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • clem57
    0 clem57 over 10 years ago in reply to Former Member

    To prove this is good hardware wired correctly based on your assumptions, I would suggest to run this Python code from the manufacture directly.

    https://github.com/microstack-IoT/python3-microstacknode/blob/master/examples/accel-angle-upright.py

    If it works, the Matlab is missing something to set the EN pin on the board internally(?). If it does not workj, I would follow some hardware troubleshooting next.

    Is that a plan?

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to clem57

    I found out, that there are maybe different Versions of the Microstack Accelerometer. On the technical Page of Farnel of the Microstack Accelerometer is the Datasheet of the MMA8491Q Xtrinsic 3-Axis Accelerometer so I thought that this Chip is used.

    However in the Python Code of the Mic.Acc.  i found a Link to this Device: http://www.freescale.com/files/sensors/doc/data_sheet/MMA8452Q.pdf

    So I used the wrong Datasheet... image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • clem57
    0 clem57 over 10 years ago in reply to Former Member

    Oh no. GIGO is the worst thing for programmers.

    Clem.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to clem57

    I am going to send element14 a mail to replace the datasheet in the document section( -> Microstack Accelerometer Accessory Board )

    with the rigth datasheet( ->http://www.freescale.com/files/sensors/doc/data_sheet/MMA8452Q.pdf)

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • 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