ikalogic
Member
Ayne said:When light strike on Photodiode it's resistance increase or decrease??
When light strike on an LDR, it's resistance decrease.
but wen light strike on Photodiode it conducts in reverse bias.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Ayne said:When light strike on Photodiode it's resistance increase or decrease??
Device = 16F877
XTAL = 4
LCD_DTPIN = PORTB.4
LCD_RSPIN = PORTB.2
LCD_ENPIN = PORTB.3
LCD_INTERFACE = 4
LCD_LINES = 2
LCD_TYPE = 0
Delayms 150
Cls
Main:
Print At 1,1, "Hello World"
While 1=1 ' Loop for ever
Wend
mbu said:gramo,
Thanks for the link to the display. Is it a good idea to get one with a backlight?
mbu said:Ikalogic,
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?
Thanks...
mbu said:ikalogic,
Yes, I'm planning on building yours... just need to use a MicroChip controller!
By the way, do you have a parts list for it?
Also, you have a pretty neat site - very interesting and informative!
Thanks
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