i have bought a sensor with 12 v dc input and NPN output (0 v). It must be connected to a controller (max input 5 v)to sense it. i used lm7805 regulator to convert 12v to 5v.
the way i connected it is (to LM7805): input - 12 vdc (from SMPS). Gnd - output from semsor, output to controller. I also connected a stepper motor (12 vdc) & controller (5 vdc) to same SMPS. the fault is that the regulator gets heated too much (couldn't touch it after 5 seconds) while the circuit is switched ON. do you have any other solutions for overcoming this or suggestr any other ways.
the way i connected it is (to LM7805): input - 12 vdc (from SMPS). Gnd - output from semsor, output to controller. I also connected a stepper motor (12 vdc) & controller (5 vdc) to same SMPS. the fault is that the regulator gets heated too much (couldn't touch it after 5 seconds) while the circuit is switched ON. do you have any other solutions for overcoming this or suggestr any other ways.