I'm building DC motor blind movement. I've paired motor with bi-directional PWM controller but so far I need to stop/start manually or time it...temporary I have USB relay configured to open blinds every morning. I'd like to add some automatic stop position circuit.
First I've been tinkering with magnetic/reed switches (3 contacts), but I've smashed those delicate glass tubes in the process. Plus, they were switching reliable only 2-4 cm from neodym magnet. Now I'm thinking about voltage comparator with IR led transmitter & receiver and some reflexive sticker/paint to mark my end positions. The circuits I've found is outputting logic signal, but probably I could connect that to small 5V dc relay to shut down the motor (12 volts). But with these I'll need to put up something like 8 wires. Or maybe less if I'll use diodes & step-down regulator to supply stop circuit.
Any thoughts/ideas, how to solve this better? I might end-up with some arduino at the end, but I wanted to do this "the old way" first