Hello, i've got a newbie question, i hope some of you more experienced guys can give me an answer. I've recreated a simple circuit, that closes relay contacts using optocoupler and transistor, just for fun and i've found out that it's not working, after some time i've succeded to get the circuit working as it should, but i still don't understand why it didn't worked the first time. I posted 2 pictures of my circuit (please forgive me for the ugly looking circuit, but i hope you will get it). The circuit in the first picture, named "This circuit doesn't work" is my non working circuit, and the other schemtic is my working circuit. I want to know more about electronics, and i am just confused, why the circuit in the first schematic doesn't work, and in the other one it is working just fine? Can somebody please tell me what am i doing wrong and point me to the topic i need to research to get more knowledge in this area. If i've made some spelling mistakes, forgive me i am not a native speaker. Thanks, have a great day 



