Rules | Recent posts | topic RSS | Search | Register  | Log in

PIC16F84-based Tachometer
Goto page 1, 2  Next
 
Post new topic  Reply to topic    EDAboard.com Forum Index -> Hobby Circuits and Small Projects Problems
Author Message
algor



Joined: 10 Jun 2004
Posts: 6


Post02 Aug 2004 11:22   PIC16F84-based Tachometer
tags: t pic tachometer project tachometer pic16f84 tachometer using pic pic16f84 tach tacho pic pic16f84 tacho pic project tachometer tachometer using a pic16f84 pic 16f84 project

Hi...

I'm doing a project on PIC16f84. I wanna make a digital tachometer using this PIC but i don't know what to do first. Can somebody give me an idea of how to do it? Thanx... I'd be very grateful for ur help.
Back to top
batdin



Joined: 03 Jun 2004
Posts: 181
Helped: 3
Location: Bulgaria


Post02 Aug 2004 18:00   Re: PIC16F84-based Tachometer
tags: t

First you get acquainted with 16F84 datasheet.I mean you read all of it.
Then use the tmr0 input (RA4) to count the incoming pulses and count them for a certain period of time chosen to satisfy your requirements for refresh rate,accuracy and ease of design.
The period of measurement will be determined by especially made delay blocks in the program.
If the rotor is slow then you'll have to measure not the frequency but the period between two pulses.Then the algorithm is different.
If you want some hints give some details as the RPM range of the rotor,how many pulses there are per revolution,what refresh rate you want,what type of display etc.
Back to top
Fragrance



Joined: 26 Jul 2002
Posts: 1324
Helped: 23


Post09 Aug 2004 14:56   Re: PIC16F84-based Tachometer
tags: t pic tachometer project tachometer pic16f84 tachometer using pic pic16f84 tach tacho pic pic16f84 tacho pic project tachometer tachometer using a pic16f84 pic 16f84 project

algor wrote:
Hi...

I'm doing a project on PIC16f84. I wanna make a digital tachometer using this PIC but i don't know what to do first. Can somebody give me an idea of how to do it? Thanx... I'd be very grateful for ur help.


here is it two of them are very intrusting design based avr and pic16f84a
hope this will help you



Sorry, but you need login in to view this attachment

Back to top
chewbecca



Joined: 12 Jun 2001
Posts: 26


Post10 Aug 2004 6:14   Re: PIC16F84-based Tachometer
tags: tachometer schematic silicon chip tachometer schematic tachometer

Please upload the schematic files which are missing from tachoasm.zip. The archive only has asm and pcb pdf's there is no schematic.
Digital tachometer by silicon chip mag.
It is what i wanted....
Back to top
Fragrance



Joined: 26 Jul 2002
Posts: 1324
Helped: 23


Post10 Aug 2004 15:07   Re: PIC16F84-based Tachometer
tags: tachometer schematic silicon chip tachometer schematic tachometer

chewbecca wrote:
Please upload the schematic files which are missing from tachoasm.zip. The archive only has asm and pcb pdf's there is no schematic.
Digital tachometer by silicon chip mag.
It is what i wanted....


sory i only have code and pcb if some once have schematic for this please sahre with us the rest file which are in this archive have every thing
Back to top
^NightWish^



Joined: 11 Jun 2006
Posts: 1


Post11 Jun 2006 14:01   Re: PIC16F84-based Tachometer
tags: t tach with 16f84 tachometer with pic tacho pic pic tachometer circuit tacho pic circuit

hello, i want to build a circuit with pic 16f84a as a circle tachometer, for exaples i want to count how many pulses i have per minute. can anyone help me please? thanks
Back to top
ELECTRICIAN254



Joined: 23 Oct 2005
Posts: 4


Post17 Jun 2006 2:59   PIC16F84-based Tachometer
tags: t

Do you Have Pic Basic Pro?

Then you could use the Counter Command
Which will count pulses from preset pin and time.
Back to top
emanuex



Joined: 20 Jun 2006
Posts: 1


Post20 Jun 2006 1:20   PIC16F84-based Tachometer
tags: t

thanks for the circuit... i need this
Back to top
marcomayolo



Joined: 20 Jun 2006
Posts: 1


Post20 Jun 2006 19:27   Re: PIC16F84-based Tachometer
tags: t

Thanks for the program, I need to know how I can do in order to earn some points. Thanks.
Back to top
bangunprayogi



Joined: 19 May 2005
Posts: 9
Location: Bandung, Indonesia


Post23 Jun 2006 1:21   Re: PIC16F84-based Tachometer
tags: t pic 16f84 project

Hi guys...I just want to share my experience working with PIC16F84:
1. First of all, make ur specifcation for the system.
2. Read the PIC16F84 manual clearly.
3. Use the PICbasic Pro compiler software, it's very easy to build program (read the PICbasic Pro manual, please).
4. Make the simulation with VSM Proteus ( U can build the circuit and download ur program that is made by PICbasic Pro software to this simulator virtually, I've really enjoyed it Smile )
5. Verify your project
6. Having fun..Smile

Hopely useful.Very Happy
Back to top
ViceVirtue



Joined: 10 Dec 2006
Posts: 1


Post10 Dec 2006 14:29   Re: PIC16F84-based Tachometer
tags: t

I know it's some time later, but how did you go?
I'm interested in building one myself for my 82 Corona
Back to top
nishantm



Joined: 26 Jul 2007
Posts: 1


Post26 Jul 2007 14:56   Re: PIC16F84-based Tachometer
tags: t

Will the tachometer work on a 3 cylinder engine?
Back to top
RodSTAR



Joined: 12 Oct 2007
Posts: 2


Post13 Oct 2007 3:28   Re: PIC16F84-based Tachometer
tags: t

ELECTRICIAN254 wrote:
Do you Have Pic Basic Pro?

Then you could use the Counter Command
Which will count pulses from preset pin and time.


I think you say COUNT command

COUNT Pin,Period,Var

Var is the number of pulses that occur on Pin during the Period
Back to top
elektrax



Joined: 23 Nov 2004
Posts: 10
Location: belgium


Post13 Oct 2007 8:09   Re: PIC16F84-based Tachometer
tags: t tachymetre_lcd

here a good easy tachometer.... it's late for it maybe...

http://perso.orange.fr/doumai/Tachymetre_LCD/Tachymetre_LCD.htm
Back to top
rx5



Joined: 26 Oct 2004
Posts: 130


Post05 Dec 2007 12:18   help on RPM
tags: t 16f84 asm

Hi all,

anyone got an electronic copy(PDF) of Silicon Chip's RPM project??
I believe its the 2000 issue, dont know the month....the one with 7 segment AND 10LED bar display... I got the source code 16F84(ASM) and PCB layout downloaded from the forum somewhere but dont have info on the schematic.. anyone can share??

kindly send to my mail: beamrx5 (at) yahoo.com

thanks ! Very Happy
Back to top
rx5



Joined: 26 Oct 2004
Posts: 130


Post07 Dec 2007 0:25   help on RPM
tags: t 16f84 asm

or how about 16F84 with just 10leds..per led should light up a certain RPM... frequency measured x 60 = RPM....

anyone have a code for this?

4 stroke single cylinder

lowest is about 880RPM(14.67Hz) to a high of about 13,000RPM(216.67Hz)

Im no good at programming..sorry

anyone can help? even a simple code will do(ASM preferrably)... I CAN DONATE POINTS!

thank you!
Back to top
sashijoseph



Joined: 04 Jul 2006
Posts: 17


Post07 Dec 2007 8:59   Re: help on RPM
tags: t

There are a lot of such projects involving either microcontrollers or LM3914 ic.
Google is your friend.
Back to top
rx5



Joined: 26 Oct 2004
Posts: 130


Post07 Dec 2007 10:06   help on RPM
tags: t

I believe thats not the answer I was hoping for...I was hoping for the PIC way, fewer parts....I have done the 'google' way but cant find such info...
Back to top
sashijoseph



Joined: 04 Jul 2006
Posts: 17


Post07 Dec 2007 19:28   Re: help on RPM
tags: t tachymetre_lcd pic tachometer project josepino tachometer tacho pic pic project tachometer

Here are some links......see which one fits your bill.
http://electronic.netsons.org/index.php?q=node/24
http://www.walktronics.de/html/led-drehzahlmesser.html
http://www.edn.com/article/CA6399101.html

7-segment\LCD
http://www.josepino.com/pic_projects/index.php?tachometer.jpc
http://pagesperso-orange.fr/doumai/Tachymetre_LCD/Tachymetre_LCD.htm
http://www.rc-scale.com/_anglais/_elec/project_tacho.html
Back to top
rx5



Joined: 26 Oct 2004
Posts: 130


Post08 Dec 2007 0:34   help on RPM
tags: t

SJ,

KINDLY read my 1st post..

S I L I CO N C H I P R P M M E T E R Very Happy

thanks for the link/s anyway, seen them all BEFORE I have asked for help here...

I think I just have to "debug" the ASMcode and "educated-guess" it....
Back to top
Borber



Joined: 01 Jan 1970
Posts: 1506
Helped: 116


Post09 Dec 2007 4:31   Re: help on RPM
tags: t

A part of article you want is here:
http://www.siliconchip.com.au/cms/A_102835/article.html

Here are PCB, ASM and HEX:



Sorry, but you need login in to view this attachment

Back to top
rx5



Joined: 26 Oct 2004
Posts: 130


Post09 Dec 2007 22:05   Re: help on RPM
tags: t silicon chip tacho

yes.. SiliconChip april 2000... I already have downloaded the ASM/HEX at their "downloads" section...

done it on breadboard... although I know I still lack some parts configuration, it works.. a bit...

here are the results...

>>>> for the switches, there are 3.. MODE,UP,DOWN.. common connection is at RA4(pin3) tied to +5V with 10k, for MODE(RA0-pin17), for UP(RA2-pin1), and DOWN(RA1-pin18) and I have no IDEA how to set it...

>>>> xtal is 4MHz

>>>> MCLR , 10k to +5V

>>>> for the 7 outputs, RB1(c) RB2(d) RB3(e) RB4(f) RB5(a) RB6(b) RB7(g)... uses common cathode(or anode?) multiplexed 7 seg display.... uses ONLY 2.... the hundredths (RA2-anode)and Thousands (RA1-anode)... the other 2 7-seg is just lighted "00" so as to make the reading direct... refresh rate is fast, about 200mS(i think).. nice... but about the RB1-RB7 designations to the 7-seg display, I think its all mixxed up?? sometimes I get wierd digits...

>>>> regarding the 10 leds, all anodes are tied AND connected to RA0(common for the LED bar) and I think it is connected to a transistor(and op-amp) w/c varies the intensity(of leds) from ambient light..I just ignored it, for simplicity... actually there are only 7 outputs(connected to RB1-RB7) but I dont know where LEd1 would be..etc.... so thats 1-7.. the rest(8,9,10) are all in parallel and connected to RA3(the rev limit)


>>>> signal input is at RB0, tied to gnd with 10k pull-down....

-------------testing----------

with my signal gen, @ 416Hz(About 26,000RPM) the 7 seg (thousands) shows "-" minus.... the article says that if it exceeds 9900 RPM, it will display "-00", and the overREV led lights.... so IT WORKS! Smile prob is I think "some"?? of the connections for the 7-seg are mixxed up?? I dont know... I HAVE no schematic and I just base it from the ASM code....maybe someone could help me out on the 7seg connections??

And THAT is all... not unless someone donates a schema for this....

I really like the refresh rate of this tacho..best I have seen so far... I have tried others but are slow... about 600mS..others 1S...

till then.. just a dream Crying or Very sad



Sorry, but you need login in to view this attachment

Back to top
bbarney



Joined: 31 Jan 2004
Posts: 210
Helped: 15
Location: canada


Post10 Dec 2007 4:35   Re: help on RPM
tags: t

heres the schematic


Sorry, but you need login in to view this attachment

Back to top
rx5



Joined: 26 Oct 2004
Posts: 130


Post10 Dec 2007 6:02   help on RPM
tags: t

COOL!! points sent... maybe post also instructions on HOW to set the mode/up/down switches...

check your PM... Very Happy
Back to top
sashijoseph



Joined: 04 Jul 2006
Posts: 17


Post10 Dec 2007 13:47   Re: help on RPM
tags: t silicon chip tachometer pic tachometer project tachometer with pic tacho pic pic project tachometer

Hi...bbarney beat me to it but here's a link to the Electronics-Lab.com forum where some guys have completed the project.You may seek their assistance as well.
http://www.electronics-lab.com/forum/index.php?topic=10408.0

Also here's another Silicon Chip PIC tacho(tho a bit more parts count)
http://fmssp.nm.ru/Photo/LED%20Tachometer%20With%20Dual%20Displays,%20Pt_1.rar
Original article : http://www.siliconchip.com.au/cms/A_107675/article.html
Back to top
rx5



Joined: 26 Oct 2004
Posts: 130


Post10 Dec 2007 17:24   help on RPM
tags: t

SJ,

So it was in another forum... but still... no article HOW to set it up... for different engines...

I will have a look at that 2nd link....
Back to top
jalen



Joined: 11 Dec 2007
Posts: 2


Post11 Dec 2007 19:01   RPM measure with PIC16f84a
tags: t

Hey, i need some help with measuring RPM of a generator. It has a pulse senzor on it. Now i have to build a program to calculate the speed (freq). I've heared something about timer0 on RA4, but i don't know a lot of it, so please....i need some help.
One more thing--->i don't need to disply the rpm, just a sign on output that the rpm reached a certain level of speed (let's say 1010 rpm). in other words...i want an output pin to change from 0 to 1, when the ouput reaches 1010rpm, so the generator starts breaking, and than when it reaches 800rpm, the same pin changes back to 0.
Oh yeah. I'm using MPLAB IDE not C.
tnx guys
Back to top
julade



Joined: 14 Mar 2006
Posts: 3


Post12 Dec 2007 11:32   Re: RPM measure with PIC16f84a
tags: t pic16f84 tutor

well to be able to program pic16f84a using TIMER0 you need to learn about pic and how to program it , alot of this tutor on the net . thereafter there are hobbyist circuit on the net like this "http://www.josepino.com/' that give you idea how to go about it. although it uses "628A" with little effort you can do this, by changing it configuration and some adjusment. thanks
Back to top
jalen



Joined: 11 Dec 2007
Posts: 2


Post12 Dec 2007 17:41   Re: RPM measure with PIC16f84a
tags: t

tnx for your quick reply...i heared today, that it is not possible to make a rpm counter with PIC16f84a, because it has only one counter (tmr0 at ra4), so i can't count pulses and time all at once. So i need a different chip...any ideas which one to choose? i don't need many bits, just a simple 16f84a type of chip, that has two timers.
tnx
Back to top
VVV



Joined: 26 Nov 2004
Posts: 1514
Helped: 280


Post12 Dec 2007 18:36   Re: RPM measure with PIC16f84a
tags: t

Well, you can count the pulses in software and use the timer as the time base.
For your range, if you are getting 1200 RPM, that is 200Hz, or 5ms between pulses (if you are using one pulse per revolution). That is long enough for the PIC to monitor the RPM input and increment a register whenever the input changes from say 0 to 1 (rising edge detected).

