The Yocto-4-20mA-Tx is a USB 4-20mA signal generator. With this device, you can drive any other device featuring a 4-20mA input. This is an isolated device: the USB part is electrically isolated from the current loop part. The Yocto-4-20mA-Tx can drive any current loop powered from 12 to 24V with a 0.1% accuracy. Icing on the cake, the device can detect if the loop is properly powered or not.

This device can be connected directly to an Ethernet network using a YoctoHub-Ethernet, to a WiFi network using a YoctoHub-Wireless-n and to a GSM network using a YoctoHub-GSM.

Yocto-4-20mA-Tx Yocto-4-20mA-Tx Yocto-4-20mA-Tx

USB cables and enclosures to be ordered separately.

CHF 40.43

   Add to cart


Hardware release:Rev. B
Product ID:TX420MA1
Product name:Yocto-4-20mA-Tx
USB connector:micro-B
Operating voltage:12-24V DC
Protection class, according to IEC 61140:class III
USB isolation, dielectric strength:2.5kV
Normal operating temperature:5...40░C
Extended operating temperature2:-30...85░C
Supported Operating Systems:Windows (PC + IoT), Linux (Intel + ARM), macOS, Android
Drivers:Driverless, no driver needed
API / SDK / Libraries:C++ Obj-C C# VB.NET UWP Delphi Python Java Android LabVIEW
API / SDK / Libraries (TCP only):Javascript Node.js PHP
RoHS compliance:RoHS III (2011/65/UE+2015/863)
Suggested enclosure:YoctoBox-Long-Thick-Black-Vents
Harmonized tariff code:9032.9000
Made in:Switzerland

1 These specifications are for the current hardware revision. Specifications for earlier revisions may differ.
2 The extended temperature range is defined based on components specifications and has been tested during a limited duration (1h). When using the device in harsh environments for a long period of time, we strongly advise to run extensive tests before going to production.

Accessories and related products

YoctoBox-Long-Thick-Black-Vents, Enclosure for Yoctopuce device (long thick black vents)Fix-2.5mm, screws and spacersUSB-A-MicroB-50, USB 2.0 type A to Micro-B data cable, 50 cm

Related articles and application examples


User manual (HTML)
User manual (PDF)
Product brief
3D file (STEP)
RoHS certificate
Most recent firmware52831 (01/18/2023)
Programming libraries61813 (07/05/2024)
Command line API61813 (07/05/2024)
VirtualHub application61813 (07/05/2024)

Add a comment 16 comments

1 - etnaroaster Friday,may 03,2019 8H11

Hi, i need to control a signal generator control mounted on a proportional gas valve, this signal generator need a 4-20mA signal, can connect direcly to the yocto module?

2 - mvuilleu (Yocto-Team)Friday,may 03,2019 9H07

@etnaroaster yes, this is exactly the intended purpose of this device. Just be aware that the device is not designed for explosive atmosphere (not ATEX certified), so don't use it in a place where there could be explosive gas.

3 - etnaroaster Monday,may 06,2019 18H01

Perfect, it's possible to create with your partnership with Artisan Roaster Scope a code to command this module directly from artisan (the button function)?

4 - mvuilleu (Yocto-Team)Tuesday,may 07,2019 17H02

@etnaroaster Is this gas valve part of a standard roasting equipment or is this a custom setup ? For a custom setup, the requirement might be a bit specific, and I am not sure that the development of Artisan can justify the effort...

5 - etnaroaster Wednesday,may 08,2019 6H55

This valve part its a piece of a custom setup. Artisan already can control phidget module for control dc servo motor with events/button to setup airflow directly from there

6 - mvuilleu (Yocto-Team)Wednesday,may 08,2019 16H41

@etnaroaster we just had a short mail exchange with the author of Artisan software, and he is OK to add support for Yoctopuce actuators, including the Yocto-4-20mA-Tx. However he is currently very busy working in a new release so that will not happen before June or July.

7 - etnaroaster Saturday,may 11,2019 8H04

oh! Thanks a lot! it's so perfect! We wait the delivery the module to start the first tests with the valve, i keep you updated..

8 - etnaroaster Monday,july 22,2019 17H16

Hi mvuilleu, i do the integration of yocto 4-20tx/module gas/roasting machine and works all very very whell, but for now control the module from the hub it's very fastidious, we need, to finish all setup and do a final project, the integration with artisan..

9 - martinm (Yocto-Team)Tuesday,july 23,2019 6H41

@etnaroaster: we have no control over Artisan development, you should contact the author directly :-)

10 - etnaroaster Wednesday,july 24,2019 7H10

I Know, but @mvuilleu write some different..read up

11 - mvuilleu (Yocto-Team)Wednesday,july 24,2019 8H56

@etnaroaster I wrote what I was told, but as martinm wrote above, we are not in charge of Artisan. All we can do is provide devices to facilitate Artisan development, but the development schedule of Artisan is in the sole hands of the Artisan developers

12 - etnaroaster Friday,december 06,2019 18H47

someone writed some little windows program with simple buttons to change easly the mA value?

13 - seb (Yocto-Team)Monday,december 09,2019 10H05

@etnaroaster: We do not have such graphical application, but we have many tutorials that explain how to build such application (https://www.yoctopuce.com/EN/tutorials.php). Also, all our programing libraries have an example that let you change the voltage of the current loop.

If you do not want to write your own application, you can use the command line API as explained in the chapter 6 section 3 of the documentation of the Yocto-4-20mA-Tx.

Alternatively, you can use the web interface of the VirtualHub to change the output voltage.

14 - makomo Thursday,january 23,2020 17H53

@etnaroaster: support for the the Yocto 4-20ma-tx module has just be added to Artisan. Beta builds of the upcoming v2.1.3 including the support are available here:


Documentation can be found here: https://artisan-scope.org/devices/yoctopuce/

15 - renaat Thursday,february 01,2024 9H10

What is the maximum update rate and analog bandwidth of this product? And is there a spec for latency/settling time?

In our application this product is going to simulate (replace) a sensor with bandwidth 0.5 Hz, but having some margin to drive the current loop up to 5 Hz at update rate 50 Hz would be ideal.

16 - martinm (Yocto-Team)Thursday,february 01,2024 10H24

@renaat : the Yocto-4-20mA-TX is quite slow
Max update rate : ~5Hz
Settling time : ~1ms
Latency : ~150ms

Yoctopuce, get your stuff connected.