Expandable Zigbee Repeater Solution (With Temperature, Humidity, Pressure and Light sensors)

Thank you for letting me know. I am glad that you are happy with the sensor.

Just FYI, the module is also a repeater. I hope that it will help to make your home Zigbee mesh better.

If you have a chance, please do help spread the word around. As a maker who just starting, I can always use help from happy customer.

Thanks
Iman

1 Like

@iharyadi I was searching for a repeater for my Aqara sensors and came upon this thread. I am using Home Assistant + DeConz/Conbee II Zigbee hub though, will your repeater work with this setup?

1 Like

I have not try the DeConz/Conbee. I have a feeling that It should work. There was a community member that uses similar setup to pair with my sensor. You may want to reach out to one of the individual in the thread.

Anyway, your timing is so impeccable. I just tested the sensor with home-assistant + zigbee2mqtt. So far it work fine in this setting. But, this is just something that I got running for a day or so.

I do not want to turn this into hubA vs hubB discussion. If you need more info for the home-assistant use, please feel free to PM me.

I am testing the sensor with a few different hubs as a hobby. I also want to make sure that for all member who make investment on my modules can use it beyond just a specific hubs.

Thanks
Iman

1 Like

Will this still support an external temperature probe? If so does the device handler support it?

At this point, there is a couple way to support external probe.

The first one is using an analog input with K-type probe thermocouple. You need to have a module that take k-type thermocouple to the analog input. Please do shop around for AD8495. There should be better price for it. I just give you an example.

You need the K-Type probe itself.

I have the DTH for this. I can find it for you.

Today, the sensor support serial expansion. If you are open to do Arduino coding, there are a few more option. You can use probe like below.

This probe can be found at much much more lower cost. You can use a cheap arduino Uno or STM32 to interface this probe and send the data to the hub through the Environment sensor. These MCUs can be had for less than $5. The Environment Sensor would act as serial tunnel. It is kind of a replacement to ThingShields.

I brought these options to answer @douglaspitman questions. However, I am also interested to learn if anyone else would need something like an external probe. If there are enough need, I am considering to find the ideal solution and prepackage them into ready to use solution rather than a DIY.

Thanks
Iman

I’m not a programmer so your option 1 is what I would consider. I bought one of your devices a few weeks ago for the repeater function. It’s helped my Zigbee network, so I bought another one today to get better coverage on the other side of my house (in the garage). I have been looking at ways of monitoring my freezer and believe just a probe into the freezer would be my best option… so I recalled you had something rigged up a few years ago… I can knock off two use cases for just a little more money. What is your opinion on this probe with the AD8495?

1 Like

That would work. Any K-Type probe should work with AD.

I personally would find something cheaper K-Type probe. I got some probe that look like just a cable. They work just fine. Please consider the braided cable thickness. It is premium feature. But, if it cause your freezer not closing properly, may be a cheaper cable K-probe is easier to route eventually.

Thanks
Iman

In the ST community there is a project using this type of sensor to a device with an external probe option. He drilled a hole and used a rubber grommet to eat it. Looked good so I thought I’d go that route. You might want to post you level of interest in that string, it sounds like a popular use case.

Iman, were you able to locate your device handler for the external temp gauge?

I’m going to do two of them, one for the freezer and another to monitor the lake water temperature.

Thanks

Here is the DTH,

On the preference page of the Environment Sensor, you can enable the analog input. Then, specify TempProbe as handler.

The calculation on the following line may need to be adjusted. You may not need the -250 on the following formula.

float temp = ((((((zigbee.convertHexToInt(adc)*state.lastVdd)/0x1FFF)+0.025)*2) -1.25)/0.005) -250.0

AD8495 can be fitted by configurable reference voltage. I found a hard lesson that some vendor may have different refernce value. Once you got the board, we can try some experiment to find out.

You can power AD8495 from 5V or 3.3v. If you power it from 5V you may need to have voltage divider. The code currently assume that you will be powering from voltage divider. The reason for voltage divider is that using 5V, you can measure higher temperature. But, the MCU is can only measure up to 3.3V. The voltage divider will divide the output voltage to make it lower. The code above use 1/2 voltage divider. If you go this route, the ideal resistor value is 10k.

