Stufin
Home Quick Cart Profile

5V 2A Power Adapter

Buy Now

Pin Configuration

  • 5V 2A Power Adapter Documentation
  • Overview
  • The 5V 2A Power Adapter is a compact and efficient power supply module designed to provide a stable 5V DC output with a maximum current rating of 2A. It is commonly used in IoT projects, robotics, and other applications where a reliable power source is required.
  • Pinout Description
  • The power adapter has a standard USB-A female connector with four pins. Here's a detailed description of each pin:
  • Pin 1: VCC (5V)
  • Function: Power output
  • Description: This pin provides a stable 5V DC output from the power adapter.
  • Voltage rating: 5V 5%
  • Current rating: Up to 2A
  • Connection: Connect to the power input of your device or module.
  • Pin 2: D- (Data -)
  • Function: Data transmission
  • Description: This pin is used for data transmission in USB communication. However, in this power adapter, it is not used for data transmission and is only provided for compatibility with standard USB connectors.
  • Connection: Leave this pin unconnected or use it as a ground pin if your device requires it.
  • Pin 3: D+ (Data +)
  • Function: Data transmission
  • Description: Similar to Pin 2, this pin is used for data transmission in USB communication. However, in this power adapter, it is not used for data transmission and is only provided for compatibility with standard USB connectors.
  • Connection: Leave this pin unconnected or use it as a ground pin if your device requires it.
  • Pin 4: GND (Ground)
  • Function: Ground
  • Description: This pin provides a ground connection for the power adapter.
  • Connection: Connect to the ground pin of your device or module.
  • Connection Structure
  • To connect the power adapter to your device or module, follow these steps:
  • 1. VCC (5V): Connect Pin 1 to the power input of your device or module. Ensure the voltage rating and current capacity of your device are within the specifications of the power adapter.
  • 2. GND (Ground): Connect Pin 4 to the ground pin of your device or module. This ensures a stable ground connection and prevents any potential electrical noise or interference.
  • 3. Leave Pins 2 and 3 unconnected: Since Pins 2 and 3 are not used for data transmission in this power adapter, leave them unconnected.
  • Important Notes
  • Always ensure the power adapter is used within its specified voltage and current ratings to prevent damage or overheating.
  • Verify the power requirements of your device or module before connecting the power adapter.
  • Use a suitable cable or connector to connect the power adapter to your device or module.
  • By following these guidelines, you can safely and effectively use the 5V 2A Power Adapter in your IoT projects and applications.

Code Examples

5V 2A Power Adapter Documentation
Overview
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.
Technical Specifications
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
Usage Examples
### 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.
Hardware Requirements
5V 2A Power Adapter
 Arduino Uno board
 Jumper wires
Connections
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.
Code Example
```
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.
Hardware Requirements
5V 2A Power Adapter
 ESP8266 microcontroller board (e.g., NodeMCU)
 Jumper wires
Connections
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.
Code Example
```
#include <WiFi.h>
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.
Important Notes
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.