Drive DC motor

149 views
Skip to first unread message

Ender

unread,
Jun 12, 2012, 5:33:33 PM6/12/12
to pingui...@googlegroups.com
Hi pinguino folks,

Is there anyone who used pinguino to drive DC motors with motor driver
card ?
motor driver card model is RW-PL-1212 MC33926

Lucas Fernandez

unread,
Jun 13, 2012, 10:27:39 AM6/13/12
to Pinguino
Not me, but have you a url who describe more precisly your card ?

Ender

unread,
Jun 13, 2012, 11:56:04 AM6/13/12
to pingui...@googlegroups.com
Yes,i have a url which describes more precisely my card

http://www.pololu.com/catalog/product/1212

Lucas Fernandez

unread,
Jun 13, 2012, 4:59:54 PM6/13/12
to Pinguino
Wow, the MC33926 is new generation of driver really better and cheaper
than my old fashionned adafruit shield based on 74HC595N + L293D.

So, whats your problem with your board ? I hope I can help you.

Ender

unread,
Jun 15, 2012, 9:49:02 AM6/15/12
to pingui...@googlegroups.com
thank you, i hope u can help us:)
My problem is the connection between this driver card and
microcontroller (PIC18F4550). Datasheet for driver card was not helpful
to set the circuit.

Juan Fabian

unread,
Jun 15, 2012, 7:30:20 PM6/15/12
to pingui...@googlegroups.com
Hi,

maybe i'm wrong, but reading the datasheet and the info on the web, it
seems that you can use a pwm output from pinguino. They also say that
you can use an enhanced mode if you plan to use fast pwm's (more than
10KHz).

So you have to connect one pwm output to an input of this chip, apart
from power supply and motor connections.

Hope it helps

2012/6/15 Ender <leop...@gmail.com>:
> --
> Vous recevez ce message, car vous êtes abonné au groupe Google
> Groupes Pinguino.
> Pour envoyer un message à ce groupe, adressez un e-mail
> à pingui...@googlegroups.com.
> Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse
> pinguinocard...@googlegroups.com.
> Pour plus d'options, consultez la page de ce groupe :
> http://groups.google.com/group/pinguinocard?hl=fr
>

Ender

unread,
Jun 15, 2012, 7:45:55 PM6/15/12
to pingui...@googlegroups.com
Hi,
u r right, but i want to drive motors in on-off mode, fast or slow it
doesn't matter.
If u read the datasheet, there are Vin, out1 and out2 pins. How can i
connect this to the PIC? I mean that Is analogWrite function or
digitalWrite function necessary to drive the motors?

On 16.06.2012 02:30, Juan Fabian wrote:
> Hi,
>
> maybe i'm wrong, but reading the datasheet and the info on the web, it
> seems that you can use a pwm output from pinguino. They also say that
> you can use an enhanced mode if you plan to use fast pwm's (more than
> 10KHz).
>
> So you have to connect one pwm output to an input of this chip, apart
> from power supply and motor connections.
>
> Hope it helps
>
> 2012/6/15 Ender<leop...@gmail.com>:
>> thank you, i hope u can help us:)
>> My problem is the connection between this driver card and microcontroller
>> (PIC18F4550). Datasheet for driver card was not helpful to set the circuit.
>>
>>
>> On 13.06.2012 23:59, Lucas Fernandez wrote:
>>> Wow, the MC33926 is new generation of driver really better and cheaper
>>> than my old fashionned adafruit shield based on 74HC595N + L293D.
>>>
>>> So, whats your problem with your board ? I hope I can help you.
>>>
>> --
>> Vous recevez ce message, car vous �tes abonn� au groupe Google
>> Groupes Pinguino.
>> Pour envoyer un message � ce groupe, adressez un e-mail
>> � pingui...@googlegroups.com.
>> Pour vous d�sabonner de ce groupe, envoyez un e-mail � l'adresse

Juan Fabian

unread,
Jun 15, 2012, 8:24:29 PM6/15/12
to pingui...@googlegroups.com
I think you can use an analogWrite on a pwm output to set the duty
cycle, and maybe you could use digitalWrite + delay combos to make a
pwm signal on your own.

Take a look here:

http://wiki.pinguino.cc/index.php/AnalogWrite

Hope it helps a little further!

2012/6/16 Ender <leop...@gmail.com>:
>>> Vous recevez ce message, car vous êtes abonné au groupe Google
>>> Groupes Pinguino.
>>> Pour envoyer un message à ce groupe, adressez un e-mail
>>> à pingui...@googlegroups.com.
>>> Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse
>>> pinguinocard...@googlegroups.com.
>>> Pour plus d'options, consultez la page de ce groupe :
>>> http://groups.google.com/group/pinguinocard?hl=fr
>>>
>
> --
> Vous recevez ce message, car vous êtes abonné au groupe Google
> Groupes Pinguino.
> Pour envoyer un message à ce groupe, adressez un e-mail
> à pingui...@googlegroups.com.
> Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse

Juan Fabian

unread,
Jun 15, 2012, 8:33:48 PM6/15/12
to pingui...@googlegroups.com
Oh sorry, if you want to do full on/off i think you can use
digitalWrite (with high 5v or 3.3v if that's the case). It seems the
operation range for the driver is 3-5V, and there are some resistors
protecting the chip inputs a bit.

2012/6/16 Juan Fabian <juan....@gmail.com>:

Oswaldo Villarroel

unread,
Jun 15, 2012, 8:56:16 PM6/15/12
to pingui...@googlegroups.com
Hello

I recomend do not use a dc motor direct pinguino u other pic...
why? intensity...
better way to drive a motor is using a relay o transistor (3906... for example) just like a switch, and is a nice way to do a on/off control





2012/6/15 Juan Fabian <juan....@gmail.com>

Ender Cetin

unread,
Jun 16, 2012, 3:34:13 AM6/16/12
to pingui...@googlegroups.com

Thank u all, i will try all of them.

Reply all
Reply to author
Forward
0 new messages