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: Controlling position of stepper motor
bliztkrieg

Replies: 15
Views: 33187

PostForum: General CCS C Discussion   Posted: Thu Nov 08, 2018 4:24 am   Subject: Controlling position of stepper motor

Now this has a three step very slow start, then a sudden jump in rate. Not linear.
As you have the code, with just one step at each speed, it is asking a lot for the motor to actually keep up....
...
  Topic: Controlling position of stepper motor
bliztkrieg

Replies: 15
Views: 33187

PostForum: General CCS C Discussion   Posted: Thu Nov 08, 2018 3:47 am   Subject: Controlling position of stepper motor
The quoted driver does micro-stepping, but he's not telling how he's got it set up, what each driver pin is doing (apart from direction), or his motor's steps per revolution.

Driving @ 25kHz a full ...
  Topic: Controlling position of stepper motor
bliztkrieg

Replies: 15
Views: 33187

PostForum: General CCS C Discussion   Posted: Thu Nov 08, 2018 3:45 am   Subject: Controlling position of stepper motor
There are several things in the code that may have 'issues'. For instance:

if(position >= (desired_pos-1250))


What happens if 'desired_pos' is less than 1250?. ...
  Topic: Controlling position of stepper motor
bliztkrieg

Replies: 15
Views: 33187

PostForum: General CCS C Discussion   Posted: Wed Nov 07, 2018 5:20 am   Subject: Controlling position of stepper motor
@dave, i have done the same (almost) i mean my pulse signal is going to the external interrupt and i m counting the number for rising edges so that should be the total no. of pulses right ? The thing ...
  Topic: Controlling position of stepper motor
bliztkrieg

Replies: 15
Views: 33187

PostForum: General CCS C Discussion   Posted: Wed Nov 07, 2018 4:22 am   Subject: Controlling position of stepper motor
@Mike
I am counting the number of pulses to keep track how much steps i have taken and since i know how many pulses are there while deceleration im running that piece of code so the motor should stop ...
  Topic: Controlling position of stepper motor
bliztkrieg

Replies: 15
Views: 33187

PostForum: General CCS C Discussion   Posted: Wed Nov 07, 2018 4:20 am   Subject: Controlling position of stepper motor
I'm having some difficulty trying to decode what you're trying to do.
Yes, it's odd that you get different results each time you run the code.
I'd expect the same wrong result each time.

Please e ...
  Topic: Controlling position of stepper motor
bliztkrieg

Replies: 15
Views: 33187

PostForum: General CCS C Discussion   Posted: Wed Nov 07, 2018 12:09 am   Subject: Controlling position of stepper motor
Hey guys I'm trying to control the position of stepper motor but couldn't get the hang of it. I have done the part where you have to slowly increase and decrease the frequency for smooth transitions. ...
  Topic: 16x2 lcd behaving as 8x2
bliztkrieg

Replies: 14
Views: 27727

PostForum: General CCS C Discussion   Posted: Tue Aug 28, 2018 10:33 pm   Subject: 16x2 lcd behaving as 8x2
comment.
I read the post as the 'right half of display not working' ,which to me means a hardware problem on the LCD module not software. Usually these device have several chips, each controlling a p ...
  Topic: 16x2 lcd behaving as 8x2
bliztkrieg

Replies: 14
Views: 27727

PostForum: General CCS C Discussion   Posted: Tue Aug 28, 2018 4:14 am   Subject: 16x2 lcd behaving as 8x2
There are three basic reasons for this:

1) Using a driver with the wrong init sequence. PCM_Programmer's flex LCD is 'known good' for just about every text LCD.
Check the version you have _is_ the ...
  Topic: 16x2 lcd behaving as 8x2
bliztkrieg

Replies: 14
Views: 27727

PostForum: General CCS C Discussion   Posted: Tue Aug 28, 2018 3:23 am   Subject: 16x2 lcd behaving as 8x2
Post a link to the driver that you downloaded from the forum.

Post the part number of your LCD. If you don't know it, then post a link
to the website where you bought it from.

i bought from a ...
  Topic: 16x2 lcd behaving as 8x2
bliztkrieg

Replies: 14
Views: 27727

PostForum: General CCS C Discussion   Posted: Tue Aug 28, 2018 2:52 am   Subject: 16x2 lcd behaving as 8x2
Post a link to the driver that you downloaded from the forum.

Post the part number of your LCD. If you don't know it, then post a link
to the website where you bought it from.

i just looked it ...
  Topic: 16x2 lcd behaving as 8x2
bliztkrieg

Replies: 14
Views: 27727

PostForum: General CCS C Discussion   Posted: Tue Aug 28, 2018 2:36 am   Subject: 16x2 lcd behaving as 8x2
Is your LCD_Driver.c the same as the CCS supplied lcd.c file?

Have you tried PCM's flex driver?

Mike

i downloaded the driver from this very forum, the only difference is that you define all t ...
  Topic: 16x2 lcd behaving as 8x2
bliztkrieg

Replies: 14
Views: 27727

PostForum: General CCS C Discussion   Posted: Tue Aug 28, 2018 2:22 am   Subject: Re: 16x2 lcd behaving as 8x2

void main()
{
lcd_init();
delay_ms(1000);

while(1)
{
lcd_gotoxy(0,1);
printf(lcd_putc, "Date: 28/08/18");
}
}
1. The delay should be at ...
  Topic: 16x2 lcd behaving as 8x2
bliztkrieg

Replies: 14
Views: 27727

PostForum: General CCS C Discussion   Posted: Tue Aug 28, 2018 2:16 am   Subject: 16x2 lcd behaving as 8x2
See the sticky about Proteus/ISIS.

LCDs don't wake up as soon as the power is applied.

Try putting a delay_ms(1000) before the lcd_init(), rather than after.

Mike

still didnt fix the issue ...
  Topic: 16x2 lcd behaving as 8x2
bliztkrieg

Replies: 14
Views: 27727

PostForum: General CCS C Discussion   Posted: Tue Aug 28, 2018 1:45 am   Subject: 16x2 lcd behaving as 8x2
Hey guys I'm trying to interface a 16x2 lcd which is working fine on proteus but on hardware only the first 8 columns are working anything after that is just completely blank. What could be the proble ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group