No devices found on emontx v3 when DS18B20 connected to terminal block

Im new to emontx (and ardruino) so its very possible I am doing something very stupid.

I am trying to monitor temperature using the a new pre assembled emontx v3 board. I have connected a DS18B20 to the terminal block as described here http://wiki.openenergymonitor.org/index.php?title=EmonTx_V3 I have then tried to use the temperature search example here https://github.com/openenergymonitor/emonTxFirmware/blob/master/emonTxV2... to find the correct temperature sensor device however this doesnt find any device, sensors.getDeviceCount() is zero. I have tired to set ONE_WIRE_BUS to both 5 and 19 but I get the same result from both.

Can someone confirm that ONE_WIRE_BUS should be 5 for emontx v3? Is there anyway that i can tell if the DS18B20 is connected properly to the terminal block? Is there any other thing i can do to narrow down the problem?

Thanks.

Robert Wall's picture

Re: No devices found on emontx v3 when DS18B20 connected to terminal block

You don't need those sketches. The sketch that was pre-loaded on your emonTx V3 automatically recognises and uses a single DS18B20 if it is connected when the sketch starts up. You need to go to http://openenergymonitor.org/emon/modules/emonTxV3 section 2: Upload the Firmware and re-load the sketch. If this does not detect your sensor, it is possible that the sensor itself is faulty, and in that case I suggest you email the shop.

The "temperature search" sketch will never work on the V3, because the sensor is powered by ADC5 and that isn't turned on in that sketch.

devilabit's picture

Re: No devices found on emontx v3 when DS18B20 connected to terminal block

Thanks for that Robert.  I have sorted the issue now.  It works fine once i uploaded the latest firmware.

Comment viewing options

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