Author |
Message |
Topic: tachometer issues |
sonicfire
Replies: 3
Views: 4678
|
Forum: General CCS C Discussion Posted: Fri Apr 13, 2007 12:15 pm Subject: tachometer issues |
The PIC is being run off of a 10 MHz oscillator. The problem is simply that it is giving me bogus values. The values it gives are proportional to changes in speed, but are nothing resembling the RPM ... |
Topic: tachometer issues |
sonicfire
Replies: 3
Views: 4678
|
Forum: General CCS C Discussion Posted: Thu Apr 12, 2007 2:49 pm Subject: tachometer issues |
I've been working on building a tachometer for a dc motor. The motor's axel has a gear with 24 teeth (24 teeth per revolution). The teeth go in between a photodiode and sensor. This creates a squar ... |
Topic: 1 Hz clock implementation without interference |
sonicfire
Replies: 2
Views: 4529
|
Forum: General CCS C Discussion Posted: Mon Mar 26, 2007 1:37 pm Subject: 1 Hz clock implementation without interference |
I was wondering if it's possible to implement a 1Hz clock output on my 16F877 PIC without interfering with the code written below. The 1Hz clock output is somewhat unrelated to the rest of the progra ... |
Topic: Unexpected method behavior? |
sonicfire
Replies: 4
Views: 5321
|
Forum: General CCS C Discussion Posted: Tue Mar 13, 2007 7:24 am Subject: Unexpected method behavior? |
The solution was right under my nose. It required a gate drive. All is well now. |
Topic: Unexpected method behavior? |
sonicfire
Replies: 4
Views: 5321
|
Forum: General CCS C Discussion Posted: Mon Mar 12, 2007 5:29 pm Subject: Unexpected method behavior? |
Given that the problem doesn't lie with my functions, the only thing I can think of is the connection of the PWM output to the switching transistors in the buck converter. If there is too high a dema ... |
Topic: Unexpected method behavior? |
sonicfire
Replies: 4
Views: 5321
|
Forum: General CCS C Discussion Posted: Mon Mar 12, 2007 7:43 am Subject: Unexpected method behavior? |
I've written the basic program architecture for a PIC 16F877 to control a buck converter. I tested this basic program with a potentiometer input and read the output with the oscilloscope. Everything ... |
Topic: Strange PWM behavior |
sonicfire
Replies: 2
Views: 4013
|
Forum: General CCS C Discussion Posted: Thu Mar 08, 2007 4:52 pm Subject: Strange PWM behavior |
The PWM output is perfect now. Thanks for the tip. |
Topic: Strange PWM behavior |
sonicfire
Replies: 2
Views: 4013
|
Forum: General CCS C Discussion Posted: Wed Mar 07, 2007 7:45 pm Subject: Strange PWM behavior |
I was finally able to get my PWM to operate at 100KHz, but now I'm observing some strange behavior. Currently, I am using a potentiometer to control the input to the PIC 16F877's ADC port. I scale t ... |
Topic: problems with int16 or methods |
sonicfire
Replies: 3
Views: 5178
|
Forum: General CCS C Discussion Posted: Tue Mar 06, 2007 12:44 pm Subject: problems with int16 or methods |
That did the trick! Many thanks... |
Topic: problems with int16 or methods |
sonicfire
Replies: 3
Views: 5178
|
Forum: General CCS C Discussion Posted: Tue Mar 06, 2007 12:24 pm Subject: problems with int16 or methods |
Right now, I'm drawing up an outline for my dc motor control. I was trying to compile this preliminary program, but I get error messages that say "A numeric expression must appear here" for ... |
Topic: Rotary Encoding for Amateurs |
sonicfire
Replies: 2
Views: 6143
|
Forum: General CCS C Discussion Posted: Mon Feb 26, 2007 1:19 pm Subject: Rotary Encoding for Amateurs |
Does anybody have experience with rotary encoders for measuring a motor's rotational speed? I'm using a slotted-optocoupler as a rotary encoder to help me determine a dc motor's speed. The optocoupl ... |
Topic: Stability issues with ADC? |
sonicfire
Replies: 20
Views: 20951
|
Forum: General CCS C Discussion Posted: Thu Feb 22, 2007 1:40 pm Subject: Stability issues with ADC? |
You guys were both dead on! I now understand the scaling factor and that works quite well. The 10bit adc seems to have fixed a lot of problems as well. Thank you. |
Topic: Stability issues with ADC? |
sonicfire
Replies: 20
Views: 20951
|
Forum: General CCS C Discussion Posted: Thu Feb 22, 2007 1:33 pm Subject: Stability issues with ADC? |
thanks |
Topic: Stability issues with ADC? |
sonicfire
Replies: 20
Views: 20951
|
Forum: General CCS C Discussion Posted: Thu Feb 22, 2007 1:05 pm Subject: Stability issues with ADC? |
I now understand why the PWM only accepts values from 0 to 19, but I'm not sure why the A/D converter returns a number 0 to 1023. I tried implementing the change with no success. The scope output is ... |
Topic: Stability issues with ADC? |
sonicfire
Replies: 20
Views: 20951
|
Forum: General CCS C Discussion Posted: Thu Feb 22, 2007 11:26 am Subject: Stability issues with ADC? |
Okay, here's a new problem. I've been informed that I need to output a 500KHz PWM signal, instead of a 20KHz signal. I manipulated the code a little bit and was able to get an output of 500KHz, but ... |
|