Arduino UNO Controlled Mosfet Switch with Power Supply and Diode Protection
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller, resistors, a MOSFET, a diode, and a power supply. The Arduino controls the MOSFET through a resistor, which in turn controls the current flow through the diode. The power supply provides the necessary voltage for the circuit.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
Resistor (10k Ohms)
- Description: A resistor with a resistance of 10k Ohms.
- Pins: pin1, pin2
- Properties:
- Resistance: 10k Ohms
Resistor (15 Ohms)
- Description: A resistor with a resistance of 15 Ohms.
- Pins: pin1, pin2
- Properties:
- Resistance: 15 Ohms
MOSFET
- Description: A metal-oxide-semiconductor field-effect transistor.
- Pins: Gate, Drain, Source
Diode
- Description: A semiconductor device that allows current to flow in one direction.
- Pins: cathode, anode
Power Supply
- Description: Provides the necessary voltage for the circuit.
- Pins: +, -
Wiring Details
Arduino UNO
- D5 is connected to pin1 of the 10k Ohm Resistor.
Resistor (10k Ohms)
- pin1 is connected to D5 of the Arduino UNO.
- pin2 is connected to the Gate of the MOSFET.
MOSFET
- Gate is connected to pin2 of the 10k Ohm Resistor.
- Drain is connected to the anode of the Diode.
- Source is connected to the - of the Power Supply.
Diode
- anode is connected to the Drain of the MOSFET.
- cathode is connected to pin1 of the 15 Ohm Resistor.
Resistor (15 Ohms)
- pin1 is connected to the cathode of the Diode.
- pin2 is connected to the + of the Power Supply.
Power Supply
- + is connected to pin2 of the 15 Ohm Resistor.
- - is connected to the Source of the MOSFET.
Documented Code
Arduino UNO Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Documentation (documentation.txt)
This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used in the Arduino UNO microcontroller.