The USB-C - 4 Pin Cable is a versatile and widely used component designed for data transfer and charging between devices equipped with USB-C ports. This cable is known for its reversible connector, which simplifies the connection process by allowing the plug to be inserted either way. It is commonly used in smartphones, tablets, laptops, and various other electronic devices.
Specification | Value |
---|---|
Connector Type | USB-C |
Number of Pins | 4 |
Voltage Rating | 5V |
Current Rating | Up to 3A |
Data Transfer Rate | Up to 480 Mbps (USB 2.0) |
Cable Length | Varies (typically 1m to 2m) |
Pin Number | Name | Description |
---|---|---|
1 | VBUS | Power supply (5V) |
2 | D- | Data transfer (negative) |
3 | D+ | Data transfer (positive) |
4 | GND | Ground |
No Data Transfer:
Device Not Charging:
Slow Data Transfer:
If you are using the USB-C - 4 Pin Cable to connect an Arduino UNO to a computer for data transfer, you can use the following example code to establish serial communication:
// Example code to establish serial communication between Arduino UNO
// and a computer using a USB-C - 4 Pin Cable
void setup() {
// Initialize serial communication at 9600 baud rate
Serial.begin(9600);
}
void loop() {
// Check if data is available to read
if (Serial.available() > 0) {
// Read the incoming byte
char incomingByte = Serial.read();
// Print the received byte to the Serial Monitor
Serial.print("Received: ");
Serial.println(incomingByte);
}
// Send a message to the Serial Monitor every second
Serial.println("Hello from Arduino!");
delay(1000);
}
This code initializes serial communication at a baud rate of 9600 and continuously checks for incoming data. When data is received, it prints the received byte to the Serial Monitor. Additionally, it sends a message to the Serial Monitor every second.
By following this documentation, users can effectively utilize the USB-C - 4 Pin Cable for various applications, ensuring reliable data transfer and charging.