Page 1 of 1

How to connect a Home switch with an Arduino

Posted: Thu Mar 18, 2021 3:58 pm
by maov
Hi,

I'm trying to connect a home switch for my project. My objective is to call a certain position "home." How do you connect this with arduino? I'm reading this guide but I'm already using S4 for the Arduino https://resources.basicmicro.com/limit- ... -roboclaw/

Re: How to connect a Home switch with an Arduino

Posted: Fri Mar 19, 2021 12:22 pm
by Basicmicro Support
Home is by definition position 0. Always. On startup you need to move the motor back into the home switch so it can zero the encoder value. You can do this with the auto homing function(Home(Auto) or you can move the motor after power up using control commands(Home(User).