Not getting any data

Hello everyone.

I'm currently having issues with logging data, on the rasp pi it says data 0 0 0 0 0 0 for all 6 input devices, so far i have the CT sensor and AC-AC adapter and this is logging to http://emoncms.org/

Unfortunately under inputs it displays no data.

How do I fix this?

 

this is my setup came in the post today :D

 

1 x Raspberry Pi - Model B
1 x Pre-Loaded Raspberry Pi Gateway 4GB SD card
1 x RFM12Pi V2 Raspberry Pi Expansion board
(Frequency (RF): 868Mhz RFM12B (Europe Only))
1 x emonTx V3 - Fully Assembled

(emonTx V3: emonTx V3 - Assembled PCB, Battery Holder: emonTx V3 Battery Holder, Assembled Case: emonTx V3 Aluminium Enclosure Case, Frequency (RF): 868Mhz RFM12B (Europe Only), CT Sensor - additional CT's available separately: 100A max clip-on CT sensor, External Sensor: Encapsulated DS18B20 temperature sensor, Power Supply / AC Voltage Sensor: UK Plug - AC-AC Power Supply Adapter) 

Broglah's picture

Re: Not getting any data

Ok so added the temp sensor now and I'm getting readings for that, though it says for input 6 = 156 how do i change that to celsius for the feeds etc?

ukmoose's picture

Re: Not getting any data

Have a look at http://openenergymonitor.org/emon/modules/emonTH which explains how to take the temperature and get it into degrees celsius. 

 

Broglah's picture

Re: Not getting any data

I'm using the DS18B20 - External Temperature on the emonTx V3 is this not the correct way?

Also I have noticed the DS18B20 has come with an additional copper wire tinned on the end, yet all datasheets for this say there are only 3 wires, manufacturing fault perhaps? I.e looks like copper shielding turned into an additional wire.

 

I previously mentioned in my first post, that I'm not getting any readings for AC-AC Adapter as well
Could even be a faulty board :(

I hope I'm wrong.

http://openenergymonitor.org/emon/modules/emonTxV3

Broglah's picture

Re: Not getting any data

Screenshot of inputs:

http://i.imgur.com/RFgPTGL.png

 

ukmoose's picture

Re: Not getting any data

Have a look at http://openenergymonitor.org/emon/modules/emonTH which explains how to take the temperature and get it into degrees celsius. 

If you look at section 3 on that page it says,

"The value's transmitted by the emonTH are all 10x the actual values (185 is 18.5C). Sending the values like this reduces the RF packet length by half which saves transmit time battery. We then scale each value by 0.1 to convert back to the correct reading."

That page will also take you through the process to set up a feed with the corrected value.

I'll leave troubleshooting the lack of power readings to the experts, but the fact you appear to be getting valid data from the emonTx through to Emoncms.org is a good start.

 

 

Robert Wall's picture

Re: Not getting any data

Your value of 212 for the temperature looks to be correct, because in order to get the temperature to 1 decimal place via an integer value - which is how it is transmitted, it is multiplied by 10 in the emonTxV3 sketch. Therefore in the input processing in emonCMS, you must multiply by 0.1 to restore the scaling.

The current input is harder; Common faults are (1) you have not pushed the plug all the way into the socket - the sockets when new can be very stiff, if you can see any metal of the plug, it's not all the way in, (2) you have passed both Line and Neutral wires through the c.t. - you should have only Line or only Neutral.

How are you powering the emonTx? If you are using the ac adapter (with the link JP2 in place) then you should be reading the supply voltage. If you are using batteries, then unless the ac adapter is present and powered when you insert the batteries, it won't read the mains voltage.

Also, it will not read the mains voltage unless you are using CT1. (A bug that was corrected only a day or two ago.)

Do you have a programmer? If so, have you checked the serial output from the emonTx? That should give you valuable information about the quantities it is reading.

Broglah's picture

Re: Not getting any data

Thanks Robert Wall and ukmoose

Powered it using the AC-AC Adapter only.
It came with a 2.1 adapter doesnt fit in all the way but I can hear it hit the back of the connector

I'll pick up a programmer from one of the labs when I return to uni next week.

Thanks very much

 

Broglah's picture

Re: Not getting any data

Also, it will not read the mains voltage unless you are using CT1. (A bug that was corrected only a day or two ago.)

 

Do you know if and when firmware update is to address the issue? sorry for the many questions.

Robert Wall's picture

Re: Not getting any data

"Do you know if and when firmware update is to address the issue? sorry for the many questions"

No. I pointed out the problem to Glyn a little while ago, I think they elected not to take any action. I wasn't quite right above, the actual logic is complicated, and you need to check the logic in the sketch if you're confused. This is what I think the current default sketch on Github does:

The logic flag CT1 is enabled if a ct is detected in the CT1 socket, or by default if no ct's are detected. The rms voltage is calculated only if CT1 is enabled. The rms voltage is only assigned to the transmitted variable if the ac input is detected, else the transmitted value is zero.

That means that if you have an ac input and you have one, two or three ct's in CT2, CT3 or CT4 but not one in CT1, it won't report the mains voltage.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.