How to connect a Home switch with an Arduino

General discussion of using Roboclaw motor controllers
Post Reply
maov
Posts: 2
Joined: Thu Mar 18, 2021 3:12 pm
How to connect a Home switch with an Arduino

Post 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/
User avatar
Basicmicro Support
Posts: 1594
Joined: Thu Feb 26, 2015 9:45 pm
Re: How to connect a Home switch with an Arduino

Post 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).

Post Reply