Newbie here. I bought a couple BC547B transistors to build some logic gates. I'm using a breadboard which is connected to the 3.3V and ground from my UNO Elegoo R3 controller.
I connected an LED to the emitter of the transistor. It lit up once I connect the power supply with the base pin, even though the collector was disconnected. I have followed this other thread and connected a high resistor (tried 100K and 1M) between base and emitter, which makes the LED glow really dim. Once I connected the collector it lighted up very bright again.
My question is: How can I fix this issue? Ideally I want to LED to not light up at all unless there is current on the collector. I already made sure that the transistor pins are two lanes apart each, but that did not help.