Pages: [1]   Go Down
Author Topic: More than one LDR on your Arduino UNO.  (Read 578 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm working on a project where i need to use more than 1 LDR as a analog input. 5 to be more specific.
I'm using a Arduino UNO and noticed that there's only 1 5v slot, which you need to connect to the LDR.
My question to the forum is how do you, if it's possible connect 5 LDR:s to your arduino UNO?
This might sound like a stupid question, but i'm real newbie on this.
Thank you!
Logged

Mainz
Offline Offline
Newbie
*
Karma: 0
Posts: 48
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

if you switch on the internal pull up of the port, you can connect to each port a LDR.

Regards
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Do you mean that i can use the digital pins as 5v:s?
I forgot to mention that i probably will be using all the digital pins to LED:s.
Logged

Dubai, UAE
Offline Offline
Edison Member
*
Karma: 22
Posts: 1675
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
    I would suggest that you use the 5V pin but connect it to a breadboard, this will allow you to connect the LDRs you require.

For a single LDR I assume you are connecting 5V(Common) > 1K Resistor > INPUT > LDR > GND(Common), you can simply repeat this as many times as you need on the bread board sharing the Common 5V and Common GND which you will connect from the Arduino 5V and GND pins.

Try it with one first and if that works add the second and so on.

Duane B.

rcarduino.blogspot.com




Logged


Pages: [1]   Go Up
Jump to: