Home > other >  Strives for the 51 single-chip microcomputer infrared pyroelectric human body induction lamp code
Strives for the 51 single-chip microcomputer infrared pyroelectric human body induction lamp code

Time:10-24

Some lights, nobody is as simple as possible had better have lights went out comments thank you

CodePudding user response:

It's easy to see what is sensor parameters, and then let the microcontroller to process information from detection sensor, at least to provide some information or you write code, have a question to ask,

CodePudding user response:

Sensor is HC - SR501 online can find information for the great god give point code for reference

CodePudding user response:

Don't know what is your application scenario, according to the characteristics of sensor someone activities using repeatable will always keep a high level, just detect the level, once had no activity sensor delay recovery low level, the want to use scenario to design basis, suppose application scenario is a person in the room and have a certain amount of time is not save activity, will set up a state of lock, leave again once people left unlocked, such as store between content to find things, people set off into the lock, may not have certain time in the process of looking for something, but because already locked so the light is on, once you leave the room but also is a activity, set out again to unlock,
And the control logic is mainly depending on the application scenario and delay time,

CodePudding user response:

In fact we have such a life experience is corridor lights, someone to go on, once in a while waiting for the people who did not move, delay the lamp off, unless someone clapping or stomp sound will continue to bright, in fact I also feel the corridor to the human body detection + acoustic design is not very reasonable,
  • Related