File Exchange

image thumbnail

Rensselaer Arduino Support Package Library (RASPLib)

version 1.1 (10.4 MB) by

Simulink sensor and motor driver library for Arduino

459 Downloads

Updated

A Simulink Arduino toolbox with blocks for: quadrature encoder, compass/magnetometer, barometer, temperature, accelerometer, gyroscope, driver amplifier (DC motor driver), and simple serial communication and plotting tools.

Supported I2C Sensors: MPU6050, MPU9250, HMC5883, BMP180, BMP280, MS5611 (commonly found on GY-521, GY-271, GY-91, GY-87)

Examples are provided for basic hardware IO, step response and closed loop control of an Lego NXT motor.

Download includes basic curriculum labs describing the following:
- Simulink Arduino Intro Blinking LED
- RASPlib Installation Instructions
- Analog and Encoder input, and PWM output
- Gyroscope Reading and Calibrating
- Magnetometer - Making a Compass
- Serial Communication Basics
- Bluetooth Communication
- DC Motor Step Response
- Realistic DC Motor Simulation
- Basic DC Motor Control
- Realistic PI Controller Simulation
- DC Motor Parameter ID
- Determining Angle with Complementary Filter
- Basic Balancing Lab
- Ultrasonic Distance Sensor

Labs are draft labs. Please contact with suggestions or help before leaving negative feedback.

Tested Matlab Versions 2015a-2017a

Comments and Ratings (6)

Guolong Jiang

Very good! Thanks!

Ramon Angel

Qiao Chen

N Kando

Updates

1.1

added:
- PWM frequency selection blocks (for Magnetic Levitation kits)
- BMP180 barometer driver
- support MinSegNano, MinSegPro, and MinSegShield M1V5
- HCSR04 ultrasonic driver workaround for 2015b or later

minor bugs and fixes

1.0

minor edits

1.0

minor edits

1.0

minor updates

1.0

added library image

1.0

minor edit

1.0

minor edit

1.0

minor formatting updates

MATLAB Release
MATLAB 9.2 (R2017a)
Acknowledgements

Inspired by: Device Drivers

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

» Watch video

Win prizes and improve your MATLAB skills

Play today