Intel® Makers
Intel® Edison, Intel® Joule™, Intel® Curie™, Intel® Galileo
Announcements
Welcome - This is a Peer-to-Peer Forum only. Intel has discontinued these products but you may find support from other customers on this Forum
9872 Discussions

HMC5883L sensor with SparkFun Pi block : mraa

DChha
Beginner
1,025 Views

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

0 Kudos
2 Replies
DChha
Beginner
104 Views

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 !
idata
Community Manager
104 Views

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:I hope you find this information useful.

 

 

Regards,

 

Diego V.
Reply