Pages: [1]   Go Down
Author Topic: Understanding Project 4 circuit design  (Read 1334 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi everyone. I am trying to get a better understanding of the circuit in project 4. In particular, the part of the design I do not understand is the 10 kilo-ohm resistors which are plugged into the ground. I'm trying to visualize how the electricity is running through this circuit but I just don't understand those resistors. I feel very confident in my understanding of the circuits in the previous projects(where I feel I would be able to replicate the project without referencing the book), but I do not feel that way about this part of project 4.

Thanks for any help smiley
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 524
Posts: 26420
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Can you post the schematic? I've not seen the book you are talking about.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

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


Sorry about the quality, this is about as best I could do... here is a video of what the finished product looks like

Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 524
Posts: 26420
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The photoresistor and the 10K make a voltage divider which the Analog input reads.
Analog voltage= ~5V*10000/(photoresistor + 10000)
and
Analog Reading = ~Analog/5 * 1023

Without the 10K, the photoresistor just  becomes a variable value pullup resistor that would read as 5V/1023 all the time.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

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

Sorry, I'm a complete beginner with electronics and I don't really understand. This is the first time in the book I'm seeing one of these dividers. I think I understand the 5V*10000... 5 volts from the board, 10k from the resistor because Ohms law says volt s= current * resistence, but why are we dividing by (photoresistor + 10000)?
Again, I apologize if these questions seems silly, I've literally never worked on any sorts of electronics before. I am a programmer and my only experience with circuits are of the logical variety.
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 524
Posts: 26420
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok, so V=IR, and V/R = I.  Ohms Law.
There will a current flowing thru both resistors.
V/(photoresistor + 10000) = Itotal
The voltage across each resistor is then
V1= Itotal * photoresistor,
Vout = Itotal * 10000,
Vin = V1 +Vout
Put it all together, do some algebra, and you get
Vout = Vin * R2/(R1 +R2)
(and Vin = V1 + Vout, or Vin -  Vout = V1)
R1 is the resistor between Vin and Vout (photoresistor), and R2 is the resistor between Vout and Gnd (10000).

Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

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

Oh, I get it now! Thank you so much, that was very helpful!
Logged

Pages: [1]   Go Up
Jump to: