Automatic Room Light Intensity Control System

Help, Room Light Intensity Control System We are on a project right now.

We will be using the ambient light sensor on an arduino to control the light for power consumption. The light source will automatically adjust whenever the environment is dark or bright. We will use PIR sensor as the switch for the LED, The PIR sensor will go to high condition when it detects infrared or motion from the environment. But we have a problem on the right codes to be use on the arduino. We will use LED as the light source. We will also be using relays on the project. The title of our project is Automatic Room Light Intensity Control System. Can you help us?

We dont know the right codes for the arduino uno. Thank you!

Other topic has been Locked - please don't crosspost (post in multiple places).

Thanks Moderator

We dont know the right codes for the arduino uno.

Pretty simple, really. The analogRead() function is used to read analog pins. The digitalRead() function is used to read digital pins. The digitalWrite() function is used to write to digital pins. Those three functions cover everything you want to do with the hardware. The rest is just a matter of using if statements to control the order of operations.

When you have tried something, post your code if you are having problems.

This sounds like a school assignment. This might be the help-me-with-my-homework hotline. It is NOT the do-my-homework-for-me hotline.