Trouble with TX4 and temp sensors

Hello @whitecitadel the latest firmware examples Im working on are here: GitHub - openenergymonitor/avrdb_firmware: EmonTx4, EmonPi2 & EmonTx5 combined firmware but you may want to hold off using these until I release them properly.

There are three firmwares:

  • emon_DB_6CT - this uses the newer emonLibDB library and supports both single and 3-phase modes (switchable with a #define setting) and up to 6 CT’s. This firmware is suitable for all three hardware variants, it include energy values saved to EEPROM, and serial configuration. This is the recommended firmware for most applications.

  • emon_DB_12CT - this uses the newer emonLibDB library and supports both single and 3 phase modes and up to 12 CT’s. Suitable again for all three hardware variants. This does not include energy values saved to EEPROM or serial configuration. Calibration is currently hard coded and require firmware compile and upload using the Arduino IDE.

  • emon_CM_6CT_temperature. This is primarily for emonTx4 & emonTx5 applications that require temperature sensing . It uses the emonLibCM library that supports temperature sensing (albeit with accuracy caveats). For emonPi2 applications that require temperature sensing, the RaspberryPi itself handles the temperature sensing directly offloading this task from the avrdb microcontroller. This firmware is also useful for applications without voltage sensing: e.g current only or apparent power. The number of temperature sensors can be changed with a #define setting, standard is 3, but I’ve tested up to 6.