Then use TMR0 to generate an interrupt every X ms (say 1sec) and at that point you read the register you have been incrementing and calculate the RPM from that. Then reset the register to get ready for the new measurement.

With a PIC running even at 4MHz you should still be able to achieve what you want. Even with more pulses per revolution.
The loop shold look like this, assuming RA0 is used to count the pulses and Counter is the variable:
Code:

Wait_0:  btfsc PORTA,0  ;wait for input to go low
        goto Wait_0;

Wait_1:   btfss PORTA,0 ;wait for input to go high (detect rising edge)
        goto Wait_1
        incf Counter,F  ;increment the register
        goto Wait_0  ;go back and wait for the pulse to go back low, etc...



As you can see, the second loop takes only 5 cycles, that is 5us at 4MHz. So this can work with up to 100 pulses per revolution, in theory. In practice, you may need to create a 16-bit counter, which will add a few more cycles, but you get the idea.

This is all the PIC needs to do in real time. When the TMR0 interrupt comes in, the time spent there no longer matters, since you are merely doing calculations, not counting.

Another advantage of the SW counter is that you can do software debouncing, so that if the input pulses are not "clean" you still count them correctly. With a HW counter you get higher speed, but the pulses will need to be very clean, in other words, the signal conditioning has to be much better.
Back to top
Post new topic  Reply to topic    EDAboard.com Forum Index -> Hobby Circuits and Small Projects Problems
Page 1 of 2 All times are GMT + 1 Hour
Goto page 1, 2  Next


Abuse
Administrator
Moderators
topic RSS 
sitemap