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).
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.
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.