Help an old bally to get his emonTx3 running again

Good morning,

a very long time ago I got an emonTx3 v3.1 which was running Robin Emley’s “power bucket” sketch, i.e. a power diverter.

In 2020 I moved house and have not had any solar installation.

Now I want to resurrect the little fella but am quite clueless as to where to start.

The following I have/did:

  1. A have a rpi4 and a cm4 on a Bigtreetech PI4B adapter.
  2. I flashed an sd-card with emonsd.
  3. As I plan to have the emontx and the rpi close together I want to use the gpio pins to communicate, not the radio module (which I anyway lost, same as the programmer).
  4. I connected the 5V, ground and rx of emontx to rx of rpi.

Unfortunately I don’t get any data into the rpi.

The emontx3 is still running the same sketch from 6 years ago. Can it be that the sketch is specifically for the radio transmission of the data or is the data transmission independent from the sketch as long as emonhub is configured as per emontx3 instructions for direct wiring?

Second question (surely not last); I understand that I will need to have a usb to uart programmer to update the firmware on the emontx; can I purchase any usb-uart programmer?

Thanks for helping out!:folded_hands:t2:

Hello @ajscheid

You may be quite close to getting this to work:

  • TX of emonTx should be connected to RX of the Pi
  • RX of emonTx should be connected to TX of the Pi (optional - maybe skip this connection for now).
  • GND - GND

Then the question is what the baud rate of the emonTx3 firmware is, it was often 115200 so it might be worth trying that first.

The standard emonhub config is usually configured for 115200 so it should work like that out of the box with a new SD card image: emonhub/conf/emonpi2.default.emonhub.conf at master · openenergymonitor/emonhub · GitHub

[[EmonPi2]]
    Type = EmonHubOEMInterfacer
    [[[init_settings]]]
        com_port = /dev/ttyAMA0
        com_baud = 115200
    [[[runtimesettings]]]
        pubchannels = ToEmonCMS,
        subchannels = ToRFM12,

Is that Robin’s sketch, and do you want to change to the “standard” emonTx3.1 sketch?
(I have a copy of Robin’s original website, if you need any information from it.)

Good morning Robert,

thank you for chiming in!

I managed to get the emontx and rpi to talk to each other; also received a programmer to flash sketches.

I don’t remember which sketch I was running hence I thought I re-flash the emontx and start from scratch.

But I have a hard time to find the original sketches. I found the github repository but it links to a dead end related to the sketches.

My setup is simple; single phase home, solar installation, emontx3 v3.2, rpi, mk2pvrouter (built by Robin) and hot water geyser.

I have a unraid server with a home assistant vm and ultimately the energy dump into the geyser shall be reported to home assistant but that doesn’t have priority; priority is increase of self-consumption (and kids moaning that hot water is empty).

Where can I find the sketches?

Hi Tristan,

I managed to get the 2 talking to each other; the tx and rx where swapped; I followed the documentation of the emontx3 where it mentions that tx should be connected to tx of the programmer; maybe only the programmer out of the shop. So I never swapped them over because what is written in the documentation must be right​:laughing::wink:

Now I just need to find the right sketch to get the flash the emontx for the mk2pvrouter and get the feeds into my emoncms.

Is there still an archive? The archive button on top is not working.

I think the sketches you need are here: emonTxFirmware/emonTxV3 at master · openenergymonitor/emonTxFirmware · GitHub – but I have more :slightly_smiling_face:
Look at those and see if any appear to be what you want, if not let me know and I can fairly easily customise one to suit your needs. (I have a V3.2 I can test it on.)

Most are Discrete Sample versions (i.e., it checks the power for 2-300 ms every 10 s, or you can have Continuous Monitoring (measures all 4 powers all the time and reports the average over the last 10 s) if you wish. I’d recommend this if you’re still using Robin’s PV Router.

You cannot have compatibility with the present default radio setup that comes with the emonTx6/emonPi3 – if you expand your system with either, they will need to be loaded with the old radio format software and it gets complicated.

Does/did the PV Router report by radio to the emonPi (I assume this is the original, we now call the emonPi1)?

You shouldn’t be sensible about these things :rofl: The early emonTx was labelled as “Tx is looking for transmitted data” and “Rx is expecting to receive data” and you’re certainly not the first one to be fooled. Modern emonTx’s are labelled correctly according to convention: Tx sends to Rx and Rx receives from Tx.
Here is your emonTx V3.2 “TX” wire goes to the Tx pin on the processor.

I think it was changed for the emonTx V3.4 and later.