Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 9th May 2008, 07:56 PM   #1 (permalink)
New Member
 
Join Date: Jun 2007
Posts: 2
timoteo_mendes is on a distinguished road
Default How to make a tachometer

hello,

I am tring to make my on tachometer using a pic 16f628 with internal oscillator and a lcd display.
until now i could put the text for speed in the first line and in the second with rb3 i put a count of the pulses i have...
I know there are lots of way to resolve the same problem, here i would like to know a sugestion how to resolve this.
basicaly what i need is to count the number of pulses in rb3 divide that value by the sample time and multiply by 60 to have it in rpm.
I can use CCP or timers with interrupt is true? the problem is that i don't know how to do it...
any help or sugestion is well came.

Thanks
Tim
timoteo_mendes is offline   Reply With Quote
Old 10th May 2008, 12:05 AM   #2 (permalink)
3v0
Moderator
 
Join Date: Jul 2006
Location: USA
Posts: 2,574
3v0 is a name known to all3v0 is a name known to all3v0 is a name known to all3v0 is a name known to all3v0 is a name known to all3v0 is a name known to all
Default

This question is asked very frequently. Checkout the may examples of tachs on the web. Start breading the circuits and play with the code. Then if you have question come back and ask.
__________________
To control the world from your PC with USB I suggest USB Bit Wacker

3v0's Tutorials for ABSOLUTE BEGINNER
C, PIC 18F, MPLABŪ and MCC18 Compiler
3v0 is offline   Reply With Quote
Old 14th May 2008, 07:25 PM   #3 (permalink)
Experienced Member
 
Join Date: Sep 2003
Posts: 719
crust has a spectacular aura about
Default

Also take a look at "frequency counters" as they are pretty much the same except in RPM, they are reading in cycles/second. Multiply by 60 to get cycles/minute.
__________________
www.ps3toothfairy.com -- Full IR control for your PS3
crust is offline   Reply With Quote
Old 15th May 2008, 12:46 AM   #4 (permalink)
Experienced Member
 
 
Join Date: Oct 2006
Location: Rochester, NY U.S.
Posts: 3,083
Sceadwian is just really niceSceadwian is just really niceSceadwian is just really nice
Send a message via AIM to Sceadwian Send a message via Yahoo to Sceadwian
Default

The internal oscillator isn't going to give you very accurate results. Frequency counters should run off a decent voltage regulator and a crystal oscilator.
__________________
Curiosity killed the cat; That's why they have nine lives.

Sceadwian is offline   Reply With Quote
Old 15th May 2008, 06:01 AM   #5 (permalink)
Experienced Member
 
 
Join Date: Oct 2006
Location: Colombo
Posts: 946
Gayan Soyza is just really niceGayan Soyza is just really niceGayan Soyza is just really nice
Default

http://www.geocities.com/ilufa/DST_E.htm
__________________
Gayan
Forum Supporter
Gayan Soyza is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Latest
Need help to make simple scoreboard with LEDs rydad Electronic Projects Design/Ideas/Reviews 10 14th April 2008 08:45 AM
How to make a 12 hour clock IlordrossI Electronic Projects Design/Ideas/Reviews 13 27th June 2007 12:11 AM
Car Adapter for Laptop-How to make? Bill_activist Electronic Projects Design/Ideas/Reviews 4 1st April 2005 07:37 AM
ps/2 keyboard to usb adapter, how to make bd13 Electronic Projects Design/Ideas/Reviews 3 7th October 2004 08:53 AM
Merkle-Korff motor and tachometer andrey8 Datasheet/Parts Requests 5 11th November 2003 02:39 AM


All times are GMT. The time now is 05:32 AM.


Electronic Circuits  |  Radio Controlled
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.