Prompt 2

Make a circuit that turns on something when it becomes dark in its surroundings.

Dark Activated LED

In order to turn on a LED when the environment gets dark, we must have something that can react to light changes. I chose the photoresistor which is able to change its resistance according to the intensity of light it receives - light ⬆️ resistance⬇️ / light ⬇️ resistance ⬆️

Components:

Also some research on the components:

Photoresisitor -

NPN Transistor -

What are NPN & PNP transistors? They are bipolar junction transistors. NPN: a positively-doped semiconducting material sandwiched between two negatively-doped materials. PNP: a negatively-doped material sandwiched between two positive layers.

How do they work exactly?

NPN: It amplifies a positive signal applied to the base by allowing current to flow from its collector to its emitter. This current is proportional to the base voltage.