Hello all, programming my first robot for an engineering class. We have a cortex micro controller that we would like to be able to open and close a switch. What I mean by that is we have a battery, and a load. We would like to be able to add a switch in between the battery and load that we could turn on and off with the cortex. A friend recommended using a motor controller, but we don’t need all the fine-tuning/variable speeds, just a simple on and off. Does such a component exist?
I don’t believe that there is a VEX component to do what you want to, but what you are looking for would be a BJT or Bipolar Junction Transistor. One guide is here but you can most likely find better resources through Google.
YES! That is exactly what I’m looking for. We’re using a 24V battery connected to an 8W solenoid (rated for 24V) and we would like to open and close it with a pwm cable to the Cortex. Also, could you supply some ROBOTC code as to how exactly we would talk to the relay? (e.g. dgtl[port1] = 1)