Control Raspberry Pi Motor HAT with Simulink

조회 수: 5 (최근 30일)
Maverick
Maverick 2016년 4월 25일
답변: K0ertis 2016년 10월 7일
I would like to control the Adafruit Motor HAT for Raspberry Pi using Simulink. I have found a tutorial that shows that Simulink is able to control the Adafruit Motor Shield V2 for Arduino, but this doesn't directly work for the Raspberry Pi Motor HAT. In what way can I control the motors of the Motor HAT from Simulink?

답변 (2개)

Vineeth Kartha
Vineeth Kartha 2016년 5월 2일
Hi,
From the documentation page provided below: https://learn.adafruit.com/adafruit-dc-and-stepper-motor-hat-for-raspberry-pi/overview I noticed that the Adafruit Motor HAT uses I2C to communicate to Raspberry Pi.
Please refer the example provided in the link below which explains on how to use I2C with Raspberry Pi. http://www.mathworks.com/help/supportpkg/raspberrypiio/ug/use-the-i2c-interface-on-the-raspberry-pi-hardware.html
Hope this helps.
Regards Vineeth

K0ertis
K0ertis 2016년 10월 7일
Hi!
Did you got any solution? Would also be interested to use the Motor HAT in Simulink.
Cheers,

커뮤니티

더 많은 답변 보기:  Power Electronics Community

카테고리

Help CenterFile Exchange에서 Raspberry Pi Hardware에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by