I want to interface a 2x16 LCD with pic16f84a. The LCD will show the note of guitar string as well as the frequency offset. The draft is like below:
- - - - - - - - - - - - - A +
>>>>>>>[]<<<<<<<
The first line of LCD will show the corresponding note of the guitar frequency. The second line is showing the frequency offset. When the middle rectangle turn into black it means the frequency is in tune. If the indicator is at right side, the frequency is higher than the preset frequency and vice verse.
The preset frequency table is:
note frequency(Hz)
e' 329.6
b 246.9
g 196.0
d 146.8
A 110.0
E 82.40
There are better pics to use then the 16F84a. You could go with a 16F88. What are you using for input? in other words what is capturing the frequency? _________________ Regards
Charlie M
prescott2006
Joined: 01 Mar 2010 Posts: 4
Posted: Wed Mar 10, 2010 11:46 pm
I only have pic16f84a around so I want to make it useful. First is the guitar signal, then after it is amplified and filtered, it will enter comparator to convert the signal into square wave, then enter PIC. This is the code to measure the frequency, http://www.ccsinfo.com/forum/viewtopic.php?p=129267
but I do not how to display on LCD.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum