View previous topic :: View next topic |
Author |
Message |
soulraven
Joined: 08 Feb 2009 Posts: 72 Location: campulung muscel
|
tachometer with pic16f877A |
Posted: Mon Feb 09, 2009 12:15 pm |
|
|
hy, i just start a project with PIC16F877A,
and for start i want to make a tachometer.
The input is on AN0 and the output is on a 16X2 display.
Can you help me?
I would be interested to have put everything in a project library for the project is more comprehensive with more modules.
http://img222.imageshack.us/my.php?image=calculatorqa8.jpg |
|
|
dyeatman
Joined: 06 Sep 2003 Posts: 1938 Location: Norman, OK
|
|
Posted: Mon Feb 09, 2009 12:28 pm |
|
|
That topic has been discussed in this forum numerous times. I would recommend using the search feature to get your class project going. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Feb 09, 2009 1:04 pm |
|
|
Right, but he doesn't want to use the CCP for this. I recommended that
he start a new thread for that. (Didn't guarantee there would be a solution). |
|
|
soulraven
Joined: 08 Feb 2009 Posts: 72 Location: campulung muscel
|
|
Posted: Mon Feb 09, 2009 1:07 pm |
|
|
please any help......... |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Feb 09, 2009 1:49 pm |
|
|
Describe the signal that you want to measure. What is the frequency ?
What is the duty cycle ? What is the amplitude ? What are the peak to
peak voltages ? (low and high). Is it a rectangular waveform or is it
a sine wave, etc. ? |
|
|
soulraven
Joined: 08 Feb 2009 Posts: 72 Location: campulung muscel
|
|
Posted: Mon Feb 09, 2009 2:02 pm |
|
|
is a signal rectangle is retrieved from the induction coil machines. 0V minimum voltage 5V max. Installation I did print a optocultor I attached blue print in the above message ..... |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Feb 09, 2009 2:11 pm |
|
|
What about the frequency and duty cycle ?
Also, your picture is cut off on the left side. I can't see the complete
input circuit. |
|
|
soulraven
Joined: 08 Feb 2009 Posts: 72 Location: campulung muscel
|
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Feb 09, 2009 3:34 pm |
|
|
I think it can be done. The PicBasic Pro manual has the COUNT command
which can test any pin for the frequency of an input signal. See page 64
in the Acrobat reader for the the COUNT command :
http://www.melabs.com/downloads/pbpm108.pdf
It gives the limits of the frequency range that it can accept. You could
write an ASM routine in a CCS program and duplicate the function of the
PicBasic Pro COUNT command. |
|
|
|