Page 9 of 10

Re: Update:DIY wireless temperature sensor for Tellstick

Posted: Fri Mar 17, 2023 9:45 am
by niclasf
The two protocols are ESIC/UPM (a.k.a. Mandolyn) and Fineoffset used by Viking.

The explanation you have received is true. I have fixed this in my Multisensor and Energy-meter. Both have my own variant of Mandolyn/Fineoffset protocol. Those variants are likely as reliable as in the Oregon case.

Re: Update:DIY wireless temperature sensor for Tellstick

Posted: Fri Mar 17, 2023 9:45 am
by free30
niclasf wrote:If you have a multi-sensor and if you have a pickit2, I can send you the alpha firmware.
I should have an S8 (400-2000 ppm) ordered by Monday.
Thank you so much for sharing your work.
If you want to send the firmware privately my email is simonchorley at gmail . com Thankyou :D
niclasf wrote:The two protocols are ESIC/UPM (a.k.a. Mandolyn) and Fineoffset used by Viking.
I've got a couple of Oregon sensors and I find that the DIY multi-senor has a better range. I put an Oregon sensor in the bathroom as I thought it was a bit less disturbing to guests than my DIY one and I had to move the Tellstick Net to get a reliable signal. I did have a wire attached to my DIY aerial but I don't know how important that is.
Also I have found that the Oregon sensors give a higher reading by one degree on temperature and a lower humidity by 5-10% than the DTH22 DIY ones or the DS18B20 DIY sensor. I'm hoping over time the new Oregon sensors one will level out. Could this difference be programming or will I need to be looking for be-built sensor with a display which uses the DHT22 sensor instead?

Thanks again for all the playing around, I'm really looking forward to getting a Co2 meter going, just wish I could afford two sensors... :D

Re: Update:DIY wireless temperature sensor for Tellstick

Posted: Fri Mar 17, 2023 9:45 am
by simonbove
Why have CO2 sensor in your home? Do you have a fire place or?

Re: Update:DIY wireless temperature sensor for Tellstick

Posted: Fri Mar 17, 2023 9:45 am
by free30
simonbove wrote:Why have CO2 sensor in your home? Do you have a fire place or?
1. For the F**k of it.

2. I smoke; very small fire. And I'm hot; big fire.

3. I have a MVHR unit which ventilates, or not, the whole flat. The ventilation levels can be controlled and there is a boost switch.
So if Co2 levels rise, I'm smoking with friends and the ventilation could be turned to high.

I have to say that friends have pointed out that without a girlfriend I think too much about humidity and air quality than is good for me. :D

Re: Update:DIY wireless temperature sensor for Tellstick

Posted: Fri Mar 17, 2023 9:45 am
by simonbove
free30 wrote:
simonbove wrote:Why have CO2 sensor in your home? Do you have a fire place or?
1. For the F**k of it.

2. I smoke; very small fire. And I'm hot; big fire.

3. I have a MVHR unit which ventilates, or not, the whole flat. The ventilation levels can be controlled and there is a boost switch.
So if Co2 levels rise, I'm smoking with friends and the ventilation could be turned to high.

I have to say that friends have pointed out that without a girlfriend I think too much about humidity and air quality than is good for me. :D
Rolling on the floor laughing :-D

Re: Update:DIY wireless temperature sensor for Tellstick

Posted: Fri Mar 17, 2023 9:45 am
by free30
wooo hoo.

I've got the Co2 sense and it works great !!!

It works with S8 and DTH22 and one DS18B20 Dallas Temperature sensor, tested. (Telldus NET)
It does not work without the S8 sensor attached, as even if you earth the data pin for the sensor it still doesn't settle.

The S8 is giving readings from just over 400 outside (London) and 600-900 inside. (x20)
It would be nice if I could select CO2 sensor in Tellmon as I think its a great for people like me who have not figured out the local server bit.
The sensor seems to flash all the time and I can see why it would drain a battery quickly, although for this sensor if used USB power.

I don't like the PIR sensors reporting as temp. It would be better if they worked like the pre-built PIR sensor, with a device on/off code with and delay instead.

Also I have a multi sensor with four Dallas temps sensors on and I'd like it to report just the temp and not the battery status. I can tell when it stopped working anyway and the battery doesn't effect the temp reading, unlike the humidity sensors. It would just tidy up the sensor page on Telldus for me. Any-chance you could do a firmware that works with the Dallas Temp sensor but doesn't report the battery?

