Author Topic: Maynuo m9812 usb to serial isolated interface  (Read 7134 times)

0 Members and 1 Guest are viewing this topic.

Offline shaynetTopic starter

  • Newbie
  • Posts: 3
Maynuo m9812 usb to serial isolated interface
« on: August 09, 2014, 12:37:54 pm »
hey there
I've just got a brand new Maynuo m9812 dc load and i'm too cheap to buy the isolated interface cable
so i decided to make my own
but the thing is that there's something unclear in the manual - in the serial interface, the RX and TX signals are on different pins on a single page in the manual (see attachment)

i went according to what Synapsis did: https://www.eevblog.com/forum/testgear/maynuo-m9812-usb-question-(and-mainboard-photo)/
but can anyone confirm that?
also can anyone please tell me if i haven't missed anything in my schematic? (attached)

p.s.
can anyone recommend me an enclosure for the thing (i remember that I've seen an enclosure once that is just perfect - narrow one one side with a cutout for a usb B socket and wide on the other side to accommodate a 9 pin D-sub connector)

thanks
 

Offline mij59

  • Frequent Contributor
  • **
  • Posts: 693
  • Country: nl
Re: Maynuo m9812 usb to serial isolated interface
« Reply #1 on: August 09, 2014, 01:12:29 pm »
Hi,

I have build a similar interface using the ADUM1201 for my REK RK8511, it should be the same as the Maynuo.
Pin 2 on the RK8511 is RXD
Pin 3 on the RK8511 is TXD
I had to add a pull up resistor on TXD, it's an open collector output.
 

Offline TurboTom

  • Super Contributor
  • ***
  • Posts: 1389
  • Country: de
Re: Maynuo m9812 usb to serial isolated interface
« Reply #2 on: August 14, 2016, 12:17:38 pm »
I recently bought an M9712 as well (by the way, I'm pretty impressed by the performance, especially considering the price I payed) that came without the isolated USB adapter. I thought about modifying an "el-cheapo" USB/serial adapter with a digital isolator, similar to the setup shown above. But then I reconsidered since I'm anyway always short of USB ports. I thought to myself that there must be a different, more elegant way to get the load attached to the PC. While surfing the web I stumbled across these really inexpensive "WiFi-stamps" that talk to the attached microcontroller via an UART-like interface. Since I'm not really good at programming, I searched further for a "virtual serial port" via such a WiFi stamp and found the "esp-link" page: http://hackaday.com/2015/09/18/transparent-esp8266-wifi-to-serial-bridge/

This was finally the "go" for me to try my idea - and guess what: The whole thing was really a no-brainer. I had to find a few tools that ease the uploading procedure of the program into the ESP-12-E WiFi stamp that I used, had to dig out a USB to TTL-UART adapter for programming and that was basically all that's necessary to get going. If you like, have a look at the attached pictures/photos of the whole thing. With the "HW Virtual Serial Port 3.1.1" driver to emulate the COM port on the PC, the Maynuo "M9700" application had no difficulty communicating with and controlling the DC load. And of course, using a wireless link provides as good electrical isolation as can be. The only drawback I found so far is that the "WiFi Dongle" as I call it draws quite some power from the M9712, the consumption is round about one watt and it also gets pretty warm. Future will have to tell if suppying this amount of power is a problem for the DC load, so far it appears to be working perfectly well.

If someone's interested in duplicating this small project, please let me know - then I will provide some more in-depth information and maybe prepare a package with the neccessary files and tools. The PCB I made is single-sided and can easily be "cooked" at home.

Cheers,
Thomas
 
The following users thanked this post: Leuams, kkessler, snik, kulla

Online wraper

  • Supporter
  • ****
  • Posts: 16865
  • Country: lv
Re: Maynuo m9812 usb to serial isolated interface
« Reply #3 on: August 14, 2016, 12:27:23 pm »
Actually isolated adapter is not required, that port is earthed anyway. The part which is connected to the input terminals is floating. All is needed is level shifter, because the port has ttl voltage level. Something like MAX232 would do the job. Or just USB/UART(TTL) converter, like FT232, CH340, CP2102 and others.
« Last Edit: August 14, 2016, 12:34:45 pm by wraper »
 

Offline TurboTom

  • Super Contributor
  • ***
  • Posts: 1389
  • Country: de
Re: Maynuo m9812 usb to serial isolated interface
« Reply #4 on: August 14, 2016, 12:38:51 pm »
Sorry Wraper - that's not correct. The enclosure (and the shell of the communication port) of the M9x1y devices is referenced to ground/earth but the internal circuitry is floating. I just checked the resistance and actually I measure between the negative DC load terminal and the ground at the communication port (pin 5) less than 200mOhms. This means if you want to use the load floating without the negative terminal referenced to ground (i.e. as a high-side load), you have to use an isolated communication method since the PC ground is usually directly connected to earth.

Cheers,
Thomas
 

Offline Leuams

  • Contributor
  • Posts: 34
  • Country: us
Re: Maynuo m9812 usb to serial isolated interface
« Reply #5 on: December 28, 2016, 05:24:15 pm »
Just a word of warning to anyone thinking about buying the M133 isolated communication module from Maynuo. I bought one when I first purchased my M9812 a few months ago and it worked great. The key word is worked. The Prolific chip inside (PL2303) must be a counterfeit since it has been disabled by the windows driver. Guess I will be making a cable.
 

Online wraper

  • Supporter
  • ****
  • Posts: 16865
  • Country: lv
Re: Maynuo m9812 usb to serial isolated interface
« Reply #6 on: December 28, 2016, 05:32:22 pm »
Just a word of warning to anyone thinking about buying the M133 isolated communication module from Maynuo. I bought one when I first purchased my M9812 a few months ago and it worked great. The key word is worked. The Prolific chip inside (PL2303) must be a counterfeit since it has been disabled by the windows driver. Guess I will be making a cable.
What do you mean by "disabled by windows driver". Does it work with driver downgraded? I'm not aware of driver killing counterfeit Prolific ICs.
 

Offline dav

  • Regular Contributor
  • *
  • Posts: 133
  • Country: it
Re: Maynuo m9812 usb to serial isolated interface
« Reply #7 on: December 30, 2016, 04:36:39 pm »
I suppose to have the same problem.
I own an M133 module (bought in bundle with my Maynuo M9812), but never used before.
Just a  few days ago I connected this module to my PC (Win 10 O.S.); it's recognized as "Prolific USB-to-Serial Comm Port", but there is a yellow mark and "Error Code 10" in Windows Device Manager.
I tried to contact Maynuo and I'm waiting for his reply.
 

Offline mij59

  • Frequent Contributor
  • **
  • Posts: 693
  • Country: nl
Re: Maynuo m9812 usb to serial isolated interface
« Reply #8 on: December 30, 2016, 06:08:25 pm »
My home made interface had the same problem, fixed it with this http://www.ifamilysoftware.com/news37.html on Windows 10 64 bit.
 
The following users thanked this post: bendzo


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf