Hi-Link 12V 5W Power Module Documentation
The Hi-Link 12V 5W Power Module is a compact, high-efficiency switching power supply module designed for IoT applications. It provides a reliable and stable 12V output with a maximum power rating of 5W. This module features a wide input voltage range, overcurrent protection, and short-circuit protection, making it an ideal choice for various IoT projects.
Input voltage range: 9-24V DC
Output voltage: 12V DC
Maximum power rating: 5W
High efficiency: up to 85%
Overcurrent protection
Short-circuit protection
The Hi-Link 12V 5W Power Module has the following pinout:
VIN: Input voltage (9-24V DC)
GND: Ground
VOUT: Output voltage (12V DC)
### Example 1: Basic Power Supply for an Arduino Board
In this example, we will use the Hi-Link Power Module to power an Arduino board. We will connect the module to a 12V DC power source and connect the output to the Arduino board.
```cpp
// No code required, just connect the power module to the Arduino board
```
VIN: Connect to 12V DC power source
GND: Connect to Ground
VOUT: Connect to Arduino Board (VIN)
### Example 2: IoT Project with Wi-Fi Module
In this example, we will use the Hi-Link Power Module to power a Wi-Fi module (ESP8266) and a sensor (DHT11) in an IoT project.
```cpp
#include <WiFi.h>
#include <DHT.h>
#define DHTPIN 2 // Digital pin for DHT11
#define DHTTYPE DHT11
DHT dht(DHTPIN, DHTTYPE);
const char ssid = "your_wifi_ssid";
const char password = "your_wifi_password";
void setup() {
Serial.begin(115200);
dht.begin();
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(1000);
Serial.println("Connecting to WiFi...");
}
Serial.println("Connected to WiFi");
}
void loop() {
float temperature = dht.readTemperature();
float humidity = dht.readHumidity();
Serial.print("Temperature: ");
Serial.print(temperature);
Serial.println(" C");
Serial.print("Humidity: ");
Serial.print(humidity);
Serial.println(" %");
delay(5000);
}
```
VIN: Connect to 12V DC power source
GND: Connect to Ground
VOUT: Connect to ESP8266 (VIN) and DHT11 (VCC)
Note: The above examples are for illustrative purposes only and may require additional components and modifications to work in a real-world scenario.