The AC-DC PSU (Power Supply Unit) board 220V-5V&12V is an electronic component designed to convert 220V AC power to two separate DC voltages: 5V and 12V. This board is commonly used in various electronic projects and applications where dual DC voltage levels are required, such as powering sensors, microcontrollers, and other electronic devices.
Pin Number | Description | Voltage/Signal |
---|---|---|
1 | AC Input (Live) | 220V AC |
2 | AC Input (Neutral) | 220V AC |
3 | Ground | - |
4 | 5V DC Output (+) | 5V DC |
5 | 5V DC Output (GND) | - |
6 | 12V DC Output (+) | 12V DC |
7 | 12V DC Output (GND) | - |
// Example code to demonstrate how to use the 5V output from the PSU board to power an Arduino UNO
void setup() {
// Initialize the digital pin as an output.
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
// Turn the LED on (HIGH is the voltage level)
digitalWrite(LED_BUILTIN, HIGH);
// Wait for a second
delay(1000);
// Turn the LED off by making the voltage LOW
digitalWrite(LED_BUILTIN, LOW);
// Wait for a second
delay(1000);
}
Note: This example assumes that the Arduino UNO is powered using the 5V output from the AC-DC PSU board. Always ensure that the voltage levels are compatible when connecting to any microcontroller.