Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino-Controlled Motor with MOSFET and Power Supply

View and Edit Project In Cirkit DesignerImage of Arduino-Controlled Motor with MOSFET and Power Supply

Circuit Documentation

Summary of the Circuit

This circuit appears to be designed to control a motor using an Arduino UNO R4 WiFi microcontroller. The motor's power is controlled through an nMOS transistor, which acts as a switch. The gate of the MOSFET is driven by one of the digital pins (D9) of the Arduino, allowing the microcontroller to turn the motor on and off. A resistor is used to pull the gate to a known state when the microcontroller is not actively driving it. The power for the motor is supplied by a Triple Output DC Power Supply, which also provides the ground reference for the entire circuit.

Component List

Arduino UNO R4 WiFi

Triple Output DC Power Supply

Motor Amarillo Motorreductor Hobby

nMOS Transistor (MOSFET)

Resistor

Wiring Details

Arduino UNO R4 WiFi

Triple Output DC Power Supply

Motor Amarillo Motorreductor Hobby

nMOS Transistor (MOSFET)

Resistor

Documented Code

void setup() {
  // Initialize digital pin D9 as an output.
  pinMode(9, OUTPUT);
}

void loop() {
  // Turn the motor on by setting D9 high.
  digitalWrite(9, HIGH);
  delay(1000); // Wait for 1 second.

  // Turn the motor off by setting D9 low.
  digitalWrite(9, LOW);
  delay(1000); // Wait for 1 second.
}

This code snippet is a simple example of how to control the motor using the Arduino. The setup() function configures pin D9 as an output. The loop() function then repeatedly turns the motor on and off by setting D9 high and low, respectively, with a one-second delay between each state change.