misan / dcservo

Position control of DC motors
312 stars 113 forks source link

how can use STK681-050 #48

Open dnshvra opened 6 years ago

dnshvra commented 6 years ago

hello i have STK681-050 ic, Bidirectional DC Brush-Type Motor Driver (IO=5A). this driver have 4 pin , INA, INB, INC, IND. how can connect dcservo to this driver? STK681-050.pdf image_001

dnshvra commented 6 years ago

How to connect bts7960 module?

misan commented 6 years ago

There are several possible choices but you can use this one (and select the right output pins and this is borrowed from Arduino forums so PWM output pins may not match my code).

image

langwadt commented 6 years ago

you need to connect GND

misan commented 6 years ago

Absolutely. Arduino GND and other supplies GND is to be connected together to keep magic smoke inside.

El mié., 18 jul. 2018 23:29, langwadt notifications@github.com escribió:

you need to connect GND

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/misan/dcservo/issues/48#issuecomment-406080420, or mute the thread https://github.com/notifications/unsubscribe-auth/AAccyNCzBv4zFX7eNlZFERJ8YXdkcA4uks5uH6i6gaJpZM4VTqHB .

PierreAuge commented 6 years ago

https://github.com/PierreAuge/dcservo/blob/master/dcservo/DCServo-IBT2.ino

Here's a link to my working sketch using the IBT-2

misan commented 6 years ago

Hi @PierreAuge,

Good to know. With that, you can drive a powerful motor. I would love to see it in action.