I am making a board to power a 12V vacuum pump, with the use of a MOSFET to turn the pump on and off, (with the code below) and I am using a motor to see if my design/circuit will work but I really cant tell if is working and I would really appreciate some help!
*/
const int RELAY_PIN = 3; // the Arduino pin, which connects to the gate pin of MOSFET
void setup() {
// initialize digital pin A5 as an output.
pinMode(RELAY_PIN, OUTPUT);
}
void loop() {
digitalWrite(RELAY_PIN, HIGH); // turn on pump 5 seconds
delay(5000);
digitalWrite(RELAY_PIN, LOW); // turn off pump 5 seconds
delay(5000);
circuit for pump.fzz (8.9 KB)