Complete newbie here just started doing the projects from the starter kit.
In the project 04 (color mixing lamp) it is said that 3x 10KOhm resistors have to be used after the phototransistors. The book says "The phototransistor will force a current to flow in the resistor leading to a voltage drop accross it". I didn't really understand this sentence or why we're using the 3 10KOhm resistors at all.
I get why we're using the 220 Ohm resistors on the RGB LED and why we used 220 Ohm resistors on previous projects - they're used to avoid LEDs from burning out cause they can't handle the voltage. At least that's how it was explained in the first project.
But in the project 04 it seems that we're measuring the voltage coming from the phototransistor, so what are the 10KOhm resistors for?
I often will use the internal pullup resistor as the load resistor in the LDR circuit as it allows me to leave the external resistor off. It reverses the logic from that in the tutorial but the convenience is worth the trouble.
Thanks for the links, they are very interesting. But are you then saying there are mistakes in the book? It specifically says they are phototransistors in few places.
There seems to be 2 versions of this project. One uses the photoresistors (LDRs) and the other uses phototransistors. They are actually wired the same and the code should be very similar.
The 10K resistors serve the same purpose in both circuits. That is, they are the "load" resistor in a voltage divider made up from the sensor (variable resistance) and a fixed resistor.