Skip to content

Python library for reading measurements from DER EE DE-5000 LCR meter

License

Notifications You must be signed in to change notification settings

tsitle/der_ee_de5000_lcr_meter_cli

 
 

Repository files navigation

Python Library for DER EE DE-5000 LCR Meter

Python library for reading data from the DER EE DE-5000 LCR meter.

DE-5000

Prerequisites

Installing Python3:

  • Debian/Ubuntu

     $ sudo apt-get install python3 python3-pip
    
  • macOS with HomeBrew (tested on macOS 10.14 Mojave)
    Install HomeBrew:

     $ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    

    Install Python3:

     $ brew install python3
    

Installing Python package pySerial:

see pySerial Docs

  • Debian/Ubuntu

     $ sudo apt-get install python3-serial
    
  • macOS

     $ python3 -m pip install pyserial
    

Connecting to the DE-5000

The LCR meter transmits data via its IR port. You'll either need the original IR-to-USB Adapter or build your own.
An example for how build your own adapter can be found here: IR-to-USB Adapter for DER EE DE-5000 LCR Meter

Running the script

The cli_de5000.py script is run from command line using the following command:

$ python cli_de5000.py COM_PORT

where COM_PORT is the name of serial port where your IR receiver is connected.
Linux: e.g. /dev/ttyUSB0, /dev/ttyUSB1, ...
Windows: e.g. COM1, COM2, ...

To output the data from the meter to a CSV file:

$ python cli_de5000.py --csv FILENAME COM_PORT

To see all available options:

$ python cli_de5000.py --help

Output examples

CSV

example-capacitor.csv
example-inductor.csv
example-resistor.csv

Console

2022-05-01 15:55:27.372845
Frequency: 1 KHz
LCR AUTO
AUTO RNG
Primary:   Cs    = 6.4730 uF
Secondary: D     = 0.0864 
2022-05-01 15:57:53.559141
Frequency: 100 KHz
AUTO RNG
Primary:   Ls    = 48.2600 uH
Secondary: Q     = 21.1200 
2022-05-01 16:18:38.510388
Frequency: 120 Hz
AUTO RNG
Primary:   Rs    = 0.1900 Ohm
2022-05-01 16:22:47.329857
Frequency: 100 Hz
Primary:   Cp    = 5.4470 mF
Secondary: Theta = -85.2000 deg
2022-05-01 16:25:24.567118
Frequency: DC
Primary:   DCR   = 50.2200 Ohm

Links

  1. DER EE DE-5000 page in sigrok Wiki
  2. DER EE DE-5000 datasheet
  3. DER EE DE-5000 protocol
  4. Original Python Library by 4X1MD

About

Python library for reading measurements from DER EE DE-5000 LCR meter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%