TTL serial interface on QUAD power meter

2,490 views
Skip to first unread message

vegasbrad

unread,
Aug 2, 2015, 8:27:59 PM8/2/15
to OpenEVSE
Hey guys. I ordered a few of these QUAD meters before the kWh feature was added to the firmware and had great luck with them. On a recent one I found a link to the manual (attached) and discovered it has TTL serial interface with instructions on what the command structure is like! A request can be send to the meter for Volts/Current/Energy/Power for example and the meter will respond. Being as the openevse board doesn't read voltage I thought this could come in handy. Is the openevse FTDI port TTL? I think it would be cool to connect these two together.
Deluxe Quad display kWh meter.JPG
Quad Meter tech manual.doc
2015-06-16 14.13.42.jpg

lincomatic

unread,
Aug 4, 2015, 4:34:30 AM8/4/15
to open...@googlegroups.com

OpenEVSE uses 5V TTL logic for its UART. Why does your meter’s protocol have a command to set IP address? Does it have an Ethernet port as well?

--
You received this message because you are subscribed to the Google Groups "OpenEVSE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openevse+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Danny ter Haar

unread,
Aug 4, 2015, 9:54:29 AM8/4/15
to OpenEVSE


On Tuesday, August 4, 2015 at 1:34:30 AM UTC-7, lincomatic wrote:

OpenEVSE uses 5V TTL logic for its UART. Why does your meter’s protocol have a command to set IP address? Does it have an Ethernet port as well?


Nope it doesn't
Probably bad documentation.

Amazon comment with some example tcl code:

Glenn Drayer

unread,
Aug 4, 2015, 11:53:33 AM8/4/15
to open...@googlegroups.com
You might have to buffer the signals with a 4050. For sure the tx would be OK but the receive might be feeble.

A poster (Danny) provided a Amazon link with the protocol. It is basically TTL RS232 at 9600 Baud.

By the way, I love that meter. It is just too large to fit many boxes.
-------- Original Message --------
Subject: RE: TTL serial interface on QUAD power meter
From: "lincomatic" <linco...@gmail.com>
Date: Tue, August 04, 2015 1:34 am
To: <open...@googlegroups.com>

OpenEVSE uses 5V TTL logic for its UART. Why does your meter’s protocol have a command to set IP address? Does it have an Ethernet port as well?
 
From: open...@googlegroups.com [mailto:open...@googlegroups.com] On Behalf Of vegasbrad
Sent: Sunday, August 2, 2015 5:28 PM
To: OpenEVSE
Subject: TTL serial interface on QUAD power meter
 
Hey guys. I ordered a few of these QUAD meters before the kWh feature was added to the firmware and had great luck with them. On a recent one I found a link to the manual (attached) and discovered it has TTL serial interface with instructions on what the command structure is like! A request can be send to the meter for Volts/Current/Energy/Power for example and the meter will respond. Being as the openevse board doesn't read voltage I thought this could come in handy. Is the openevse FTDI port TTL? I think it would be cool to connect these two together.
--
You received this message because you are subscribed to the Google Groups "OpenEVSE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openevse+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Stuart Billinghurst

unread,
Nov 3, 2015, 10:57:28 AM11/3/15
to OpenEVSE
Hi all,

I know this is an old thread, but has anyone been able to communicate with this meter, I have the parts and occasionally get a 000 or 254 (DEC) response at power up, but having fed it strings of commands as set out in the document, I've yet to get any responses.. 

PC with RS232 analyser software -> usb to serial adaptor -> serial to TTL (MAX232) -> meter

any help Appreciated

Stuart.

lincomatic

unread,
Nov 3, 2015, 12:02:16 PM11/3/15
to open...@googlegroups.com

Are you sending the commands as ASCII or binary? The protocol appears to be binary, so you can’t just type the commands in a terminal.

Marlen

unread,
Nov 17, 2015, 1:15:30 PM11/17/15
to OpenEVSE

A good description of the peacefair PZEM-004 power meter  is available at  https://wiki.cuvoodoo.info/doku.php?id=spark_counter

"The power meter uses a single chip solution, the SDIC microelectronics SD3004 (datasheet). This chip does all the necessary work: measure voltage and current, drive the 7-segments LED displays, communicate over UART. There is only an additional external I²C EEPROM to store the global energy consumption."

Brad Apelgren

unread,
Nov 17, 2015, 2:47:59 PM11/17/15
to open...@googlegroups.com
Great find Marlen! That page has some nice write ups.


Date: Tue, 17 Nov 2015 10:15:29 -0800
From: marlen...@gmail.com
To: open...@googlegroups.com

Subject: Re: TTL serial interface on QUAD power meter


A good description of the peacefair PZEM-004 power meter  is available at  https://wiki.cuvoodoo.info/doku.php?id=spark_counter

"The power meter uses a single chip solution, the SDIC microelectronics SD3004 (datasheet). This chip does all the necessary work: measure voltage and current, drive the 7-segments LED displays, communicate over UART. There is only an additional external I²C EEPROM to store the global energy consumption."


--
You received this message because you are subscribed to a topic in the Google Groups "OpenEVSE" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openevse/FTCTrLDqXvc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openevse+u...@googlegroups.com.

Bo Xing

unread,
Jan 16, 2016, 2:24:45 PM1/16/16
to OpenEVSE
Yes I have been able to communicate with the PZEM-004 board with a Prolific 2303 USB to serial converter. It works great and I am able to read all measures (voltage, amp, KW and KWh) every 3 seconds. The board was purchased from Toabao.com and I have been quite pleased with it. One thing that's missing in the commands but available in SD3004's spec sheet is to read power factor. It would be extremely valuable. Does anyone have a clue?

Also the IP address is for the RS232 bus communication purpose. You can connect multiple PERM-004 with different addresses on the same RX/TX bus. This way you can send commands to a specific module and get reads.

Currently I am experimenting with connecting it with a HC 05, a Bluetooth transparent transceiver so that I can read from it wirelessly via Bluetooth. However the PC-817 seems to cause a problem interfacing with the URAR of HC 05. After successfully paring my PC with HC 05 and send commands, I just got no response what so ever. Any help would be appreciated.

Good luck,
Bo
Reply all
Reply to author
Forward
0 new messages