Please see https://en.wikipedia.org/wiki/Voltage_divider

If you are fine with 3.3v, you can connect the output of AD8495 straight to the AI. Then, the code to calculate the temperature is

float temp = ((((((zigbee.convertHexToInt(adc)*state.lastVdd)/0x1FFF)+0.025)) -1.25)/0.005) -250.0

You just need not to multiple the voltage calculation by 2. Using 3.3V as power to AD8495 will simplify the wiring. It is just support less temperature range. Based on what you mentioned, you are not trying to measure extreme heat, I do not see that you need higher voltage. AD8495 can be powered up to ~18v for higher temperature support.

Thanks
Iman

Thanks
Iman

I have realized that since the Serial port feature has been introduced, I have do not have any example on how to use it.

Thanks to @douglaspitman for bringing up the topic, I write an Arduino sketch that read DS18B20 sensor and send the data through the Environment sensor.

I use a board named blue pill. It is based on STM32. Arduino has support for this board. I go with Arduino route since it is really easy to write the code that pull data from DS18B20 and send it over through the serial port. Arduino has so many library so that we can write simple code quickly.

I will upload the code on Arduino and DTH. I will avoid the detail instruction on this thread to keep it short. But, if you need more information, please do feel free to reach out. I will be happy to document them.

This is the rough image how all the component put together for testing. I am also testing how long I can wire the probe. I am able to get the wiring roughly around 15 feet. I use CAT-5 cable. I have suspicion that I can go much longer than 15 feet. I do not have cable longer than that. I am looking to get 100 feet cable to test if possible.

You can get DS18B20 sensor for less than $3, if you are not afraid of looking to the Chinese supplier. The blue pill boards can be purchased for less than $3. For total of less than $6, you can extend the sensor to include the probe. Here is the kicker, this is not the end of what you can do. If you notice the Arduino board above, we only use small number of pin in the board. There are plenty of other sensor that you can connect to the Arduino and expose it to the ST hub.

If you have something in mind to connect, please feel free to reach out.

Thanks
Iman

@iharyadi I just received your environmental sensor I bought from you on EBay. Also does this need an external antenna, if so where does it go?

Hi Joel,

The current board does not need external Antenna. You may have my older model. At that time, I was trying out which configuration member here find suitable for them. It turn out external antenna module is very low in term of “want”. Most member here, prefer the antenna that is built in the PCB.

So to answer your question, please do not install any antenna. This module should work out of the box as is.

Thanks
Iman

Is there a way to configure the reporting frequency, like to every minute of your module?

I’ve bought both the STM32 and the AD8495. If I don’t get to over my head I’d like to try and hook up a water level sensor to the stm32 as well as the DS18B20 temp probe, to read the lake water, and use the AD8495 and K sensor for the freezer. I’d like to ask for your help with the wiring once everything gets here this week.

https://www.vegetronix.com/Products/AquaPlumb/

This is the water level sensor I was looking at.

For standard Light, Temperature, Humidity, pressure, it will follow zigbee configuration. It can be configured to report data per minute.

For serial port, the interval should be controlled on the arduino side.

Let me know when the time come. Wiring should be ok.

Have you work on Arduino before? I have a extra STM32 bluepill + DS18D20. I can upload the sketch and send you one if you like. I could have send them together with your order but it is a bit late now. I do have extra if you want it. This way you do not have to deal with programming Arduino.

Thanks
Iman

I’ll buy the parts and repeater from you, for the stm32 solution. I hadn’t ordered the repeater for this project yet only the components. Just let me know how you want it transacted.

Doug Pitman
314 223-1274

Sorry, I did not answer this sooner. Don’t worry about the STM32 and DS18B20. I will give them to you for free. They do not cost that much. Just let me know when you are ready. I will ship them together with the repeater.

I was informed from a member here that Ebay will charge shipping on each sensor for international order. Meanwhile, I can easily combine shipping to one box easily up to 5 sensors.

If you are planing to purchase the sensor and ship it internationally through ebay, please send me PM on Ebay. I can refund your shipping cost for the sensors after the first one up to 5 sensors.

As last resort, If Ebay is not possible, please PM me here. I should be able to arrange something.

Thanks
Iman

1 Like

is there the possibility of connecting multiple ds18b20s ?