در این پروژه به نحوه ساخت مدار نور شب با استفاده از آردوینو می پردازیم.
مدار نور شب مداری است که وقتی شب میرسد روشن میشود، یعنی زمانی که هوا تاریک میشود و مکان میتواند از مقداری روشنایی استفاده کند.
این یک دستگاه معمولی خانگی است که تقریباً توسط تمام خرده فروشان عمده فروخته می شود.
دستگاه می تواند زمانی که هوا تاریک می شود را حس کند و چراغی را روشن می کند تا مقداری روشنایی وجود داشته باشد.
دستگاهی که در این پروژه می سازیم ماهیت اتوماتیک خواهد داشت. به محض تاریک شدن هوا، LED متصل به برد آردوینو ما بلافاصله و به طور خودکار روشن می شود.
برای این پروژه، جزء اصلی که ما استفاده خواهیم کرد یک مقاومت نوری است. هنگامی که یک مقاومت نوری را به صورت سری با یک مقاومت قرار می دهیم، یک تقسیم کننده ولتاژ تشکیل می شود. ولتاژ به 2 جزء بر اساس مقاومت مربوط به هر یک تخصیص می یابد. طبق قانون اهم، V=IR، با مقاومت بیشتر، ولتاژ بیشتری در قطعه می افتد. ما از این اصل در این مدار برای تعیین سطح نوری که مدار ما در معرض آن قرار دارد استفاده میکنیم و روشن یا خاموش شدن LED ما را مشخص میکند.
اجزای مورد نیاز برای مدار نور شب
- مقاومت نوری
- مقاومت 10KΩ
- آردوینو
شماتیک مدار نور شب
شماتیک مدار نور شب در زیر نشان داده شده است:
برای جزئیات بیشتر: نحوه ساخت مدار نور شب با استفاده از آردوینو
در ادامه، متن انگلیسی این مطلب را میتوانید مشاهده نمایید:
In this project, we will go over how to build a night light circuit using an arduino.
A night light circuit is a circuit which will turn on when nighttime comes, which is when it gets dark and the place could use some illumination.
It is a common household device that is sold by pretty much all the major retailers.
The device can sense when it gets dark and will switch on a light so that there can be some illumination.
The device we will build in this project will be automatic in nature. As soon as it gets dark, the LED attached to our arduino board will turn on right away, automatically.
For this project, the main component we will use is a photoresistor. When we place a photoresistor in series with a resistor, a voltage divider is formed. Voltage will be allocated to the 2 components based on the each one’s respective resistance. More voltage will fall across the component with the greater resistance, according to ohm’s law, V=IR. We will exploit this principle in this circuit to determine the light level that our circuit is exposed to and this will determine whether our LED turns on or offz
Components Needed for the Night Light Circuit
- Photoresistor
- 10KΩ Resistor
- Arduino
Night Light Circuit Schematic
The schematic for the night light circuit is shown below:
For more detail: How to Build a Night Light Circuit Using an Arduino