How Can i switch on and off the USB output voltage?

4 views (last 30 days)
I have a small motor, once i connect it to the computer USB, it starts to rotate. the question is how to switch it on and off using Matlab? So, i need a matlab code show how to select the USB (because i have about 3 USB in my computer), and how to cut the voltage supply to this USB, and how to connect it again?

Answers (1)

Image Analyst
Image Analyst on 30 Mar 2015
I use a Measurement Computing device. You could also use an Arduino or just directly to the USB. Exactly how is your motor connected to the USB lines?

Categories

Find more on MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!