Rank: 588 based on 208 downloads (last 30 days) and 5 files submitted
photo

Joshua Hurst

E-mail
Company/University
Rensselaer Polytechnic Institute

Personal Profile:

Controls, Optimization, Dynamics, Mechatronics


 

Watch this Author's files

 

Files Posted by Joshua Hurst View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
22 Aug 2014 Screenshot Raspberry Pi Driver Block SFunction Simple Digital Out SFunction example block showing how to use the WiringPi library Author: Joshua Hurst simulink, driver, sfunction, raspberry pi, rpi 29 6
  • 5.0
5.0 | 4 ratings
22 Aug 2014 Screenshot Raspberry Pi DC Motor H-Bridge Driver Block SFunction DC Motor Driver Block using Soft PWM of WiringPi Library Author: Joshua Hurst sfunction, raspberry pi, hbridge, dc motor, driver, simulink 50 4
  • 5.0
5.0 | 2 ratings
22 Aug 2014 Screenshot Raspberry Pi PWM Driver Block SFunction Simple Soft PWM driver block example using WirngPi Author: Joshua Hurst sfunction, driver, raspberry pi, simulink, pwm, motor driver 49 0
  • 5.0
5.0 | 2 ratings
22 Aug 2014 Screenshot Raspberry Pi MPU6050 SFunction with I2C Communication using WiringPiI2C Raspberry Pi SFunction to obtain MPU6050 data using the C-library WiringPiI2C. Author: Joshua Hurst control, mpu6050, simulink, raspberry pi, sfunction, driver 40 3
  • 5.0
5.0 | 1 rating
21 Aug 2014 Screenshot Raspberry Pi Quadrature Encoder SFunction Quadrature encoder route implemented with interrupts with WiringPi Author: Joshua Hurst control, motor driver, encoder, quadrature, sfunction, simulink 40 0
  • 5.0
5.0 | 1 rating
Comments and Ratings by Joshua Hurst View all
Updated File Comments Rating
19 Sep 2013 Device Drivers Developing Simulink Device Driver Blocks: Step-By-Step Guide and Examples Author: Giampiero Campa

Hi Christian,

If you were looking specifically for I2C, MPU6050, or other I2C devices/hardware I posted a simple C-based I2C solution using WirnigPiI2C and you can find this here:
http://www.mathworks.com/matlabcentral/fileexchange/43383-raspberry-pi-mpu6050-sfunction-with-i2c-communication-using-wiringpii2c

Let me know if this helps you!

Josh

04 Jun 2013 Device Drivers Developing Simulink Device Driver Blocks: Step-By-Step Guide and Examples Author: Giampiero Campa

Hi Glen,

I have a student working on the mpu6050 code for RasPi right now - getting it work in C and Python first. Then I will be porting it to Simulink most likely next week.

Feel free to send me an email directly and I can try to look at your files when I start start porting my students code: hurstj2@rpi.edu

In general for the Rpi you have to make sure the c-code compiles and on its own. If you look at the RPi examples I posted you have to make sure the #includes reference the local directory structure on the RPi - not your box. Just look at the Quadrature Encoder example for the RPi and you will see I had use: #include </home/pi/wiringPi/wiringPi/wiringPiI2C.h>. Which is where the files are on the RPi, not my actual computer. And don't forget to include the actual C files as well:
#include </home/pi/wiringPi/wiringPi/wiringPi.h>
#include </home/pi/wiringPi/wiringPi/wiringPi.c>

Let me know if this helps!

Josh

20 Apr 2013 Simulink Support Package for Raspberry Pi Hardware Credit-card sized, low-cost, single-board computer with audio and video input/output Author: MathWorks Simulink Team

Hello,

It appears WiringPi has been added to this image?

Where can you find the updates that have been done to this image since the last one? Just curious what other things have now been included.

Thanks! Josh

20 Apr 2013 Device Drivers Developing Simulink Device Driver Blocks: Step-By-Step Guide and Examples Author: Giampiero Campa

Thanks Giampy!

With your driver guide we were able to make driver blocks for:

- MPU6050 3 axis accelerometer/gyroscope
- HC-SR04 ultrasonic range/distance sensor
- L3GD20 3 axis gyroscope

And with all this we made a miniature Segway! You can find all the drivers and supporting libraries for the listed sensors here:

http://www.minseg.com/downloads

Thanks again!

20 Apr 2013 Device Drivers Developing Simulink Device Driver Blocks: Step-By-Step Guide and Examples Author: Giampiero Campa

Comments and Ratings on Joshua Hurst's Files View all
Updated File Comment by Comments Rating
17 Nov 2014 Raspberry Pi Driver Block SFunction Simple Digital Out SFunction example block showing how to use the WiringPi library Author: Joshua Hurst Biao

Hi, I have similar errors with Alexander. I have already installed latest wiringPi lib. So how do you deploy it and make it running well at raspberry pi?

13 Nov 2014 Raspberry Pi PWM Driver Block SFunction Simple Soft PWM driver block example using WirngPi Author: Joshua Hurst Carlos Moran

09 Jul 2014 Raspberry Pi DC Motor H-Bridge Driver Block SFunction DC Motor Driver Block using Soft PWM of WiringPi Library Author: Joshua Hurst Marco

Hi Joshua,

when I try to download the model to raspberry I receive this error:

The call to realtime_make_rtw_hook, during the after_make hook generated the following error:
Error executing SSH command: make: Entering directory `/home/pi/DC_Motor_Driver_Block_RPi_rtt'
"gcc" -I"

[...blablabla...]

fatal error: /home/pi/wiringPi/wiringPi/gertboard.h: No such file or directory

What am I missing?

Thanks,

Marco

06 Apr 2014 Raspberry Pi DC Motor H-Bridge Driver Block SFunction DC Motor Driver Block using Soft PWM of WiringPi Library Author: Joshua Hurst Leo

James - did you press build in the s-function windows?

26 Mar 2014 Raspberry Pi DC Motor H-Bridge Driver Block SFunction DC Motor Driver Block using Soft PWM of WiringPi Library Author: Joshua Hurst James

I receive the following error when I try to run the Simulink model:

Error in S-function 'DC_Motor_Driver_Block_RPi/Volts To RPi PWM 754410 or DRV8833 PWM High is zero speed/Include WiringPi Libraries': S-Function 'Include_WiringPi' does not exist

I am using R2013b and applied the bug fix that is described in the Device Drivers article by Giampero Campa. Thanks in advance for your help.

Contact us