im to design a sensor circuit that cuts off my toy car's motor power if an obsticale is detected.
when and object is detected, sensor's output voltage rises, thus the comparator gives a high output.
after these steps, im stuck.. i cant seem to get the relay to work. is it the resistor before the transistor or the transistor itself is wrong?
please click on the picture to get a better view ^^
thank youuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu!