RIGFWVQ

scary night light

 
Overview
Shell Link: https://m.tb.cn/h.5vQ6fuWO429EVLk?tk=uxjvWlGeBz5 
Specific Functions:
Normal Mode:
A short press of the touch button turns the light on or off; a long press gradually increases the brightness. If the light is turned off, it operates at the lowest brightness by default.
Please download the attached demo video.
Scary Mode:
When the touch button is pressed continuously (approximately 15 seconds, which most people wouldn't press like that), a red light alerts the user, indicating entry into scary mode (power off is required to revert to normal night light mode).
1. When the ambient light is low, if the microwave sensor detects someone, background music starts playing (this is chosen because it's not initially scary), and the night light turns on normally (approximately 4 seconds, pretending to be a normal night light);
2. Then the white light flashes (generated by the rand() function, making the light more frightening);
3. At this point, the red light slowly illuminates, creating a bloody atmosphere;
4. The red light flashes ;
5. The light turns off, the music stops, and it waits for the next lucky person.
For the demonstration, I'm a bit timid and didn't dare test with the lights off, so I covered the photosensitive element with my hand to simulate low brightness.
This design was originally intended to be lithium battery powered and have low power consumption, but there wasn't enough space for the light, so that wasn't considered. Therefore, simply shorting the MOSFET input and output works fine, and normal soldering is fine.
The microwave radar chip I bought triggers at a high level, but
the I didn't implement low power consumption and didn't test it thoroughly.
The voice function uses the CHV31 solution; the tools are in the attachment.
 
参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2026-03-26 16:58:04

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号