Thanks again for sharing your work, I've enjoyed making them. I've even got my girlfriend back and I still think I might get another Co2 sensor to build. :?
I've removed the link for the USA seller above as they had the wrong sensor. Please if anybody else is going to buy one make sure its a SenseAir, S8, 004-0-0013 (400ppm-2,000ppm), not any of the other configurations they sell.

Thanks again :D :D :D I'll let you know how I get on with the CO2 sensor.

Re: Update:DIY wireless temperature sensor for Tellstick

Posted: Fri Mar 17, 2023 9:45 am
by niclasf
Sounds great that you have it working!

Your observation regarding the beta firmware for the CO2 sensor is correct. It does not work good if you do not connect a CO2 sensor to it.
I need to work on it some more first :)

The S8 seem to do a CO2 measure every other second. I have noticed that this drain the batteries quickly as you say.

Your ideas is fully understandable. The reason for why it looks like it does is because I have got things working and then left them as is.
PIR sending ON/OFF is reasonable. I'll see what I can do.
Dropping the battery status from the 1-wire-sensors is also reasonable but some might disagree. I can try to make one for you that you can test. I guess you want the S8 variant modified?

The S8 sensors can be bought from m.nu, https://www.m.nu/s8-co2matare-fran-sensair-p-1440.html

Re: Update:DIY wireless temperature sensor for Tellstick

Posted: Fri Mar 17, 2023 9:45 am
by free30
Yes thanks again.

Its really responsive to people and smoking and such and really useful with ventilation systems.

Yes the one from here worked for me >> https://www.m.nu/s8-co2matare-fran-sensair-p-1440.html

I guess an Senseair S8 4B would be more ideal for a battery powered sensor but I'm unlikely to spend any more money on changing, but if it has the same protocol it might just work as a replacement.

I would like a firmware that didn't report batter on the Dallas sensors but not with the s8. Its one I built a while ago which reports the four ventilation streams and doesn't have an s8 on. Only if you get a moment, would want to put you out for it.

Thank you again for sharing :D

Re: Update:DIY wireless temperature sensor for Tellstick

Posted: Fri Mar 17, 2023 9:45 am
by krambriw
@Niclas,

Hi, have you considered to add a light sensor device somehow?

Like this one, TSL252R, for example
https://www.elfa.se/elfa3~se_en/elfa/in ... TbV9_D_BwE

I am currently using a OneWire ligth sensor module to measure the current light level and it is of coures working very reliable and gives good readings. This one:
https://www.m.nu/ljussensor-analog-vers ... p-186.html

I was however interested to try your wireless sensor to avoid cabling.

The main goal is to find a good wireless light sensor that I can combine with my plugin for EventGhost that I use for control and automatic manouvering of awnings/blinds/shutters.

Best regards, Walter

PS Is the protocol selectable, i.e. can I select to use either mandolyn or fineoffset?

Re: Update:DIY wireless temperature sensor for Tellstick

Posted: Fri Mar 17, 2023 9:45 am
by free30
krambriw wrote: PS Is the protocol selectable, i.e. can I select to use either mandolyn or fineoffset?
I can answer that one. The protocol is selected by which firmware you program onto the PIC chip. Niclas has written both protocols to work with most sensors. Not sure about the light sensor though, you'll have to wait for Niclas.

@Niclas.
Regarding the CO2 sensor, I've fitted a resistor between earth and data. This helps the sensor recover after crashing but does not stop it going wrong with very high readings. I had tried setting up plugs to turn the sensors off at high levels but this did not always work in time. The resistor seems allow the sensor to restart as soon as levels return to below 96.5%. I was wandering if this problem might be caused because I am using 5.25v and not 5v.
I'm finding the CO2 sensor much more useful than humidity and temperature. Thanks again. :D

Still be nice to be able to turn off the battery report on the dallas sensors. I was thinking you could make it an eeprom option.
P.S. in the first post you have the eeprom options as "0x02 PIR_SENSOR_ID - 0x03 DHT_SENSOR_ID." But I think they are the other way around. Also I think your diagrams versions have been switched?
:clap:

Re: Update:DIY wireless temperature sensor for Tellstick

Posted: Fri Mar 17, 2023 9:45 am
by niclasf
krambriw wrote:@Niclas,

Hi, have you considered to add a light sensor device somehow?

Like this one, TSL252R, for example
https://www.elfa.se/elfa3~se_en/elfa/in ... TbV9_D_BwE

