Hi, is there a micro switch that has the same output as rz-15hw24-b3. The output uses GRD and either NO or NC. But instead of pushing the knob/arm/button i would like a switch that works with light or infrared or something like that. Not looking for a proximity switch. But a switch that uses some kind of light/infrared/laser with low power.
Moved to General Electronics.
Can we please have a few links or pictures of the proposed switch?
Can you also give a brief run down of hardware requirements?
Thanks.
Micro switches can be quite small, but since you are posting in an Arduino forum, that does not seem to matter. Do you care how large it can be or how it can be mounted or powered?
Are you looking for something like an LDR (Light Dependent Resistor) a.k.a. a photoresistor?
Technically it isn't a switch, but you can setup a circuit that gives you the light level reading and in your code you can interpret the reading as open/off or closed/on as you need.
If you need a digital input then you could use some supporting such as a Schmitt trigger to send a digital 0 or 1 to your circuit. It still won't quite be like the switch - which will give you a definitive signal (either +V or GND) or a floating signal depending upon whether your use the NO or NC side of the switch.
There are a lot of possible solutions but they tend to be application dependent. What are you trying to do, just turn on a light? what voltages are involved, what is the environment? What currents etc. A simple sketch would help.
I have a 5mm diameter ball coming down a maze. when it reaches the bottom it will set the switch to know its finished. A light switch is preferred i don't like the mechanical one i use because it doesn't always work.
Try a hall sensor it may do what you want. Also you can set up a light detecting circuit with a LED and a sensor such as a LDR.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.