5V 2A Power Adapter Documentation
The 5V 2A Power Adapter is a compact and efficient power supply component designed for powering small to medium-sized IoT devices, sensors, and microcontrollers. This adapter provides a stable 5V output voltage and can deliver up to 2A of current, making it suitable for a wide range of applications.
Input Voltage: 100-240V AC, 50/60Hz
Output Voltage: 5V DC
Output Current: Up to 2A
Efficiency: >80%
Dimensions: 40mm x 20mm x 15mm (L x W x H)
Weight: 20g
Certifications: CE, FCC, RoHS
### Example 1: Powering an Arduino Uno Board
In this example, we will use the 5V 2A Power Adapter to power an Arduino Uno board, which is a popular microcontroller board used in various IoT projects.
5V 2A Power Adapter
Arduino Uno board
Jumper wires
1. Connect the positive (red) wire of the power adapter to the VIN pin on the Arduino Uno board.
2. Connect the negative (black) wire of the power adapter to the GND pin on the Arduino Uno board.
```
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.println("Hello, World!");
delay(1000);
}
```
This code will power the Arduino Uno board and print "Hello, World!" to the serial console every second.
### Example 2: Powering a Wireless Sensor Node (ESP8266)
In this example, we will use the 5V 2A Power Adapter to power a wireless sensor node based on the ESP8266 microcontroller, which is a popular choice for IoT projects.
5V 2A Power Adapter
ESP8266 microcontroller board (e.g., NodeMCU)
Jumper wires
1. Connect the positive (red) wire of the power adapter to the VIN pin on the ESP8266 board.
2. Connect the negative (black) wire of the power adapter to the GND pin on the ESP8266 board.
void setup() {
Serial.begin(9600);
WiFi.begin("your_ssid", "your_password");
while (WiFi.status() != WL_CONNECTED) {
delay(1000);
Serial.println("Connecting to WiFi...");
}
Serial.println("Connected to WiFi");
}
void loop() {
// Send data to the cloud or perform other tasks
delay(10000);
}
```
This code will power the ESP8266 board and connect it to a WiFi network. You can modify the code to send data to the cloud or perform other tasks as needed.
Make sure to use a suitable power adapter for your specific application, taking into account the voltage and current requirements of your device.
Always follow proper safety precautions when working with electrical components.
Verify the compatibility of the power adapter with your device before use.
By following these examples and guidelines, you can effectively use the 5V 2A Power Adapter to power a wide range of IoT devices and projects.