Purchased:from this link:
https://www.aliexpress.com/item/4000785415902.html?spm=a2g0o.order_detail.order_detail_item.3.28fcf19cv5xMHt
Cost:
~$AUD16
(USB TTL converter to show scale)
Inputs:
1 x hidden switch marked "reset"
Power:
External micro USB connector
Internal 2 x AAA batteries
Template:
The board has a model number HW4008-W printed on it
The "reset" switch is actually just attached to P7, it is not a hardware reset.
Both inputs activate on pull to Gnd.
Flashing:
I used the BK7231Flasher Easy UART flasher after soldering RX/TX/3.3/Gnd wires.
I used an external PSU for 3.3v ( node MCU board powered from PC USB)
I had to set the UART speed to 115200 to avoid transfer failures
Flags :
I set Flag 10 - [MQTT] Broadcast self state on MQTT connect = On
I set Flag 37 - [WiFi] Quick connect to WiFi on reboot (TODO: check if it works for you and report on github) = On
Other Settings:
I have set both inputs to be "Door Sensor With Sleep" (DoorSnsrWSleep, with pullup)
I set startup value for 1 = 50. this makes the led illuminate dimly to show motion detection, with a small power saving.
I set startup value for 2 = 1. This seemed to be required to help door sensor driver.
After testing I set Startup Command text to "DSTime 10" to force shutdown for power saving reasons. (default is 60 sec)
Operation:
At motion detection I see first MQTT packet after 5-6 sec. unit goes to sleep about 5 sec later.
I would like to set a static IP address and see if that makes the initial connection faster but i cannot find the Command or setting anywhere.
[edit] I found the very obvious button on the main Config page... I'll update if it makes the first MQTT packet faster shortly.
https://www.aliexpress.com/item/4000785415902.html?spm=a2g0o.order_detail.order_detail_item.3.28fcf19cv5xMHt
Cost:
~$AUD16
![[BK7231N / CB3S] AliExpress Generic PIR Sensor HW4008-W: Setup, Template, Features & Details [BK7231N / CB3S] AliExpress Generic PIR Sensor HW4008-W: Setup, Template, Features & Details](https://obrazki.elektroda.pl/4563259300_1686203972_thumb.jpg)
![[BK7231N / CB3S] AliExpress Generic PIR Sensor HW4008-W: Setup, Template, Features & Details [BK7231N / CB3S] AliExpress Generic PIR Sensor HW4008-W: Setup, Template, Features & Details](https://obrazki.elektroda.pl/8155164900_1686204071_thumb.jpg)
![[BK7231N / CB3S] AliExpress Generic PIR Sensor HW4008-W: Setup, Template, Features & Details [BK7231N / CB3S] AliExpress Generic PIR Sensor HW4008-W: Setup, Template, Features & Details](https://obrazki.elektroda.pl/7126306800_1686204138_thumb.jpg)
![[BK7231N / CB3S] AliExpress Generic PIR Sensor HW4008-W: Setup, Template, Features & Details [BK7231N / CB3S] AliExpress Generic PIR Sensor HW4008-W: Setup, Template, Features & Details](https://obrazki.elektroda.pl/2220232300_1686204148_thumb.jpg)
![[BK7231N / CB3S] AliExpress Generic PIR Sensor HW4008-W: Setup, Template, Features & Details [BK7231N / CB3S] AliExpress Generic PIR Sensor HW4008-W: Setup, Template, Features & Details](https://obrazki.elektroda.pl/1583032500_1686204188_thumb.jpg)
(USB TTL converter to show scale)
Inputs:
1 x hidden switch marked "reset"
Power:
External micro USB connector
Internal 2 x AAA batteries
Template:
Code: json
The board has a model number HW4008-W printed on it
The "reset" switch is actually just attached to P7, it is not a hardware reset.
Both inputs activate on pull to Gnd.
Flashing:
I used the BK7231Flasher Easy UART flasher after soldering RX/TX/3.3/Gnd wires.
I used an external PSU for 3.3v ( node MCU board powered from PC USB)
I had to set the UART speed to 115200 to avoid transfer failures
Flags :
I set Flag 10 - [MQTT] Broadcast self state on MQTT connect = On
I set Flag 37 - [WiFi] Quick connect to WiFi on reboot (TODO: check if it works for you and report on github) = On
Other Settings:
I have set both inputs to be "Door Sensor With Sleep" (DoorSnsrWSleep, with pullup)
I set startup value for 1 = 50. this makes the led illuminate dimly to show motion detection, with a small power saving.
I set startup value for 2 = 1. This seemed to be required to help door sensor driver.
After testing I set Startup Command text to "DSTime 10" to force shutdown for power saving reasons. (default is 60 sec)
Operation:
At motion detection I see first MQTT packet after 5-6 sec. unit goes to sleep about 5 sec later.
I would like to set a static IP address and see if that makes the initial connection faster but i cannot find the Command or setting anywhere.
[edit] I found the very obvious button on the main Config page... I'll update if it makes the first MQTT packet faster shortly.
Cool? Ranking DIY