Sie sind auf Seite 1von 12

Home

Arduino Tutorials

About Me

Tw eet

Like

Share

Search

Testing Six + Six Random LDR for Measuring Light Intensity


Posted on December 19, 2012 by admin

t opics
android app arduino code do it yourself Extra gadgets hacking gadgets just looking my projects Software

... This is the third installment of The LDR Array for Measuring Light Intensity Project. I got another 10 LDRs. I should have asked more but the other listed items made my budget short. Anyway, 10 plus 2 = 12, 12 LDRs for
open in browser PRO version
Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

made my budget short. Anyway, 10 plus 2 = 12, 12 LDRs for tinkering. I modified the sketch for reading single LDR. I replicated some commands so it read and print six LDR readings on serial monitor. Then added additional task to compute the average of the readings.

r ec ent ar t ic les
Western Digital My Passport 1TB Intel RST for Cooler Platform Controller Hub (PCH) I Installed a Lincensed ESET NOD32 Antivirus! The Tale of Impulsive Upgrader | From Windows.3x to Windows 8 / 8.1 Bluetooth File Transfer Protocol Version 2 Blocking The Globe Tattoo Ghost Web Icon A Laptop Cooling Pad Test

r ec ent comment s
admin on The Huawei Mobile Pocket Wifi E5220 Miel on The Huawei Mobile

Then I did light intensity readings 20 times. Replacing one random sensor each time with
open in browser PRO version
Are you a developer? Try out the HTML to PDF API

Pocket Wifi E5220 Miel on The Huawei Mobile Pocket Wifi E5220
pdfcrowd.com

a randomly picked sensor from the six spares. Here are the readings in millivolts. While doing the experiment, the fast moving clouds were causing a variation in readings. 1 298 2 294 3 321 4 378 5 344 6 321 7 320 8 394 9 404 10 396 11 323 12 334 13 322 14 325 15 315 16 303 17 390 18 403 19 320
open in browser PRO version
Are you a developer? Try out the HTML to PDF API

Pocket Wifi E5220 anne on The Huawei Mobile Pocket Wifi E5220 tan on Fixing the Slow Arduino IDE | More Than 20 Seconds Delay

t ags

android arduino
battery camera computer ddwrt

electricity epson fan freedom


plan drive

globe hard disk hard


huawei internet

laptop lcd ldr led leds linux


mmorpg m otor mp3 phone potentiometer pow er supply psu push button

qos router samsung

sd card seven segm ents smart sony


stepper m otor

sun cellular

tattoo toshiba usb wifi


pdfcrowd.com

19 320 20 285 Some consecutive readings have very slight differences. It maybe an indication that more LDRs even if randomly picked maybe used to accurately measure light intensity.

windows w ire wordpress

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Here is the sketch I used.

/********************************** The Light Dependent Resistor (LDR) with Arduino


open in browser PRO version
Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Instructions. Set LDR legs as A and B. Legs have no designated. polarity. Assignment can be interchanged. Connect 5+ volts power to A. Connect B to 1K resistor to ground. Connect B to A0,Analog pin 0. Upload the shortcode. **********************************/ // declare a variable to store // light dependent resistor // reading int ldr1; int ldr2; int ldr3; int ldr4; int ldr5; int ldr6; // a variable to store // average reading of six // LDRs int averageLDR; // a variable to store delay // time int delayTime = 2000; void setup(){//void setup begin
open in browser PRO version
Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Serial.begin(9600); }//void setup end void loop() {//void loop begin // read analog pin 0, assign its // value to ldr1 and print it to // serial monitor ldr1 = analogRead(A0); Serial.print("ldr 1 reading = "); Serial.println(ldr1); // wait a moment delay(delayTime); // read analog pin 1, assign its // value to ldr2 and print it to // serial monitor ldr2 = analogRead(A1); Serial.print("ldr 2 reading = "); Serial.println(ldr2); // wait a moment delay(delayTime); // read analog pin 2, assign its // value to ldr3 and print it to // serial monitor ldr3 = analogRead(A2); Serial.print("ldr 3 reading = "); Serial.println(ldr3); // wait a moment delay(delayTime);
open in browser PRO version
Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

// read analog pin 3, assign its // value to ldr4 and print it to // serial monitor ldr4 = analogRead(A3); Serial.print("ldr 4 reading = "); Serial.println(ldr4); // wait a moment delay(delayTime); // read analog pin 4, assign its // value to ldr5 and print it to // serial monitor ldr5 = analogRead(A4); Serial.print("ldr 5 reading = "); Serial.println(ldr5); // wait a moment delay(delayTime); // read analog pin 5, assign its // value to ldr6 and print it to // serial monitor ldr6 = analogRead(A5); Serial.print("ldr 6 reading = "); Serial.println(ldr6); // wait a moment delay(delayTime); // print a blank space Serial.println(" ");
open in browser PRO version
Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

// equation which compute average LDR readings averageLDR = (ldr1 + ldr2 + ldr3 + ldr4 + ldr5 + ldr6)/6; // display average LDR reading // on serial monitor Serial.print("Average = "); Serial.println(averageLDR); // print a blank space Serial.println(" "); // wait a moment delay(delayTime); }//void loop end

I am going to repeat this under stable light condition. See the next

RE L A T E D P O S T S

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

1. The Light Dependent Resistor (LDR) with Arduino 2. Getting Phototransistor Readings With Arduino 3. The LDR Array for Measuring Light Intesity 4. Arduino Tutorial Series Reading and Converting Potentiometer Values ...
0 Tw eet 0 Like Share 0

This entry was posted in my projects and tagged ldr, light intensity, six by admin. Bookmark the permalink.

Leave a Reply
Your email address will not be published. Required fields are marked *

Name

Email
open in browser PRO version

*
Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Website

Post Comment

Making Internet Available With Globe Tattoo Screw Driver Using Tip

by luntianlaboratory.com 2010-2012 see change log, site rules & stuff

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

posts with pictures of luntiancorner.com were moved articles. they are owned by the same author

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Das könnte Ihnen auch gefallen