Controlling a DPS5005 power supply module

Ғылым және технология

The DPS-series of power supply modules are a very affordable way of building your own lab power supply. In this video I am looking at a DPS5005 with communication capabilities. It offers USB-serial or Bluetooth connectivity and there is some ready-made software for Windows and Android. After playing with the protocol and the software, I decided to create my own controlling software.
User Guide and serial protocol for the DPS can be found here:
www.mediafire.com/folder/3iog...
As always, my software, DPS_Control can be downloaded from my Github page here:
github.com/TheHWcave/

Пікірлер: 15

  • @rdtech9153
    @rdtech91535 жыл бұрын

    thank you for making this video

  • @EwaldBurger
    @EwaldBurger5 жыл бұрын

    Very cool indeed!

  • @h82fail
    @h82fail4 жыл бұрын

    This is awesome thanks for sharing your code and making the video. I think I'm going to try using your DPS_handler class directly without the scripting for a project. Any reason I can't connect rx/tx directly to a raspberry pi and skip the usb converter?

  • @TheHWcave

    @TheHWcave

    4 жыл бұрын

    Thanks for the kind words. It always helps. The reason why I really like going through the USB module is that it has opto-couplers and completely separates the power supply from the controlling PC. Especially now that the same PC is controlling other instruments at the same time that are in some way all connected to a device powered by the DPS power supply, having not to worry about inadvertent short circuits via the various control connections is really great. Whether that is important in your case depends on what you are planning to do in the long run.

  • @avmim6283
    @avmim62832 жыл бұрын

    Can this be done? Make a button, raise and lower the voltage in hundredths, so that the button is connected via a usb wire to the DPS 8005. And in general, how can such a button be connected to the converter?

  • @TheHWcave

    @TheHWcave

    2 жыл бұрын

    The DPS module must be the kind that allows remote control from USB (or Bluetooth). Then you can simply take a Raspberry PI Zero or Arduino Nano to sense whatever button and send the appropriate commands to the DPS module

  • @avmim6283

    @avmim6283

    2 жыл бұрын

    @@TheHWcave Thank you for information

  • @kleiman1
    @kleiman13 жыл бұрын

    dmesg - [ 4700.883765] ch341 1-2:1.0: ch341-uart converter detected [ 4700.884557] usb 1-2: ch341-uart converter now attached to ttyUSB0 Any idea why?

  • @TheHWcave

    @TheHWcave

    3 жыл бұрын

    that looks pretty normal. First thing to check is if its a permission problem. You could try accessing the port as root. If that works, check if your normal user account is missing membership of the dialout group.

  • @kleiman1
    @kleiman13 жыл бұрын

    i keep getting "could not open /dev/ttyUSB0" ... but the but the USB port is OK

  • @TheHWcave

    @TheHWcave

    3 жыл бұрын

    What software are you using? Have you setup the permissions & udev rules to access the device?

  • @search4truth616
    @search4truth6164 жыл бұрын

    Is it possible to connect this DPS device directly to the UART on an Arduino?

  • @TheHWcave

    @TheHWcave

    4 жыл бұрын

    If you have the comms version of the DPS, the receive and transmit signals would be compatible with an Arduino tx/rx UART pins. Two problems may occur: 1: If the DPS wasn't a comms-enabled version, it may not have a serial data connector and/or the serial port setup may not be enabled in the software. Unfortunately I don't know if that is the case or not. 2nd problem: If you connect the Arduino directly to the DPS serial port, it is electrically connected to the DPS and that means you need to be very careful what else is connected to the Arduino and its power supply and what to the DPS to avoid nasty surprises and short circuits. There are really a lot of cases where something could go bang there or release the magic smoke. The original avoids this headache by using that little USB interface board which is totally isolated using 2 opto-couplers. There is a reason why they added these. It would be far safer to get a little serial -to-USB adapter for the Arduino and connect it via the opto-isolated USB interface board that you get with the comms version of the DPS.

  • @search4truth616

    @search4truth616

    4 жыл бұрын

    @@TheHWcave Thanks for the prompt reply and the good advice. I have the Comm version DPS5005USB with the USB adapter and will do as you suggest. Must preserve the magic smoke.

  • @search4truth616

    @search4truth616

    4 жыл бұрын

    @@TheHWcave I'm going to give this a try. Have one on order. www.robotshop.com/en/logic-level-converter-bidirectional.html I'll let you know what I discover.

Келесі