MATLAB Answers

DC Motor code and wiring with arduino uno

10 views (last 30 days)
Andrew Hatcher
Andrew Hatcher on 8 Oct 2019
Answered: Priyanshu Mishra on 11 Oct 2019
Hello All,
I am working on a class project and trying to turn a DC motor on using an arduino uno and matlab code. I researched online trying to find a wiring diagram and some code to go with it but all seem to either have an external battery or use a gui. Overall in the class project we are try to treat the dc motor as a fan and turn it on when our temperature sensor reaches above a specified temp.

Answers (1)

Priyanshu Mishra
Priyanshu Mishra on 11 Oct 2019
Hi Andrew,
As I understand, you want to make a temperature-controlled fan. So, to control DC motor using the MATLAB and Arduino, you need to install the hardware support package- MATLAB Support package for Arduino Hardware.
For information on controlling motor using MATLAB and Arduino, I would suggest you to go through the following link.

Community Treasure Hunt

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

Start Hunting!

Translated by