PR11 FOR loop count

LED Blinking, Walking with Cytron Servo, Displaying RFID, Multi-function Mobile Robot......

Re: PR11 FOR loop count

Postby yonghui » Wed Jul 18, 2012 1:00 pm

if ur fan is consuming low current. u can use L293/ L293D as the driver. u can control 4 fans by using this IC since it has 4 half bridge. u can use BJT oso if ur current is very small, as small as mili amperes.
the PWM code is dependent on the controller u are using. u can refer the datasheet to get the configuration correct. normally u will need to set the CCPCONX and TIMER 2/4/6 configuration register.

changing the pWM duty cycle by loading CCPR register. and PWM frequency is set by using PR register of the timer. u selected.
thanks&regards,
yh
yonghui
Moderator
 
Posts: 732
Joined: Mon Sep 28, 2009 3:27 pm

Re: PR11 FOR loop count

Postby vitor85 » Tue Jul 31, 2012 10:44 pm

black_smtk WROTE:can someone give me the pwm driver circuit for dc motor? need to control fan speed based on temperature
:roll:


can you let me know how you modify the code to let the PIC control the fan speed!thank you!
vitor85
Apprentice
 
Posts: 51
Joined: Thu Jul 12, 2012 7:49 am

Re: PR11 FOR loop count

Postby yonghui » Wed Aug 01, 2012 11:41 am

u can refer to the datasheet for what code to write. check for CCP module in PWM mode.
thanks&regards,
yh
yonghui
Moderator
 
Posts: 732
Joined: Mon Sep 28, 2009 3:27 pm

Re: PR11 FOR loop count

Postby vitor85 » Fri Aug 03, 2012 7:29 am

can you give the sample code??thank you!!
vitor85
Apprentice
 
Posts: 51
Joined: Thu Jul 12, 2012 7:49 am

Re: PR11 FOR loop count

Postby yonghui » Fri Aug 03, 2012 3:19 pm

i dont have sample code.
u can anytime search in google for " PIC PWM C code" mayb u can get some.
thanks&regards,
yh
yonghui
Moderator
 
Posts: 732
Joined: Mon Sep 28, 2009 3:27 pm

Re: PR11 FOR loop count

Postby robosang » Fri Aug 03, 2012 6:39 pm

If you don study, sample code also you cannot use 8-) Confident on that :)

You can try Cytron's DIY project, they have plenty of DIY project that similar with PR11, I think PR10 should be helpful, you can also try any project which is mobile robot, they should uses PWM to control the motor speed. You can refer to the schematic too.
robosang
Expert
 
Posts: 1239
Joined: Wed Jun 10, 2009 5:37 pm

Re: PR11 FOR loop count

Postby vitor85 » Fri Aug 03, 2012 11:58 pm

robosang WROTE:If you don study, sample code also you cannot use 8-) Confident on that :)

You can try Cytron's DIY project, they have plenty of DIY project that similar with PR11, I think PR10 should be helpful, you can also try any project which is mobile robot, they should uses PWM to control the motor speed. You can refer to the schematic too.



thank you!!!
vitor85
Apprentice
 
Posts: 51
Joined: Thu Jul 12, 2012 7:49 am

Previous

Return to DIY Project Set

Who is online

Users browsing this forum: No registered users and 13 guests

cron