Skip to main content

Posts

Showing posts from October, 2021

Day and Night Application With Using LDR on Mblock

 In this application, we will practice day and night with LDR. It will also be a night light application. We learned how to measure the value of LDR in the previous lesson. Now, after reading these values, we will both automatically flash the led and make a short application in the Mblock program. Let's come to the circuit elements: 1-Arduino Uno (1) 2-BreadBoard 3-220Ω Resistor(2 pcs) 4-Led (1 ) 5-LDR (1) 6-Jump Cables We need supplies. Our circuit diagram is as follows. We connect a 220 ohm resistor to one leg of our LDR. We connect a cable to one leg of the resistor we connected and connect this cable to the 5 volt pin (blue cable) We connect the other leg of the resistor we connected to one leg of the LDR to the analog pin A0 with a cable (yellow cable) (Here is one leg of the LDR, one leg of the resistor and the cable is the same at the bottom. We connect it to the other free leg of the LDR with a GND (- terminal) cable. Let's connect a 220 ohm resi