Поблагодарить автора: https://yoomoney.ru/fundraise/P2XLTgJsB6k.231012
Thank the author: https://yoomoney.ru/fundraise/P2XLTgJsB6k.231012
Телеграм чат DIY Devices - https://t.me/diy_devices
Продажа DIY Устройств - https://t.me/diydevmart
Только для не коммерческого использования. Запрещается использовать проект или его части в коммерческих целях без согласования с автором проекта.
For non-commercial use only. It is forbidden to use the project or its parts for commercial purposes without the consent of the author of the project.
Option 2 - DIY outdoor/indoor temperature, humidity and atmospheric pressure sensor, long battery life
You can make your own pcb here - https://www.pcbway.com/setinvite.aspx?inviteid=550959
It is a wireless temperature, pressure and humidity sensor, supports working in Zigbee networks. Open source project. Built on CC2530 chip (Zigbee), two modications: Ebyte E18-MS1PA2-PCB radio module with amplifier and Ebyte E18-MS1-PCB. Powered by the most common AAA batteries. The device comes with pre-installed open source software. Supported in Z2M, ZHA, etc.
RF module EBYTE E18-MS1PA2-PCB (CC2530) or Ebyte E18-MS1-PCB.
BME280
Long runtime with two AAA battery.
Consumption in data transmission mode ~25mA|50mA, in sleep mode 1.8μA.
-
Download the Smart RF Flash Programmer V1 https://www.ti.com/tool/FLASH-PROGRAMMER
-
Open the application select the HEX firmware file
-
Connect the device with wires to CCDebugger, first erase the chip, then flash it.
https://github.com/ZigDevWiki/zigdevwiki.github.io/blob/main/docs/Begin/IAR_install.md
https://github.com/sigma7i/zigbee-wiki/wiki/zigbee-firmware-install (RU)
Open the preinclude.h file, select the desired configuration
//#define OUTDOOR_LONG_RANGE
//#define BDB_REPORTING
- Open z2m, make sure that joining is prohibited
- Insert the battery into the device
- Click on the icon in z2m - allow joining (you have 180 seconds to add the device)
- Go to the LOGS tab
- Press and hold the mode button on the device, the indicator will light up in a second. If the device has found the network and started the login procedure, the indicator will go off after 6-9 seconds, and you can release the button. If the indicator goes off after 15 seconds, it means that the sensor has not detected an open network or has been denied a network connection.
- Hold down the mode button for 10 seconds, after 2 seconds the LED will start flashing at a frequency of once per second, after 10 seconds the LED will light up for a long time, the device will send an exit message to the network and erase all network settings in its non-volatile memory.
By default, the device is configured to operate on a timer, data thresholds are not set. The device will send data to the network every time it wakes up. For the version with a standard radio module, the default sleep interval is set to 15 seconds. For the version with a signal amplifier, the interval is 30 seconds. In order to configure the device, you must independently set the minimum report interval other than zero and the data change threshold.
If a device does not connect to your coordinator, please try the following:
- Power off all routers in your network.
- Move the device near to your coordinator (about 1 meter). or if you cannot disable routers (for example, internal switches), you may try the following: 2.1. Disconnect an external antenna from your coordinator. 2.2. Move a device to your coordinator closely (1-3 centimeters).
- Power on, power on the device.
- Restart your coordinator (for example, restart Zigbee2MQTT if you use it).
If the device has not fully passed the join
- If the device is visible in the list of z2m devices, remove it by applying force remove
- Restart your coordinator (for example, restart Zigbee2MQTT if you use it).
- Click on the icon in z2m - allow joining (you have 180 seconds to add the device)
- Go to the LOGS tab
- Press and hold the mode button on the device, the indicator will light up in a second. If the device has found the network and started the login procedure, the indicator will go off after 6-9 seconds, and you can release the button. If the indicator goes off after 15 seconds, it means that the sensor has not detected an open network or has been denied a network connection.
If the device is not transmitting data
- Go through the interview again, go through the configuration again, make sure that on the report page in zigbee2mqtt there are lines with settings separately for each data type.
Please, ensure the following:
- Your power source is OK (a battery has more than 3V). You can temporarily use an external power source for testings (for example, from a debugger).
- The RF part of your E18 board works. You can upload another firmware to it and try to pair it with your coordinator. Or you may use another coordinator and build a separate Zigbee network for testing.
- Your coordinator has free slots for direct connections.
- You permit joining on your coordinator.