If you are asking, can I dim LED's, the answer is not much.
For the most part LED's are either on or off. They require a minimum voltage to 'fire'.
Generally a 750 to 1000 OHM resistor in series with the LED is required when using up to 12 volts dc or so. The large value of the resistor will allow some dimming but no way like a incandescent bulb.
You can experiment with the resistor value but do not expect a big difference in the output of an LED.
Rudy,
If you want lighted buildings, you might be better off using incandescent lamps instead of LEDs. The disadvantages of LEDs for applications like this are that are that light from an LED is directional, which means that it's focused in one particular direction rather than giving off an equal amount of light in all directions. That's why it's good to use for flashlights and locomotive headlights, but might not be so good to use for lighting a room. Also, white LEDs are kind of pricey and put off a bit of an "unnatural" bluish light. There are "yello-glo" LEDs available, which put off a more "realistic" white light, but they are usually even more expensive than the regular white LEDs.
All the same, if you want to get some good basic info on LEDs and their use, take a look at the following:
http://www.tonystrainexchange.com/technews/install-leds-decoders.htm
www.richmondcontrols.com
Dan Stokes
My other car is a tunnel motor
Also, LEDs are not "omnidirectional" light sources like incandescent bulbs. They put out a fairly tight "beam" of light. This makes them ideal for headlights in locomotives, but less desireable for interior building illumination. You could, of course, mount the LED pointing straight up and put aluminum-foil "mirrors" on the ceilings to bounce the light around inside.
Also, standard LEDs are a very white, "hot" color. The yellow tint of incandescents is far more natural inside a building. You can get the "golden white" LEDs, but they're more expensive. (The make very nice loco headlights, though.)
It takes an iron man to play with a toy iron horse.
What the boys said is absolutely correct. I also want to point out that each diode has a maximum current that it can handle. If you do not know this value, start with a very large resistor like 2.2k and work your way down in value till the desired brightness is attained. The more current that you put through the diode, ie less resistance, the brighter it will glow UP TO A POINT! Then it will destroy itself.
BB
73
Bruce in the Peg
The anode goes to the positive side, most likely the red wire, but it would be good to verify that. Don't forget to put a resistor in series to limit the current, or you may blow the LED almost instantly.
Google is your friend:
http://metku.net/index.html?sect=view&n=1&path=mods/ledcalc/index_eng
Jeff But it's a dry heat!
Modeling the Reading Railroad in the 1950's
Visit my web site at www.readingeastpenn.com for construction updates, DCC Info, and more.