![]() ![]() In our case, we will use the photocell to replace the resistor R1, and a fixed 10K ohms resistor to replace R2. With this circuit, the output voltage is directly proportional to the input voltage, with a factor of R1/(R1+R2). This is the schematic of a voltage divider: What we will use here is a simple circuit called a voltage divider, which is commonly used in electronics. Just connect a wire from the Arduino pin number 2 to the 470 ohms resistor, then to the anode of the LED (the long part), then another wire from the cathode to the ground.įor the photocell, we already said it basically behaves like a resistor. ![]() You don’t need anything more than the Arduino IDE installed on your computer, which you can find at the following link: To integrate it in our system, we will also need another 10K ohms resistor. I used this model, but any resistor that is sensible to light should be fine. Photocells are basically little light sensor, which behave like resistors but the value of their resistance vary with the light level. You will also need a LED, along with a 470 ohms resistor. Next to the Arduino board, I also used a small breadboard. This project requires an Arduino board, in this tutorial I used the usual Arduino UNO R3 board, but other Arduino boards should be fine as well. As always, I included affiliate links in this article to help you find the components I used, please follow them if you also want to support this website. I also want to announce here that this article is the kind of article you are going to find in my upcoming, which will talk of course about home automation, open-source hardware and will be focused on the Arduino platform. But it is easy to imagine that the photocell will for example be placed outside of your home to detect if we are currently during the night or during daytime, and the Arduino will then switch the lights accordingly. In this project, the “light” will be modelled with a LED, and the photocell will be placed next to the Arduino board. This will be achieved by using a photocell sensor, which is a basically a light-dependent resistor. #Replace outside light photocell with smart timer how to#In this project, I will show you how to switch a light on or off depending on exterior light levels, with an Arduino board and some components. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |