LDR + LinkitONE

Here I will make a LDR and LinkitONE setup and give out readings.

PS: This is my first instructable! I am very thankful to my teacher to lend his board to me :)

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Parts

You will need a LinkitONE and a LDR for this simple project.

Step 2: Connect LDR

Connect your LDR. Connect it into A0 pin and ground pin one.

Step 3: Connect USB

Now connect your USB cable with laptop and board.

Step 4: Burn the Code

Write the following code in your arduino IDE.

void setup()

{

pinMode(A0, INPUT);

Serial.begin(9600);

}

void loop()

{

Serial.println(analogRead(A0));

delay(2000);

}

Step 5: Open Serial Monitor

Now open he serial monitor and then see all the readings!

I am getting my reading as 164. Check and share yours.

Be the First to Share

    Recommendations

    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    Discussions

    0
    None

    Great first Instructable. I hope you will publish more in the future.