Author |
Message |
Topic: Hall sensor's problem with PIC16F887 |
adrix
Replies: 25
Views: 31792
|
Forum: General CCS C Discussion Posted: Fri May 25, 2012 5:16 pm Subject: Hall sensor's problem with PIC16F887 |
Maybe I asked a question in a wrong way. Here is what I want to do:
I have a motor and I am getting its rpms (0-5000rpm) (rpms is variable X) and I have another variable Y. And as I am increasing the ... |
Topic: Hall sensor's problem with PIC16F887 |
adrix
Replies: 25
Views: 31792
|
Forum: General CCS C Discussion Posted: Thu May 24, 2012 5:33 pm Subject: Hall sensor's problem with PIC16F887 |
I got it working, I don't know how precise it is, but it will satisfy my needs for now. Thanks guys for your help, I wouldn't done it without you.
I have one off topic question, but I don't want t ... |
Topic: Hall sensor's problem with PIC16F887 |
adrix
Replies: 25
Views: 31792
|
Forum: General CCS C Discussion Posted: Sun May 20, 2012 12:51 pm Subject: Hall sensor's problem with PIC16F887 |
The problem is likely when both inputs arrive at the same time. Why are you
trying to make them work in the same INT_RB interrupt? You have
separate/individual interrupts available for each pin. ... |
Topic: Hall sensor's problem with PIC16F887 |
adrix
Replies: 25
Views: 31792
|
Forum: General CCS C Discussion Posted: Sun May 20, 2012 10:33 am Subject: Hall sensor's problem with PIC16F887 |
I connected it to RB1, but I am getting very random numbers although the motor is spinning 1 time/sec.
I'll re-phrase one of my previous questions:-
When the motor is spinning a 1 turn/sec, do yo ... |
Topic: Hall sensor's problem with PIC16F887 |
adrix
Replies: 25
Views: 31792
|
Forum: General CCS C Discussion Posted: Sun May 20, 2012 4:01 am Subject: Hall sensor's problem with PIC16F887 |
, but I am getting very random numbers although the motor is spinning 1 time/sec.
What range of numbers are you expecting?
What sort of random numbers are you getting?
Have you looked at you ... |
Topic: Hall sensor's problem with PIC16F887 |
adrix
Replies: 25
Views: 31792
|
Forum: General CCS C Discussion Posted: Sat May 19, 2012 5:50 pm Subject: Hall sensor's problem with PIC16F887 |
Thanks, I got the hall sensor to work correctly. But I need to connect another hall sensor and read its value. I connected it to RB1, but I am getting very random numbers although the motor is spinnin ... |
Topic: 128x64 GLCD problem on PIC16F887 |
adrix
Replies: 19
Views: 43818
|
Forum: General CCS C Discussion Posted: Sun May 13, 2012 4:45 am Subject: 128x64 GLCD problem on PIC16F887 |
Hi,
It's important to understand how a character is generated on a GLCD display. Once you understand that, you can easily modify the code to do what you want. I answered exactly this question withi ... |
Topic: DS18S20 & DS18B20 Codes |
adrix
Replies: 54
Views: 665697
|
Forum: Code Library Posted: Sun May 13, 2012 4:44 am Subject: DS18S20 & DS18B20 Codes |
How can I make that the output would be 0,1 deg accuracy? I'm using DS18S20, so the division by 16 doesn't work. |
Topic: 128x64 GLCD problem on PIC16F887 |
adrix
Replies: 19
Views: 43818
|
Forum: General CCS C Discussion Posted: Sat May 12, 2012 3:49 pm Subject: 128x64 GLCD problem on PIC16F887 |
Thanks for the help. I managed to clear the flickering here's my code:
While(1)
{
temperature1 = ds1820_read();
sprintf(temp1, "Temperature: %.2f", ... |
Topic: 128x64 GLCD problem on PIC16F887 |
adrix
Replies: 19
Views: 43818
|
Forum: General CCS C Discussion Posted: Sat May 12, 2012 2:09 pm Subject: 128x64 GLCD problem on PIC16F887 |
Hi,
Those are extremely poor photos, so you aren't doing us any favors! Is the problem that the old data remains when the new data is displayed, showing both old and new superimposed?
John
So ... |
Topic: 128x64 GLCD problem on PIC16F887 |
adrix
Replies: 19
Views: 43818
|
Forum: General CCS C Discussion Posted: Sat May 12, 2012 10:31 am Subject: 128x64 GLCD problem on PIC16F887 |
Maybe I didn't explained the problem quite good, so I took some photos.
Here's what's shown when I turn on the project:
http://s17.postimage.org/ocgwhgd6z/P4010280.jpghttp://s17.postimage.org/f5ylu6 ... |
Topic: Hall sensor's problem with PIC16F887 |
adrix
Replies: 25
Views: 31792
|
Forum: General CCS C Discussion Posted: Sat May 12, 2012 7:23 am Subject: Hall sensor's problem with PIC16F887 |
Do what Temtronic suggests and do a crude calibration with a mains transformer.
I don't like the way you're getting the timing.
(1) You're dependant on all paths through the code taking the same ... |
Topic: Hall sensor's problem with PIC16F887 |
adrix
Replies: 25
Views: 31792
|
Forum: General CCS C Discussion Posted: Sat May 12, 2012 12:56 am Subject: Hall sensor's problem with PIC16F887 |
Ok I got it working, I thought that I needed a metal to get it working, but it needed a magnet. So now the lcd is showing the counts, but I have one question: if I understand the program correctly it ... |
Topic: Hall sensor's problem with PIC16F887 |
adrix
Replies: 25
Views: 31792
|
Forum: General CCS C Discussion Posted: Fri May 11, 2012 1:48 pm Subject: Hall sensor's problem with PIC16F887 |
Oh sorry, I need to make 10-80 Hz frequency. I wrote that lcd shows only "0" and doesn't change or blink. |
Topic: Hall sensor's problem with PIC16F887 |
adrix
Replies: 25
Views: 31792
|
Forum: General CCS C Discussion Posted: Fri May 11, 2012 12:52 pm Subject: Hall sensor's problem with PIC16F887 |
Well I expect that it would show the freq. of how many times the dc motor spins though the hall sensor. I am trying to imitate the car's rpm. |
|