Automatic Night Light

Automatic night light which switches on when its dark - using Arduino and LDR

964.0 次下载

更新时间 2015/7/7


This model illustrates a simple automatic light switch with an LDR.
When the light is on, the LED will be off. When it’s off, the LED will turn on.
Remember to tune the LDR value in Stateflow model depending on the light intensity of your environment.


Techsource Technical Team (2023). Automatic Night Light (, MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2015a
Windows macOS Linux
Help CenterMATLAB Answers 中查找有关 Stateflow 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明

Update title and Summary