Done this in Proteus. I printed this out in the copper board and soldered components. But turns out my relay did not work.
I used a 9V battery in the the supposed to be 5 volts for the Arduino because I still don't have one. I have two separate batteries.
Put the power wire in the transistor base, connected transistor emitter to the GND did not switch my relay, doing it reverse switched my relay though and I don't understand why?
I'm not good in electronics that's why I'm trying out things. But why did my relay switch with the battery GND in transistor base and power in the emitter?
And my 470ohms resistor is not working I'm directly putting connection in the transistor base where it worked. I used a 2N2222 instead of a 2N3903, and a DEC DI1U relay. I used a tester to check if connection is good. My soldering is clean and I don't know what to do now.
My problem is that my resistor is not working, connection seems reversed and I'm a noob so big problem.