I use emontx v3 with 3-phase firmware. Electricity measurement works just fine. Additionally I neen to connect eight ds18b20 temperature sensors using RJ-45 connection and two breakout boards (purchased from online shop here on this site).
Unfortunately I can see reading only from 1 sensor. Connecting two and more sensors shown error “300”.
You cannot have 8 sensors with that sketch. Reading the sensors takes a lot of time away from the processor, and it will lose phase lock and fail to read the power values correctly. As the documentation states: “Integrated temperature measurement (one DS18B20 sensor).”
You will need to use a separate emonTx, or (cheaper) an Arduino, and even then, you will need to modify the standard sketch so that it will return the 8 readings.
Unfortunately , I’m not an experienced programmer… and it’s difficult for me to understand how quickly show data from wemos or Arduino in my dashboard.
This Friday I will travel 150 km from Dubai to Al Ain to my container with CoolTank (www.thecooltank.com) to install temperature monitoring system. I’d like to have temperature readings on local Emoncms Dashboard (it’s already working with 1 sensor). I also have other equipment: emonPi, 2x RJ-45 breakout boards, 8 sensors, Arduino Leonardo.
By the way, my temperature monitoring system with 8 sensors already implemented on Arduino Leonardo, but I enjoyed Emoncms dashboard and would like to use it together with electricity monitoring.
Do you have a simple solution of how I could have 8 temperature readings in my dashboard on Emoncms?
If you have your temperature monitoring working on an Arduino Leonardo, then the easiest solution is to use that. You will need to get the data to the server that runs your emonCMS.
If it is your emonPi, I understand you can use any GPIO pin for a second serial data input, but I am not a RPi expert so I cannot give you the details.
If the server running emonCMS is some distance away (or it is emoncms.org), then most likely the easiest solution is still to connect serially to a Raspberry Pi running emonCMS but send the data via your LAN or the Internet to the emonCMS where you have the dashboard.
If you have a WiFi LAN, then you can use the serial connection again, but this time to a Pi Zero W (which does not have an Ethernet socket, so you cannot use it with a wired LAN).
It will work, and the power readings are likely to be more accurate, but you will still need a server running emonCMS somewhere to accept the data from the 3 emonTx’s.
The change you must make to your Arduino sketch is only to the format in which the data is sent to emonhub. You must send the data as “name:value,” for each sensor. For example (3 sensors):
Note the comma after the pubchannels line and the blank line. As the data comes in as name:value pairs, there is no need for a node definition to decode the data, so for the nodeoffset, choose an unused number (0-4) or if you want to use a NodeID for which there already is a node definition, delete that node definition.
A very big problem that continues to confuse everyone: Tx and Rx are swapped on the emonTx pcb, so as I’ve written so many times here, the emonTx is sending data on the pin labelled “Rx”, and it’s looking for data coming in on the pin labelled “Tx”. That will not be the case with your Arduino, so be careful when looking at the instructions for connecting the emonTx