Giter Site home page Giter Site logo

tenma722710-control's Introduction

Tenma722710-Control

Provides a basic controller (tested on Linux) for a TENMA DC power supply via serial interface. Working on python 2.7 and python 3.

  • tenma_72_2710.py (command line utility)

What is this?

A small command line program / library to setup a Tenma 72-2710 DC POWER SUPPLY from your computer via SERIAL.

To install

It does not have many requirements, so you might just clone the repo and run it. install the following package first.

pip install pyserial

Usage examples

Note that it can be connected via a usb to serial cable, or directly with the provided USB cable. In Linux it identifies the usb as Virtual Com Port , running dmesg to get where the /dev/ttyACMX device registerd and pointing tenmaControl.py to that device should work.

Print the Tenma command help

./tenmaControl.py -h

Get the Tenma model info

./tenmaControl.py -v /dev/ttyACM0

Get the Tenma ON/OFF state

./tenmaControl.py -s /dev/ttyACM0

Set the Tenma output to ON

./tenmaControl.py --on /dev/ttyACM0

Set the Tenma output to OFF

./tenmaControl.py --oFF /dev/ttyACM0

Set the Tenma Voltage (mV)

./tenmaControl.py -sv 5000 /dev/ttyACM0

Get the Tenma Voltage (V)

./tenmaControl.py -gv /dev/ttyACM0

Set the Tenma Current (mA)

./tenmaControl.py -sc 200 /dev/ttyACM0

Get the Tenma Current (A)

./tenmaControl.py -gc /dev/ttyACM0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.