RoboClaw ST 2x45A + Hall sensor

Questions about using encoders with the Roboclaw product line
Posts: 1
Joined: Sat Nov 11, 2017 1:40 am

RoboClaw ST 2x45A + Hall sensor

Postby bob_kelso527 » Sat Nov 11, 2017 1:57 am

Hi Guys,
Just received my RoboClaw ST 2x45A5, However, having trouble with read the encoders.

First tried:
Motor +- to M1B, M1B
Hall sensor A Vout to Roboclaw 2a
Hall sensor B Vout to Roboclaw 2b
Hall sensor Vcc to Roboclaw 5+
Hall sensor GND to Roboclaw GND

Checking Ion Studio PWM when sliding M1 up and down (Encoder M1 does not move).

After some googling i came up with this connection:
IMG_1053.jpg (79.35 KiB) Viewed 846 times

ion studio.jpg
ion studio.jpg (146.65 KiB) Viewed 846 times

Now Encoder is counting and M1 Speed also moving.

Question is can i use it like this?

User avatar
Basicmicro Support
Posts: 1003
Joined: Thu Feb 26, 2015 9:45 pm

Re: RoboClaw ST 2x45A + Hall sensor

Postby Basicmicro Support » Mon Nov 13, 2017 10:40 am

I cant see your circuit very well. I assume there are pullups on the A and B channels. If you are unsure you should look at the A and B channels using a dual channel oscilloscope.

You can check if your quadrature signals are working by manually turning the encoder. Should should be able to turn it some distance forward and see the encoder count change and then turn it back to where it started and come back to 0 on the encoder count. If you cant do this repeatably then you probably still have a problem with the encoder circuit. If you can then try the same thing while running the motor. Run it forward for X distance and then back for -x distance(approximately) and the count should come back to 0(or near it).

Return to “Velocity and Position Control”

Who is online

Users browsing this forum: No registered users and 1 guest