loading

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 :)

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.

<p>Great first Instructable. I hope you will publish more in the future. </p>

About This Instructable

94views

0favorites

License:

More by kritisethi:LinkitONE SMS powered LED LinkitONE Music Player  Lights On/off on Clap With LinkitONE 
Add instructable to: