how control four MD30B with PS2 controller

Autonomous Robot, Manual Robot, DC Motor Driver, Stepper Motor Driver, Servo, Multi PWM chip.....

how control four MD30B with PS2 controller

Postby carlobot » Sun Jun 26, 2011 1:12 am

Hi guys,

I 'd like to control 4 motors indipendently as PSC28A do but using SKPS and SK40C.Any suggestion?Thank you for the help,
regards ,
carlobot
carlobot
Newbie
 
Posts: 12
Joined: Fri Apr 09, 2010 11:25 pm

Re: how control four MD30B with PS2 controller

Postby robosang » Sun Jun 26, 2011 8:04 pm

Do you need to control speed of all four motors? Because the normal PIC have only 2 PWM output.

Basically you can try the sample source code of SKPS from cytron, I started from there too. Quite simple ;)
robosang
Expert
 
Posts: 1239
Joined: Wed Jun 10, 2009 5:37 pm

Re: how control four MD30B with PS2 controller

Postby carlobot » Mon Jun 27, 2011 12:57 am

HI,

thank you for reply.As you mentioned I need the four speed for motors; I have got cytron software to control two motors in excellent way with pwm hardware of Pic 16f877a .How I can modify /integrate the project and get the target of controlling
four motors?Your help is very appreciate.Regards,

carlobot
carlobot
Newbie
 
Posts: 12
Joined: Fri Apr 09, 2010 11:25 pm

Re: how control four MD30B with PS2 controller

Postby hyng » Thu Jun 30, 2011 6:10 pm

You need 4 pwm to control 4 speed. Maybe you can try other MCU that has 4 PWM like 18F series. One of the example is PIC18F2331/2431/4331/4431/. But the coding will be different from 16F.
User avatar
hyng
Moderator
 
Posts: 292
Joined: Thu Apr 16, 2009 11:35 am

Re: how control four MD30B with PS2 controller

Postby robosang » Thu Jun 30, 2011 9:27 pm

Use PIC16F777 before, 3 PWM.... but you need 4 channels, maybe you should take a look on what hyng recommend.
robosang
Expert
 
Posts: 1239
Joined: Wed Jun 10, 2009 5:37 pm

how to control servo motor using ps2 controller?

Postby Dee~ » Wed Nov 23, 2011 10:04 pm

Hi,
I want to control servo motor using the ps2 controller. How to connect the sk40c(pic16f877a), servo controller sc08a (to control servo motor), and skps together. It that possible for me to connect sc08a and skps to sk40c using uart interface, because pic16f877a only has one uart interface, right? thanks
Dee~
Fledgling
 
Posts: 1
Joined: Wed Nov 23, 2011 9:08 pm

Re: how control four MD30B with PS2 controller

Postby ober » Thu Nov 24, 2011 10:45 am

That is possible, you can create your own software UART, please refer to one of our DIY (Do It Yourself) project, PR27, Multi UART Interface.
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm


Return to Robot Controller

Who is online

Users browsing this forum: No registered users and 18 guests

cron