Hi,
I'm trying to fix a remote temperature sensor from a wall clock. Problem is that it shows too high temperature - probably bad temperature sensor?
Can anyone help me to identify which sensor is this (see attached photo).
It would be also great if I could read a signal from that transmitter (433mhz) with Moteino... any idea if that's possible? :)
(http://shrani.si/f/1i/FZ/4CLnc2ho/remotetemptransmitter.jpg)
Looks like a thermistor. They come in various resistances at a given temperature. Looks like the NTC type are more popular.
Here's a list on DK (https://www.digikey.com/products/en/sensors-transducers/temperature-sensors-ntc-thermistors/508?k=thermistor&k=&pkeyword=thermistor&sv=0&pv69=80&sf=1&FV=ffe001fc&quantity=&ColumnSort=0&page=1&stock=1&pageSize=500) where you can choose from. How to identify yours I am not sure other than checking resistance at a given temperature and determine from that, maybe there's a better way.
RE transmitter - why bother, just make a Moteino + WeatherShield ;)
Kidding aside - there are actually discussions in the forum about picking up signals from all kinds of such transmitters. I didn't closely follow those threads but I don't believe people have had much luck in actually reading signals from those, but I could be wrong, worth a search.
Thanks for the info Felix.
I'll try to figure out which thermistor is used in this case.
Quote from: Felix on February 16, 2019, 10:07:15 PM
RE transmitter - why bother, just make a Moteino + WeatherShield ;)
Kidding aside - there are actually discussions in the forum about picking up signals from all kinds of such transmitters. I didn't closely follow those threads but I don't believe people have had much luck in actually reading signals from those, but I could be wrong, worth a search.
Hehe, I already have Moteino + WeatherShiled ;D
It would be really cool to somehow find out how are those "Remote temp. transmitter" signals encoded... so I could maybe modify WeatherMote to send signals to Wall Clock :)
@Lukapple, if you search the forum for OOK library, you may find what you need. With a Moteino, it certainly is possible to emulate your weather remote and transmit to your wall clock. I couldn't tell what brand it is from the photos, but the major brands use similar coding and it is documented on the web.
Receiving OOK signals with a Moteino while also using it as a normal Moteino FSK radio is tricky and probably not worth the effort.
Tom
Quote from: TomWS on February 17, 2019, 08:23:19 AM
@Lukapple, if you search the forum for OOK library, you may find what you need. With a Moteino, it certainly is possible to emulate your weather remote and transmit to your wall clock. I couldn't tell what brand it is from the photos, but the major brands use similar coding and it is documented on the web.
Receiving OOK signals with a Moteino while also using it as a normal Moteino FSK radio is tricky and probably not worth the effort.
Tom
Thanks for the hint, I'll do some research on OOK. I know that's probably not worth the effort, but this stuff really interests me and I want to learn something new :)
The radio controlled wall clock is some XY brand and it looks like this:
(http://shrani.si/f/P/KW/4qC7EF6t/clock.jpg)
And here are some close-up shots of RF transmitter. I can't find any brand info there.
Btw, what is that big black bubble-gum like dot? Is that just LCD controller or is there also controller where all the signal encoding happens?
I'll also try to dissassemble the clock, maybe I'll find out some more stuff from the components in there.
(http://shrani.si/f/N/Yn/1CePMzzT/trans1.jpg)
(http://shrani.si/f/3w/cz/1Xv9yUzX/trans2.png)
(http://shrani.si/f/6/po/4XLEaqnD/trans3.png)
If the clock is working fine, I wouldn't mess with it. The 'dot' is just epoxy potting compound poured over a humidity sensitive chip (either directly bonded to the PCB or sensitive in its own enclosure).
The key thing, I think, that you'd want to do is look at the data stream from the Weather TX device that you have. These are definitely NOT sophisticated and probably only consists of two key signals: Enable (to power up the transmitter) and Data. The data will be a stream of ones and zeros and then the flipped version of the same data (zeros and ones) so the net energy is half the overall power. If you look at those bits, compared to the displayed data and the commonly used signals, you can probably find the encoding you need to emulate. It's actually pretty easy if you have access to a DSO.
Tom
Hi,
some years ago I found a way to receive signals from this kind of transmitter but I used another platform.
On the site you can find a link to a page where somebody used an arduino to read the signals of this kind of transmitter.
I didn't use a RFM69 but used receivers like the Aurel RX 4MM3. These should work with the Moteino as well.
https://old.ghielectronics.com/community/codeshare/entry/1060
Hi,
first I have to find a way to listen to those RF signals.
So my options are:
- use moteino (or another platform like RoSchmi mentioned, but I prefer Moteino) with OOK library. Does that library also filters signal (remove noise, etc..) or do I need to take care of that?
- use osciloscope. I've PoScope (http://www.poscope.com) and I'm not sure if this kind of analysis can be done with this kind of osciloscope, and what kind of probes should I use (I don't have much experiences with scopes)
- use some RF sniffing tool, which can be expensive. I've found this one, which looks promising: RF Exploer (http://j3.rf-explorer.com)
Once I get access to binary data stream, I can start with analysis and try to decode that data.
Ok, I'm one step closer to solution. I've captured a signal from temperature transmitter with spectrum analyser tool.
Could someone help me with decoding the signal on attached image.
Temperature was 29.7C and transmitter was set to channel 3 (there is switch with 3 channels).
(http://shrani.si/f/3g/Cv/4TMW27gT/temp297.png)
Hello Lukapple,
please see my last post. The transmitter you showed looks exactly like the transmitter I analyzed. So I think that you can find out from the links on my post and from http://rayshobby.net/reverse-engineer-wireless-temperature-humidity-rain-sensors-part-1/ how the signals can be decoded. I would be interested myself to see how RFM69 can be used to digtitalize the RF-signals.
Quote from: RoSchmi on March 02, 2019, 12:28:08 PM
Hello Lukapple,
please see my last post. The transmitter you showed looks exactly like the transmitter I analyzed. So I think that you can find out from the links on my post and from http://rayshobby.net/reverse-engineer-wireless-temperature-humidity-rain-sensors-part-1/ how the signals can be decoded. I would be interested myself to see how RFM69 can be used to digtitalize the RF-signals.
Wow, thanks for the link, good reading! Pattern looks simmilar ... bits are seperated with high signal, 0 is represented with short low signal and 1 with long low. I'll try to decode it and post results. :)
Ok, I've figured it out ;D
Temperature in C is hidden here:
0101 10100001 10100001 00101001 00010011 (29.7C, 297 = bin 100101001)
Still gotta figure out what the rest of bits are...
It would be great if I could encode signal from my moteino temperature sensors and send them to this wall clock. But is probably impossible to find out how that checksum is calculated :(
Anyone knows how is this encoding called (low signals of different lenght, separated with high signal)?
edit:
And this is temperature 24.6 (11110110), transmitted on different channels:
01011010 10101100 00001111 01100000 1110 (channel 1)
01011010 10101101 00001111 01100000 1110 (channel 2)
01011010 10101110 00001111 01100000 1110 (channel 3)
I still have no idea what the other bits are... probably crc and battery level (there is low battery indicator on the clock)
CRC can't be included in the other bits if the other bits aren't changing as you change the channel encoding.
Occam's Razor says "Just copy the rest of the bits and try it!" Synthesize different temperatures in the string and see if the clock reflects those temps.
You could try to use nearly empty batteries to see which bits represent the battery level. Some transmitters of this kind set a random ID when they are powered up by changing the batteries.
I've done another test and put temperature transmitter into freezer. Now I can clearly see which bits are reserved for temperature:
01010100 00101000 11111111 10100000 1110 (-0.6 C)
01010100 00101000 11111111 00100000 1110 (-1.4 C)
I still need to do that test with nearly empty batteries (currently I don't have any :) )
Yes, it looks like CRC isn't included. I'll just try to copy other bits.
Any idea how to replicate that kind of signal with Moteino(RF69HW)?
Quote from: Lukapple on March 05, 2019, 03:56:48 AM
Any idea how to replicate that kind of signal with Moteino(RF69HW)?
I've done it where I didn't need to keep switching back and forth between OOK and Moteino network. If you only want the OOK function, I can see what I have. The code may be too 'married' to another type of device, but the OOK transmitter might be useful. I used Kobuki's code as a base (https://lowpowerlab.com/forum/moteino/new-ook-library-for-moteino/)
It would be great, if you can share the OOK function. Thanks!
Hello Lukapple,
I had a look on my code how to retrieve the temperatur in Celsius and Fahrenheit from the received bit stream.
So there is no need to reinvent the wheel.
The code is in C#.
// retrieve the measured temperature as an int from the received '0' and '1' in the char array 'outArray'
int gotValue = 0;
int shiftValue = 1;
for (int i = 0 ; i < valueEndPos - valueStartPos + 1; i++ )
{
if (outArray[valueEndPos - i] == '1')
{
gotValue += (shiftValue << i);
}
else
{
if (outArray[valueEndPos - i] != '0')
{
gotValue = 9999; // gotValue = 9999 if there is at least one ? in the array
break;
}
}
}
// Some calculations to transform the measured values which are valid for
// the range from -50°C to +70°C in a form that can be easily displayed
// I'm sure there are more elegant methods to do this task
//Here the int e.measuredValue holds the temperature (gotValue) from the code above
int measuredValue = e.measuredValue / 2; // remove last digit, then one bit = 0.1 degree Celcius
measuredValue = measuredValue & 4095; // new remove leading 1 s
//if ((3595 < measuredValue) && (measuredValue < 4096)) // Negative readings are valid from -0.1 to -50 degree Celsius
if ((3700 < measuredValue) && (measuredValue < 4096)) // Negative readings are valid from -0.1 to -39 degree Celsius
{
measuredValue = 4096 - measuredValue;
degreeCelsiusString = "-";
degreeCelsiusSign = false; // sign is "-"
measuredValuePlus50 = 500 - measuredValue; // // to have only positive values we add 50 degree Celsius
} // then -50°C = 0, 0°C = 50, 70°C = 120
else // now it is easy to compare with certain thresholds
{
if ((measuredValue >= 0) && (measuredValue < 701)) // Positive readings are valid from 0 to +70 degree Celsius
{
degreeCelsiusString = "+";
degreeCelsiusSign = true; // sign is "+"
measuredValuePlus50 = measuredValue + 500; // add eqiv. 50 °C
}
else
{
degreeCelsiusString = "???";
}
}
if (degreeCelsiusString != "???")
{
// calculate celsius value
//decimalValue = ((double)measuredValue / 10);
decimalValue = degreeCelsiusSign ? (double)measuredValue / 10 : -(double)measuredValue / 10;
decimalValuePlus50 = ((double)measuredValuePlus50 / 10); // by adding 50 degree Celsius the valid range -50 - + 70
// is now 0 - 120
degreeCelsiusString = decimalValue.ToString("f1") + " °C";
// calculate fahrenheit from celsius
fahrenheitValue = decimalValue * 1.8;
if (degreeCelsiusSign == false)
{ fahrenheitValue = fahrenheitValue * -1; }
fahrenheitValue += 32;
if (fahrenheitValue >= 0)
{
degreeFahrenheitString = "+" + fahrenheitValue.ToString("f1") + " °F";
}
else
{
degreeFahrenheitString = fahrenheitValue.ToString("f1") + " °F";
}
}
else
{
decimalValue = InValidValue;
}
outString = outString + bitString.Substring(0, 9) + " " + bitString.Substring(9, 15)
+ " " + bitString.Substring(24, 5) + " Measured Value: "
+ degreeCelsiusString + " (+50 = " + decimalValuePlus50.ToString("f1") + ") "
+ degreeFahrenheitString + " " + " Time: "
+ e.ReadTime.Hour + ":" + e.ReadTime.Minute + ":" + e.ReadTime.Second
+ " Repetitions needed: " + e.repCount
+ " Failed Bit-Count: " + e.failedBitsCount
+ " Eliminated Noise Spikes: " + e.eliminatedSpikesCount;
_Print_Debug(outString + "\r\n");
Actually I already have conversion functions from my other project (temperature sensor DS18B20). Thanks for the code anyway!
What I really need is example function to reproduce signal with Moteino(RF69HW)? @TomWS can you share a demo sketch please?
I've managed to successfully replicate the signal!
Now I can send temperature from my moteino sensors (ch1=outdoor, ch2=pool water temp.) to the wall clock ;D
Thanks for help guys!
Lukapple, that's awesome!
Any chance you can post your code/findings here for posterity?
Sure, here is the example sketch, that sends 60.0C signal to channel 1.
It sends following signal 5 times (original temperature transmitter sends package 5x, so I reproduced that):
010101011000100000100101100000010101
Please note that this is just a test sketch and not final production code. :)
Necessary modifications to the Moteino: connect DIO2 to D3 (INT1) pin (DIO2 is the OOK data pin)
(https://media.giphy.com/media/dheX5L6AlZ3D54rexB/giphy.gif)
Great, thank you.