back in electronics after 7 years and found that nothing is in my bio-disk gifted by god.
now, i have a motor system that i want to make sure, no one cut the cable. apart from the 24volt motor power line (via h-bridge for fwd/rev movement) i also added 2 cables, one carrying volt (24v) to the end of it and other as return...
24v ----------------| | motor return -------------|
now, this surely brings back the 24v back to me from motor, and i can measure the presence of it and can say, no one "cut" my cables. but since i want to check via microcontroller, how exactly i can do it? (I did it using relay as an isolator, translating 24v to 5v. now i wanna do it with an n-fet). All i need is uC have to see 5v in a pin of it, when 24v is present.
Note: uC and the hbridge are two boards, 2 PSUs, commonly grounded by tying GND togather.
Now please tell me, is this acceptable?? MCU will see HI when switch ON and LOW when switch OFF.