Since I'm new to microcontrollers I just don't know the power of them. What I should have asked was: Can a PIC16F628A run a LCD display AND keep track of the input pulses and calculations needed for a tachometer? Or... do I need a microcontroller for the LCD and one for the Tachometer?
Do you or anyone else for the matter, have a suggestion for a good 16 X 2 LCD display? This would be for indoor use... so what type of back light etc.
Thanks...
Oh, one other thing...
If I use an LED (four digit) would it also be good to use a single microcontroller to handle that and use another microcontroller to do the calculations and counting of pulses for the tachometer? This is for my use only so a couple of dollars either way doesn't matter, I just want a fast and accurate tach!
+Vcc---/\/\/\/----Photodiode in reverse Bias----GND.
If i make circuit some thing like this, Positive supply connected to a resistor, resistor's second end connected to a photo diode(in reverse Bias) and photodiode's second end connected to GND.
When light strike on Photo diode, voltage drop accross Photodiode will increase?? or decrease???
Since I'm new to microcontrollers I just don't know the power of them. What I should have asked was: Can a PIC16F627A run a LCD display AND keep track of the input pulses and calculations needed for a tachometer? Or... do I need a microcontroller for the LCD and one for the Tachometer?
you can download schematics+partlist+pcb at the end...
as for using a uchip... i left PICs long time ago.. i've been more than 3 years i never used one... Gramo and Niegel can help you a lot with them.. but the principle of operation os a tachometer of this time is fairly the same...
Grab**broken link removed**, its a free version of the real deal, but heres a program made with it that might get you started;
Code:
Device = 16F877
Xtal = 20
Dim Result as DWord
LCD_DTPIN = PORTB.4 ' Setup the LCD
LCD_RSPIN = PORTB.2 '
LCD_ENPIN = PORTB.3 '
LCD_INTERFACE = 4 '
LCD_LINES = 2 '
LCD_TYPE = 0 '
All_Digital = True ' Make all pins Digital I/O's
While 1 = 1
Result = COUNTER PORTA.0, 100 ' Count how many pulses in 100mS
Result = Result * 10 * 60 ' Scale To RPM
Print at 1, 1, "RPM = ", DEC8 Result ' Display on the LCD
Wend ' Loop for ever