Introduction: LDR + LinkitONE

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

Step 1: Parts

Picture of Parts

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

Step 2: Connect LDR

Picture of Connect LDR

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

Step 3: Connect USB

Picture of 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

Picture of 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.

Comments

DIY Hacks and How Tos (author)2015-12-16

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

About This Instructable

98views

0favorites

License:

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