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
MEMS Sensors Evaluation Board
  • Products
  • Dev Tools
  • MEMS Sensors Evaluation Board
  • More
  • Cancel
MEMS Sensors Evaluation Board
Blog Enabling support for Xtrinsic Sensor Board in Raspbian
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join MEMS Sensors Evaluation Board to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Former Member
  • Date Created: 13 Feb 2014 12:38 PM Date Created
  • Views 1372 views
  • Likes 1 like
  • Comments 2 comments
  • raspberry
  • sensors
  • xtrinsic
  • raspberrypi
  • kl26
  • kl25z
  • freedom
  • raspbian
Related
Recommended

Enabling support for Xtrinsic Sensor Board in Raspbian

Former Member
Former Member
13 Feb 2014

Note: First blog post can be found here.

 

Having an image pre-built to support the sensor board is handy, but most people will want to add support into their already existing Raspberry Pi environment instead. Thankfully this turned out to be very straight forward. Note that you will need to connect an Ethernet cable to the Raspberry Pi to access the Internet.

I started out with NOOBS 1.3.4 (which is the latest as of this post) to install Raspbian on an SD card. Unfortunately there’s some sort of bug with this version since trying to install Raspbian gave me an error that said I was out of space on my 4GB SD card. However after some Googling, I found out I could erase the other distros I wouldn’t be using, and then it would work. The key part was to erase the other distros before ever inserting the SD card into the Pi.

 

Installation of Raspbian using the Quick Start Guide took a while as it extracted the filesystem and set itself up.  But eventually I was able to see the desktop in its full glory

image

 

Now it was time to add support for the sensor board.  The main task is to enable the I2C drivers for the Raspberry Pi. You can either do this by modifying the blacklist modprobe file (which enables I2C permanently) or by doing a modprobe which only enables it until you reboot your Pi. I opted for the former.

 

First I opened up LXTerminal from the desktop, and opened the blacklist file with “nano”.

sudo nano /etc/modprobe.d/raspi-blacklist.conf

You could use any text editor to do this, but nano is just convenient.  The “sudo” part is to temporarily raise your permissions so you can edit the file.

 

Then put a hash sign (#) in front of “blacklist i2c-bcm2708”. This tells Linux to ignore that line, and it will not block the I2C driver from loading. Hit Ctrl+O to save the file (hit Enter at the prompt that comes up to save it to the same name) and then Ctrl+X to exit the editor.

image

 

 

Then in the home directory (use "cd ~" to get there), the example code can be downloaded via git.

git clone http://git.oschina.net/embest/rpi_sensor_board.git

 

Finally do a reboot so the changes can take affect:

sudo reboot

 

Once it comes back up, you can run the various sensor python scripts like in the 1st blog post.

 

There are also further instructions in the user guide for setting up the webpages. I won’t go over those, just make sure you only uncomment (erase the # sign) the specific lines listed.

 

Next I’ll try to get this sensor board working with a FRDM-KL26. There is already code and instructions for using it with a FRDM-KL25, so my goal is to show how this board can work with any Freescale Freedom board.

  • Sign in to reply
  • pweb
    pweb over 9 years ago

    Pieter Dec 24 2015

     

    I tried to test the xtrinsic board with rpi 2.

    I con start the the test ptograms but only te test on the mma8491Q gives  zero data and a error that

    the bcm3835 driver init fauled .

    the other 2 testprograms inly give the same error.

    What do I do wrong?

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

    I tried to test xtrinsic sensor board with Raspberry Pi 2 B.

    But I can't get any response from the python scripts.

    I tested 2 boards and get the same response.

    Is it compatible with RPI 2 B?

    I can't guess what's wrong with it.

    Could you give me advice about it?

    • 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