**Sensor:**
The *RCWL-0516 Microwave Radar Sensor* can detect intruders at distances of 5 meters or more. When activated a signal is sent via the *ESP32* WiFi to a
...Show more local server where it can be further analyzed if required.
**Test Units:**
Included are three enclosures for testing using two different LiPo battery. The first uses a $2 creative 680mAh LiPo battery (54x35x4.5mm) as I have several new from an old project, and the second/third enclosures employs an inexpensive Turnigy 2000mAh LiPo battery (50x35x10mm) costing 3$.
The small battery should easily last 1 week and the larger 3 weeks as the average standby current is < 3mA. The smallest enclosure uses a small ESP32 module with micro USB connector for charging the battery allowing both boards to be mounted side by side greatly reducing the enclosures size.
The size of the sensor enclosure is pretty much determined by the capacity of the battery powering them, it therefore makes more sense to permanently connect units that are located close to mains sockets using an inexpensive usb/phone charger. In an ideal world a small high capacity 4 volt battery could power the sensor for six months...
...
**Powering the device from a 4.2 volt 2000mAh Battery:**
The RCWL-0516 is powered directly from the battery, the ESP32 is powered from the same source via a small diode (to drop the voltage to approximately 3.5 volts).
The ESP can safely operate up to 3.6 volts however this simple arrangement will ensure the supply never exceeds 3.5 volts (4.2 - 0.7 = ~3.5). In reality you could charge the LiPo battery to 4.0 volts to reduce the voltage on the ESP to 3.3 volts...
The small PCB containing the ESP32 module also includes a micro usb connector to allow for recharging...
...
Added enclosure for a sensor based on one and two 18650 3.2 volt LiFeP04 batteries. The two circuit boards slide into groves (one on each end to allow a little separation)... stl files are last in the list...
...
**RCWL-0516's:** *15/01/2018* (*last edited: 07/0/2018*)...
The range of detection was excellent, especially considering it was powered at 3.0 volts (and not the recommended 4 volt as per datasheet). I note there was no noticeable drop off in performance in several days of testing (not bad for a 35¢ device)...
...
**Powering both devices from a single supply/source:** *options*
* Two different batteries (LiPo " 4.2 volt for RCWL-0516, LiFePO4 3.2 volt for ESP32)...
* LDO (drop voltage from LiPo 4.2 volts to 3.3 volts for ESP32)...
* Buck Converter (boost voltage from LiFePO4 to 4.0 volts to power the RCWL-0516)...
* Use 1 or 2 diodes from LiPo 4.2 volt to supply the ESP32 (~3.6/~3.0)
The diode solution is current and type dependent and can be problematic, still I will test it regardless...
The LDO is the next best (lowest extra cost) but there's a 20% reduction in efficiency as the LDO uses current to maintain the voltage resulting in reduced battery life...
The two different b