CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 20 matches
CCS Forum Index
Author Message
  Topic: How to operate DC motor and Servo motor simultaneously?
Jent

Replies: 6
Views: 7904

PostForum: General CCS C Discussion   Posted: Sun Mar 11, 2012 2:25 am   Subject: How to operate DC motor and Servo motor simultaneously?

Your servo code is sprinkled with delay_us(xxxxx). Delay_us(xxxxx) locks up the processor so that it twiddles is thumbs waiting for the delay to end. You need some means of allowing the processor to ...
  Topic: How to operate DC motor and Servo motor simultaneously?
Jent

Replies: 6
Views: 7904

PostForum: General CCS C Discussion   Posted: Sun Mar 11, 2012 2:05 am   Subject: How to operate DC motor and Servo motor simultaneously?
thanks so much for Mike Walne and asmboy...

I am totally not good in C programming, can you guide me how to use INTERRUPT? since I've ever learnt with assembly langguage in Motorola 6811, but i nev ...
  Topic: How to operate DC motor and Servo motor simultaneously?
Jent

Replies: 6
Views: 7904

PostForum: General CCS C Discussion   Posted: Sat Mar 10, 2012 10:38 am   Subject: How to operate DC motor and Servo motor simultaneously?
Hi, I am using PIC18f4550 to control servo motor and dc motor. At first, I testing one by one, they are working well, but when I require to combine the coding together, I'm facing problem.

Either t ...
  Topic: How to use "goto_address() and "return"
Jent

Replies: 3
Views: 6197

PostForum: General CCS C Discussion   Posted: Sat Mar 03, 2012 8:45 pm   Subject: How to use "goto_address() and "return"
Hi,

Can someone guide me? I do not really understand how to use "goto_address()" and "return" if I require to jump to another function.

actually I need to jump from function ...
  Topic: Problem in coding of servo motor+digital compass module
Jent

Replies: 8
Views: 8523

PostForum: General CCS C Discussion   Posted: Fri Mar 02, 2012 11:02 pm   Subject: Problem in coding of servo motor+digital compass module
Now my main problem is, no matter how i set the range for the heading degree...for example: if(000<=heading<=180), then follow by if(181<=heading<=359)...

It may just read the data in & ...
  Topic: Problem in coding of servo motor+digital compass module
Jent

Replies: 8
Views: 8523

PostForum: General CCS C Discussion   Posted: Fri Mar 02, 2012 8:02 pm   Subject: Problem in coding of servo motor+digital compass module
Thanks so much for guiding me...

to temtronic,

Before this, I have ever tried to test the compass solely, it worked ok..
but when I added up with servo motor coding, the heading degree shown in ...
  Topic: Problem in coding of servo motor+digital compass module
Jent

Replies: 8
Views: 8523

PostForum: General CCS C Discussion   Posted: Fri Mar 02, 2012 12:08 pm   Subject: Problem in coding of servo motor+digital compass module
I really cant find out the problems, before this, I have try to test the servo motor by using the simple coding below, but it seemed to be working...


#include <18F4550.h>
#fuses HS, NOWDT, ...
  Topic: Problem in coding of servo motor+digital compass module
Jent

Replies: 8
Views: 8523

PostForum: General CCS C Discussion   Posted: Fri Mar 02, 2012 11:52 am   Subject: Problem in coding of servo motor+digital compass module
Hi, I am trying to control the servo motor turning base on the heading degree from compass module. Now I did for testing purpose first, but it did not work on my servo motor. Below is my coding:


...
  Topic: Servo Motor is unable to turn..help..
Jent

Replies: 3
Views: 5908

PostForum: General CCS C Discussion   Posted: Mon Feb 27, 2012 11:18 am   Subject: Servo Motor is unable to turn..help..
Now my servo can be turning after changing to the delay_us..Thanks..^.^
  Topic: Servo Motor is unable to turn..help..
Jent

Replies: 3
Views: 5908

PostForum: General CCS C Discussion   Posted: Mon Feb 27, 2012 10:50 am   Subject: Servo Motor is unable to turn..help..
Thanks your reply..

I checked from its datasheet, when send the pulse 1.5ms, the servo supposes rotating to neutral point. 1ms for anticlockwise, 2ms for clockwise.

I use 5V (Vdd) from PIC since ...
  Topic: Servo Motor is unable to turn..help..
Jent

Replies: 3
Views: 5908

PostForum: General CCS C Discussion   Posted: Mon Feb 27, 2012 9:58 am   Subject: Servo Motor is unable to turn..help..
Hi, I am doing my testing on a RC servo motor.. I understand that to turn the servo motor either -45degree, 0degree and 45degree is based on the PWM signal send to the servo motor.

I am using PIC18 ...
  Topic: Error on "printf" by using int16
Jent

Replies: 3
Views: 11283

PostForum: General CCS C Discussion   Posted: Wed Feb 15, 2012 10:57 am   Subject: Error on "printf" by using int16
Thanks informing...i really mistyped with 1 but actually is l...
actually I followed the previous post message from this ccs forum, and also intend to try this testing..

actually i did not really ...
  Topic: Error on "printf" by using int16
Jent

Replies: 3
Views: 11283

PostForum: General CCS C Discussion   Posted: Wed Feb 15, 2012 10:06 am   Subject: Error on "printf" by using int16
Hi.
I have a little problem I'm not able to solve on the coding. Hope the experts here can help me.

Below is my one part of coding:

void main()
{
int16 heading;
while( ...
  Topic: Simple DC Motor Control with PIC18f4550
Jent

Replies: 3
Views: 6915

PostForum: General CCS C Discussion   Posted: Mon Feb 06, 2012 9:16 am   Subject: Simple DC Motor Control with PIC18f4550
I changed a bit the coding into the void main(), it can be compiled. Motor can run too. But two motors can't run simultaneously.

I've checked the output voltage in output of L293D, i supply to DC ...
  Topic: Simple DC Motor Control with PIC18f4550
Jent

Replies: 3
Views: 6915

PostForum: General CCS C Discussion   Posted: Mon Feb 06, 2012 8:18 am   Subject: Simple DC Motor Control with PIC18f4550
Hi... Before this, I had tested the LCD 16x2 and it can be done successfully with the experts' helps from here. Thanks a lot.

Now, I'm testing the dc motor with PIC18f4550 with the coding below wi ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group