This project provides a step by step guide for the development of device driver blocks specifically for the BeagleBone Black.
Several standard blocks are developed including blocks for:
- GPIO read/write
- I2C read/write
- Analog Input read
- USR LEDs control

The developed driver blocks are then combined in a Simulink model for attitude estimation via a descent gradient sensor fusion algorithm. Finally a UI is developed to display sensor data and estimated attitude via Simulink 3D VR animation. All code is included.

Note that this project may prove especially useful for those using Matlab versions prior to R2014B where the "Embedded Coder® Support Package for BeagleBone Black Hardware" is not supported.

Now that embedded coder for beagle bone black exists, can these blocks be combined with the simulink supported ones for beagle bone black? This would be a very useful extension (e.g., embedded coder still has no I2C support block) !

Basically, I am trying to get I2C sensor reading happen on a beagle bone black, using embedded code (not just the Matlab command line interface). Can you give me a tip on how to get started best?

Hi Oscar, sorry for the late reply. I've added the "BLACKlink_SimulinkLibrary" folder to the GitHub page with a zip file containing all required code to install the BLACKlink library on your computer. I've also added instructions on exactly how to do this in the BLACKlink Manual appendix (13.1) also available on the GitHub page. Hope the helps and let me know if you have any other questions. Cheers!