

A power supply is a device that provides electrical energy to a circuit, converting AC or DC voltage from a source into a usable form for electronic components. It is an essential component in virtually all electronic systems, ensuring that devices receive the correct voltage and current for proper operation. Power supplies come in various types, including linear, switching, and unregulated, each suited for specific applications.








The technical specifications of a power supply vary depending on its type and intended application. Below are general specifications for a typical DC power supply:
Below is a table describing the typical pin configuration for a DC power supply module:
| Pin Name | Description |
|---|---|
| VIN | Input voltage pin for connecting the power source (e.g., AC mains or DC input). |
| GND | Ground pin, common reference for input and output. |
| VOUT | Output voltage pin for connecting the load or circuit. |
| ADJ (optional) | Adjustment pin for setting the output voltage (on adjustable power supplies). |
Determine Input and Output Requirements:
Connect the Input:
Connect the Output:
Power On:
// Example code to blink an LED using an Arduino UNO powered by a 5V power supply
// Define the LED pin
const int ledPin = 13;
void setup() {
pinMode(ledPin, OUTPUT); // Set the LED pin as an output
}
void loop() {
digitalWrite(ledPin, HIGH); // Turn the LED on
delay(1000); // Wait for 1 second
digitalWrite(ledPin, LOW); // Turn the LED off
delay(1000); // Wait for 1 second
}
Note: Ensure the power supply's output voltage is set to 5V if connecting directly to the Arduino's 5V pin.
No Output Voltage:
Overheating:
Voltage Fluctuations:
Short Circuit Protection Triggered:
By following these guidelines, you can effectively use a power supply in your electronic projects and troubleshoot common issues.