File Exchange

image thumbnail

Device Drivers for the BeagleBone Black

version 1.2 (12.6 MB) by

Development of Simulink Device Driver Blocks for the BeagleBone Black

54 Downloads

Updated

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
 
Specific sensor drivers are also developed for the:
- ADXL330 accelerometer
- L3G4200D gyroscope
- HMC5883L magnetometer

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.

Comments and Ratings (7)

Great!
Dustin, will it work for MPU 6050?
If yes how to do it?

Thanks and Regards.

liu lei

Sala Darenfed

Will the package work with ADXL335 3-Axis Analog Output Accelerometer? Thanks.

R. Dustin

R. Dustin (view profile)

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!

hi, your job is fantastic but I have a problem.
How do you install this in simulink? for use library, I don't know like install. please help me.

Updates

1.1

NA

1.2

NA

MATLAB Release
MATLAB 8.1 (R2013a)
Acknowledgements

Inspired by: Device Drivers

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video