Skip to content

Latest commit

 

History

33 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alientek-DP100

A .NET library for communicating with the Alientek ATK-MDP100 programmable power supply over USB using the HID protocol. This library provides basic control and monitoring capabilities such as reading voltage/current, setting output state, and configuring limits.

Note: This project is based on scottbez1/webdp100, which served as the foundation for understanding the communication protocol and device behavior.


Features

  • Connect/disconnect from ATK-MDP100 device via HID
  • Read real-time output voltage and current
  • Turn output on or off
  • Set voltage and current limit values

Supported Device

  • Product Name: ATK-MDP100
  • Vendor ID: 0x2E3C
  • Communication: USB HID

Example Usage

using Alientek_DP100;

var device = new AlientekDP100();

if (device.Connect())
{
    Console.WriteLine("Connected!");

    device.SetVoltage(5.0f);          // Set output voltage to 5V
    device.SetCurrentLimit(1.5f);     // Set current limit to 1.5A
    device.SetState(true);            // Enable output

    if (device.GetVoltageCurrent(out float voltage, out float current))
    {
        Console.WriteLine($"Voltage: {voltage} V, Current: {current} A");
    }

    device.Disconnect();
}
else
{
    Console.WriteLine("Device not found.");
}

Project Structure

Alientek_DP100/
├── AlientekDP100.cs        // Main device interface
├── BasicInfo.cs            // Structure for real-time monitoring data
├── BasicSet.cs             // Structure for configuration commands
├── Frame.cs                // Data frame definition
├── FrameParser.cs          // Frame serialization & deserialization
├── Utils.cs                // Byte array helpers
└── FrameFunctionType.cs    // Enum of supported frame command types

Example GUI Application

An example WinForms application demonstrating how to use this library is included under the DP100App directory.

Example GUI Screenshot


Acknowledgments


Contributing

Pull requests, bug reports, and feature suggestions are welcome.


License

This project is licensed under the MIT License.

About

NET library for controlling the Alientek ATK-MDP100 power supply via USB HID. Includes voltage/current monitoring, output control, and full frame-level communication.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages