Asked — Edited

Micro Switch For Continuous Servo Limit Switch And Lights

I'm adding a periscope to my R2 and after reading a bunch of posts on limit switches, I want to know if I understand what I need to do. I've done no coding, just wrapping my mind about how to do it.

I will need a switch at the top and bottom. I plan on using a micro switch on the top and bottom. From what I think I read is, I have the signal wire go through the normally open pin to the servo and when the switch is triggered it then sends that signal through the normally closed to an ADC plugged that is set to turn off the digital servo port.

But I will first need to back the servo off the switch so it will take a command again to go in the opposite direction.

I was also going to use a second micro switch on the base that when released will turn on the lights. I am going to use a Pro Mini to store that sketch. For that I was going to run the power through the micro switch to supply power to the Pro Mini when released. I'm running 7.4 volts so I was going to put a step down to 5v to it.

Do I have it right, or is it a little more complicated then what I think?


ARC Pro

Upgrade to ARC Pro

Become a Synthiam ARC Pro subscriber to unleash the power of easy and powerful robot programming

#2  

That's very cool. It sure would save a lot of wiring and save on ports. Thanks!