I am currently using a OneWire ligth sensor module to measure the current light level and it is of coures working very reliable and gives good readings. This one:
https://www.m.nu/ljussensor-analog-vers ... p-186.html

I was however interested to try your wireless sensor to avoid cabling.

The main goal is to find a good wireless light sensor that I can combine with my plugin for EventGhost that I use for control and automatic manouvering of awnings/blinds/shutters.

Best regards, Walter

PS Is the protocol selectable, i.e. can I select to use either mandolyn or fineoffset?
I have considered it, but I have just not prioritized it.
There is one alternative that I find more beautiful. That is that I add support for the 1-wire chip DS2450. I am however struggling with getting several different 1-wire families to work together. Or actually different sensor types.
I have already today support for all DS18X2Y sensors. However, when I add for example a DS2423 to the 1-wire bus, I only get that one working and not the temperature sensors. Same goes for the MAX31850. I have that working stand alone, but not together with the other DS18X2Y-sensors.
This is one thing I focus on to get to work before releasing next firmware.
The other important sensor I want to get the support for is the CO2-sensor S8 from SenseAir. I have a semi working beta that I have released to ONE person, and that is @free30 here in this forum :) That firmware is really just the first version I got some positive results with. All values are good from the sensor, but the corner cases does not work, just like @free30 states.

Now I will go and do some coding :)
I'll let you know when the code is ready :) ... if you still have the need by that time.

Re: Update:DIY wireless temperature sensor for Tellstick

Posted: Fri Mar 17, 2023 9:45 am
by niclasf
free30 wrote:
krambriw wrote: PS Is the protocol selectable, i.e. can I select to use either mandolyn or fineoffset?
I can answer that one. The protocol is selected by which firmware you program onto the PIC chip. Niclas has written both protocols to work with most sensors. Not sure about the light sensor though, you'll have to wait for Niclas.

@Niclas.
Regarding the CO2 sensor, I've fitted a resistor between earth and data. This helps the sensor recover after crashing but does not stop it going wrong with very high readings. I had tried setting up plugs to turn the sensors off at high levels but this did not always work in time. The resistor seems allow the sensor to restart as soon as levels return to below 96.5%. I was wandering if this problem might be caused because I am using 5.25v and not 5v.
I'm finding the CO2 sensor much more useful than humidity and temperature. Thanks again. :D

Still be nice to be able to turn off the battery report on the dallas sensors. I was thinking you could make it an eeprom option.
P.S. in the first post you have the eeprom options as "0x02 PIR_SENSOR_ID - 0x03 DHT_SENSOR_ID." But I think they are the other way around. Also I think your diagrams versions have been switched?
:clap:
You are correct with how to choose the protocol. But I do tend to move more focus on the fineoffset protocol since it is easier to use.

The firmware for the CO2-sensor is very much a beta. I have not tested it very well at all. That is the reason why you are the only one having it at hand :)
Not sure why a resistor seem to help. The reason why it gets stuck is likely because I have tried making the code plug and play with CO2 and PIR-sensor. When you reach the CO2 max the PWM output is 100%. This makes the output always high. Then my firmware thinks it is a PIR sensor... just a thought :)

As soon as I have it ready and tested I let you know. And thanks for your feedback!

Re: Update:DIY wireless temperature sensor for Tellstick

Posted: Fri Mar 17, 2023 9:45 am
by free30
niclasf wrote: my firmware thinks it is a PIR sensor... just a thought :)
As soon as I have it ready and tested I let you know. And thanks for your feedback!
Yes this would make sense with what I've experienced. I find it 'jams' the other sensors when it crashes. Like its sending data all the time.
Not sure how effective my resitor is, maybe it was more hope than good testing.
Thanks again for allowing me to be the one. :D

Re: Update:DIY wireless temperature sensor for Tellstick

Posted: Fri Mar 17, 2023 9:45 am
by niclasf
Check your mail. You have got a new beta version to test. It should work fine even when reaching 2000ppm and recover from that.
I have also disabled the battery status for the 1-wire temperature sensors.

8)

Re: Update:DIY wireless temperature sensor for Tellstick

Posted: Fri Mar 17, 2023 9:45 am
by free30
Great, the beta seems good.
I've had no problems.

It reports a CO2 sensor even if one is not connected but that's easily fixed. The 100.1 pushes the graphs in Tellmon up a level and would be better if it just reported 100. But like I say nothing really; I'm not sure I'd even re-program the chips for these two minor issues.

Thank you so much for sharing. If you ever need anything in London, let me know :D

Simon