LDR (LIGHT DEPENDENT RESISTOR) - Arduino tutorial #20

In this tutorial I'll teach you how to read the data from a light dependent resistor (LDR).
The Arduino for beginners tutorials series guides you through the world of Arduino. A video is around 10 minutes and shows you step-by-step how to build the circuit and write the code. The website contains the course material, circuit diagram, Arduino code and shopping list of all the components used in the tutorial.
⬇️ Arduino code, circuit diagram and part list arduino-tutorials.net/tutoria...
👉 More tutorials and projects on arduino-tutorials.net
🇳🇱 Deze tutorial is ook in het Nederlands beschikbaar • 🇳🇱 LICHTGEVOELINGE WEE...
CHAPTERS:
00:00 Introduction
00:11 Components
00:32 The LDR
01:55 Building the circuit
02:39 Arduino code - LDR value reading
04:06 Arduino code - Switch LED with LDR
04:56 Running on the Arduino
COMPONENTS
🇨🇳 Arduino Uno (clone)
arduino-tutorials.net/r/KnSgtg
🇳🇱 Arduino Uno (clone)
arduino-tutorials.net/r/8237Hd
🇳🇱 Arduino Uno SMD (original)
arduino-tutorials.net/r/Ud29dh
🇳🇱 Arduino Uno Chip (original)
arduino-tutorials.net/r/Jd82ha
🇨🇳 3x breadboard
arduino-tutorials.net/r/k8rZRv
🇳🇱 1x breadboard small
arduino-tutorials.net/r/238Jds
🇨🇳 1x breadboard large
arduino-tutorials.net/r/ZnW9L4
🇳🇱 1x breadboard large
arduino-tutorials.net/r/8237Dh
🇨🇳 Jumper wire male-male
arduino-tutorials.net/r/pkoGV4
🇳🇱 Jumper wire male-male
arduino-tutorials.net/r/8237Jd
🇨🇳 20x GL5528 LDR
arduino-tutorials.net/r/HNB0xM
🇳🇱 5x GL5528 LDR
arduino-tutorials.net/r/JDJd92
🇳🇱 5x GL5537 LDR
arduino-tutorials.net/r/848Hfy
#arduino #BasOnTech

Пікірлер: 11

  • @nirlekaplay
    @nirlekaplay4 жыл бұрын

    it works

  • @BasonTech

    @BasonTech

    4 жыл бұрын

    Great! 😃

  • @harshithramamurthy2820
    @harshithramamurthy28204 жыл бұрын

    Hello Creator, I loved your video quality and explanation. I have some doubts if you can answer, please. Why is the A0 connected at the junction of LDR and the resistor? Also, If I want to display the resistance of the LDR on the serial monitor, how do we do it? Looking forward to your reply.

  • @BasonTech

    @BasonTech

    4 жыл бұрын

    Thanks! The connection is called a "pulldown resistor". I'll explain this in kzread.info/dash/bejne/Z5WGksWBe8aTeqQ.html 😃

  • @harshithramamurthy2820

    @harshithramamurthy2820

    4 жыл бұрын

    @@BasonTech Thanks man!

  • @Brzndon
    @Brzndon Жыл бұрын

    Amazing video is it possible to show light intensity value on a LCD?

  • @BasonTech

    @BasonTech

    Жыл бұрын

    Sure! Just combine this tutorial with my tutorial about the LCD screen and you should be able figure it out! 😃

  • @flightsimguy3897
    @flightsimguy38972 жыл бұрын

    Can I use a attiny for this?

  • @BasonTech

    @BasonTech

    2 жыл бұрын

    Yeah that should probably work 😃

  • @enesbozcal2359
    @enesbozcal23597 ай бұрын

    How can I calibrate LDR?

  • @BasonTech

    @BasonTech

    7 ай бұрын

    You can't. The way the LDR works is via the chemicals in the sensor. However you can create an offset or make your code work with another sensor value. Keep in mind that over time these sensors wear so you might need to adjust the code anyway (or use a potentiometer to set the correct threshold)