I would like to share a project to create a simple optical proximity sensor that can be used as an optical limit switch or used as, for example, a proximity light switch. A special feature in this project is the principle of protection against parasitic infrared study and simple logic of work. It can be used as a basis for development. In the ready-made firmware for the project, there are options, an optical limit switch, an optical light switch, and an optical switch with auto-off time.
More details
hereUse google translator for translation
Additional materials for the project for its repetition:Simple optical proximity sensor (diagram)Simple optical proximity sensor (draft) Password to download the project as usual
Simple optical proximity sensor (firmware)Simple optical proximity sensor (firmware, switch mode 2)Simple optical proximity sensor (firmware, switch mode)Simple optical proximity sensor (firmware, shutdown delay mode 2 sec.)Simple optical proximity sensor, 3D model
PCB prototype, complete, optical limit switch