im so lost

4 years 2 months ago #29532143 by glomagno@hotmail.com
i bought a SDC2130S

I want to connect motor and encoder correctly

i am using this software and circuit board http://www.hvlabs.com/Images/thumbs/serialservo.jpg Im guessing this is using PWM?

I am using a phidgets dc motor with encoder. I can operate in open loop mode but im so lost in roborun on how to set up the encoder for position.

What pins should i be connected to from the controller(Data,ground,5V) board and what pins for the encoder get connected to the 15 pin connector? What settings for the encoder? I can do the fine tuning for the encoder settings im just lost on how it can be recognized

Please Log in or Create an account to join the conversation.

4 years 2 months ago #29532146 by blake
Replied by blake on topic im so lost
There are allocated inputs on the controllers 15pin dsub specifically for the encoder, see Table 4 on the SDC datasheet . Your encoder should have four wires: 5V, Gnd, A and B. 5V will go to pin 14, Gnd will go to pin 5 or 13, A will go to pin 4, and B will go to pin 8.

In the configuration tab of Roborun+ you will see a label "Encoders", this is where you configure the encoder input/feedback. Please read the section "Connecting Optical Encoders" on page 51 of our User Manual for more detail.

Please Log in or Create an account to join the conversation.

4 years 2 months ago #29532148 by glomagno@hotmail.com
Replied by glomagno@hotmail.com on topic im so lost
Awesome ill try that tonight. May have to switch A and B due to having a gear reduction box.


what pins should signal from the serial board be connected to? I did have it on 4,5,14

As you can see im not an electrical genius. Sorry if this is too newbish for some.

Please Log in or Create an account to join the conversation.

4 years 2 months ago #29532149 by blake
Replied by blake on topic im so lost
To test if the encoder is wired properly you can perform the following: Enable the encoder from the Configuration tab of Roborun. Then go to the Run tab and select the "Counter" channel in the capture window on the bottom right. With your manually turn the motor shaft by hand. The count should increment when turning clockwise and reduce when turning counter clockwise. If this is backwards you simply need to switch your A and B wires. If no count is observed at all then there is a misconnection somewhere in your wiring.

Regarding the serial board I'm not sure what you are referring to. Are you using the RIOX possibly or something different?

No need to apologize these are very common questions, this thread will be useful to many.
The following user(s) said Thank You: glomagno@hotmail.com

Please Log in or Create an account to join the conversation.

4 years 2 months ago #29532151 by glomagno@hotmail.com
Replied by glomagno@hotmail.com on topic im so lost
The serial board works in a similar fashion as an RC board that controls RC servos. I had the blue wire on pin 4, Black on pin 5 and red on pin 14 and it works from the software im using that controls the board as long as the SDC21XXX is in open loop mode.

Which made me confused because if the data connection from the servo controller board(RC board) goes to pin 4 and the A channel of the encoder goes to pin 4 also doesn't that conflict? im no expert in signals and the priority between them.

Please Log in or Create an account to join the conversation.

4 years 2 months ago #29532152 by blake
Replied by blake on topic im so lost
Oh I see. Okay yes the Encoder A and pulse input (RC) 1 share the same pin. Since you are using an encoder just use a different pin for your RC input, such as Pin 8 which is Pulse In 2 (RC2).
The following user(s) said Thank You: glomagno@hotmail.com

Please Log in or Create an account to join the conversation.

Moderators: tonysantoni
Time to create page: 0.136 seconds