In fact, I had this idea when I was on the way to the bathroom. When I opened the door, I couldn't see the situation inside. So suddenly, if there is a hint, people inside and outside the door can know each other whether there is someone on the other side. Is it possible to avoid the risk of being hit when opening the door.
function:When approaching the door, the sensor device will be triggered, and the light inside will light up to remind the people inside. On the contrary, the people inside will know that there is someone outside when the light is on, and they will open the door carefully
Step:Step 1: Connect XIAO development board and expansion board, add XIAO rnf52840 in Arduino ide, after installation, use BLINK to test whether it can work normally;
Step 2:Connect each Grove module in turn to test whether it can work properly alone.
Step 3:When there is no problem with the module, upload the required code to the motherboard to complete all operations
Some project codes are as follows:I found that the small things in life can be facilitated through the help of some modules, but more discoveries are needed.
Comments