This project proposes a device designed to prevent nighttime accidents on highways located near forests, open fields, or farmlands. The system consists of three key components:
1.Smart Road Reflectors using WS2812B RGB LEDs
2.Radar Modules for detecting roadside motion
3.Cameras for precise detection in open areas such as large fields or farms
The smart reflectors emit different colored lights — green, cyan, and red — to indicate road status:
- Green: Road is clear
- Cyan: Motion detected nearby
- Red: Immediate danger — stop
By deploying these components as a mesh network along the roadside, the system can accurately indicate how close a human or animal is to the road, thereby enhancing safety and preventing collisions.
Motivation or Idea FormationStorytime 😇
Once, while traveling from Rajasthan to Delhi on the highway late at night, something happened that changed the way I think forever.
It was around 2:15 AM. I was in the car with my father, cruising at about 80 km/h. The highway passed through a stretch of forest area near the Rajasthan border. The road was quiet, the stars were out, and everything seemed peaceful—until, out of nowhere, a massive blue bull (nilgai) darted across the road.
Before we could react, it collided head-on with our car.
The impact was terrifying.
The animal was thrown into the air and front-flipped—twice—over the top of our vehicle. The sound, the shock, the suddenness… we were numb. The car came to a halt, its front completely shattered. The blue bull lay ahead on the road, severely injured. And my father and I… we were lucky. Thanks to the airbags, we escaped with only minor injuries.
The area was remote—no streetlights, no hospitals, no immediate help.
We quickly called the forest department and explained the situation. About 30 minutes later, a forest officer arrived, accompanied by a vet and a rescue vehicle. They took the injured animal for treatment, and we received first aid. Later, we had our vehicle towed from the spot.
But that moment stayed with me.
The guilt of unintentionally hurting a living being was heavy. I kept thinking: What if we had known an animal was near? What if the car had been warned? What if the animal had a safe way to cross?
Adaptability and practicality of ideaThe solar reflectors are often used on Indian highways, and the Wild Alert project cannot overhaul the entire highway infrastructure, as that would be extremely costly. We are aiming to develop this at a very reasonable cost because using depth cameras and advanced technologies like LiDAR wouldn't be practical when considering implementation across thousands of kilometers of national highways. We plan to build the device—including both the radar and reflector components—for around $4–5 per unit. Since a mesh of reflectors and radars is essential for successful implementation, keeping the cost minimal ensures it won’t pose a financial burden on government bodies like the National Highways Authority of India (NHAI).
Tech Stack behind Wild Alertwe search for many ultrasonic sensor which suits the cost and give best results but some of them have limited range of detection and some of them are just too costly
I created a comparison table to determine which sensor best suits this project and finalized the RCWL-0516. It offers a range of up to 20 meters at a cost of just $0.50, supports TTL logic, and consumes only 3mA of power. With a detection angle of around 120–150 degrees—ideal for monitoring the opposite side of roadways—it works through non-metal objects, is compact, and highly sensitive. Since our device operates at night, the radar’s LDR pin helps enable night-time operation and reduces power consumption
RCWL 0516
{ The RCWL 0516 module consists of an ASIC chip RCWL9196 from RCWL. The RCWL9196 comes in a 16-pin SOIC package. The module contains all the complimentary components along with a single transistor-based high-frequency oscillator which generates the microwave signal with a frequency of around 3.175GHz, with a wavelength of 9.45cm and half wavelength of 4.725cm. There is also a power led which indicates the power status of the module. } quoted from Circuit Digest
The RCWL-0516 radar motion sensor includes optional tuning pins RCDS, RGN, and CTM—to customize its detection behavior.
- The RCDS pin disables repeated triggering when pulled HIGH, preventing the sensor from continuously detecting motion in a static environment.
- The RGN pin allows the connection of an external resistor to reduce the detection range, useful for limiting the sensor’s area of sensitivity.
- The CTM pin lets you add an external capacitor to increase the delay time before the sensor can retrigger, providing control over how long it stays active after motion is detected. These pins help fine-tune the sensor for different applications.
One disadvantage of the RCWL-0516 is that it is too sensitive it can be easily triggered by noise. However, I found a method to tackle this issue from a blog on the website Dream Green House
Preventing False Triggering
Another issue with the RCWL-0516 sensor is its 360-degree detection range, which means it can be easily triggered by motion even behind the sensor. To tackle this, a blog post on Dream Green Housesuggested a clever solution: the author glued four layers of tin foil on the outside of an Ariel gel cap, which served as a shield. The central hole of the cap was just the right size for his 3D-printed sensor mount. In theory, this modification should limit the detection to one direction only.His testing confirmed that the approach worked well—the sensor now operates unidirectionally with no false triggering due to noise.
NRF24L01
To connect the radar, reflector, and camera, we incorporate Nordic Semiconductor’s nRF24L01 to create a wireless mesh network that can support up to 125 units in a single mesh
The range of the nRF24L01 is 100 meters, which is sufficient for our use case. It can also achieve a range of over 600 meters with efficient communication of around 1–2 bytes, which is adequate for sending or receiving TTL logic signals. This is achieved using an LNA + SMA antenna designed for the nRF24L01. It supports SPI communication for interfacing with an MCU.
We are using the Arduino Nano as the MCU because it is cheap and easily available in the market. Since this is just a prototype, we can later switch to the ATtiny85 for cost optimization.
Addressable LED
We are using the WS2812B RGB LED module, which operates on 5V and is ideal for battery-powered applications. Each RGB LED draws about 20 mA, making it efficient for low-power projects. The LED colors are used as visual indicators for driver safety:
🔴 Red signals immediate stop, indicating that an animal is crossing the road or there’s a sudden interruption.
🔵 Cyan warns drivers to slow down, suggesting that an animal is nearby.
🟢 Green means the road is clear and safe to drive.
Solar
We aim to develop a solution that operates independently with low power consumption, using a long-lasting rechargeable battery supported by solar power.
ESP32S3 Sense Cam
We are using the FOMO model from Edge Impulse to detect animals and objects on the road, and then sending a trigger through the NRF radio frequency module.
Getting started with Edge
yet to be written
Device ArchitectureWe are using NRF radio frequency transceiver modules, ideal for mesh networks as well as low-power applications, and well-suited for sending trigger commands, with a range of 100 to 500 meters
Comments