Pages: [1]   Go Down
Author Topic: Can I turn an Arduino Uno into a simple switch controlled by Matlab commands?  (Read 415 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Dear all,

I have a very simple (and potentially stupid) question: is there a way to make an Arduino board act as a simple switch (hardware) via matlab (or any other platform)? By switch, I mean like a light switch, with input and output currents; if it's on, the current goes through, and if it's off, the current is blocked.
My intention is to use it as a simple switch to control certain stimulation flow. Whatever pulses come in, come out as they are when the switch is on. The amplitude is within 10mA (or approximately 15V).

Many thanks in advance!
Logged

Austin, TX
Offline Offline
Faraday Member
**
Karma: 71
Posts: 6106
Baldengineer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes.
Logged

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks James smiley

I will order an Arduino starter kit now!

And it will be great if you can shed some light on how exactly I can make it happen (even some keywords I should look for will be highly appreciated).
I know there's input and output and... that's pretty much it.
My background is medicine and I'm just searching for a tool to solve my research problem.
Logged

Austin, TX
Offline Offline
Faraday Member
**
Karma: 71
Posts: 6106
Baldengineer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

1. Google "Arduino matlab"
2.  Search this forum for matlab
3. Look at "firmdata"

You're going to create a "command system" you send over serial.  Matlab will send commands and your Arduino's program will interpret them and do the actions you desire.
Logged

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

Pages: [1]   Go Up
Jump to: