- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
0down votehttps://stackoverflow.com/questions/46843539/hmc5883l-sensor-with-sparkfun-pi-block favorite
I'm trying to connect HMC5883L sensor with SparkFun Pi block and have no idea how to start!
Language : Python
MP : Intel Edison
Breakout Board : Sparkfun Pi block : mraa
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
ps : my 12cdetect is working well! at 10xe or ex10 (basically column e and row 10), i get a '1e'
but need help with converting my rpi.gpio based code to mraa based code !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi dimpy,
I'm not familiar with the SparkFun blocks, but if the current issue is related to code translation for GPIO usage, then the best recommendation is to check the MRAA documentation for Python in this site: https://iotdk.intel.com/docs/master/mraa/python/
Basically, what it's needed here is a correct pin mapping. This can be done by checking the Edison hardware guide, the SparkFun Pi schematic and the MRAA documentation so that you can understand how the Edison's pins are mapped by the MRAA library. Once you have understood this, you can try translating and adapting the code.
Please check the following resources, they will help you to accomplish your goal:
- http://download.intel.com/support/edison/sb/edisonmodule_hg_331189004.pdf Edison Hardware Guide
- http://download.intel.com/support/edison/sb/edisonarduino_hg_331191007.pdf Edison Arduino Board Hardware Guide
- https://cdn.sparkfun.com/datasheets/Dev/Edison/Pi_Block_v10.pdf SparkFun Pi Block Schematic
- https://github.com/intel-iot-devkit/mraa MRAA Documentation
Regards,
Diego V.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page