If I understand the question, maybe ...
ADvalue = ADvalue MAX 18
That will limit the value to a minimum of 18, which should always leave 1 line showing.
Assuming a 20 character bargraph, with a range of 1023.
hth,
DT
I want if the value is 0 (0-1023) to show like this picture:
I forgot to send the diagram for the CA3089. Sorry... I will soon.
Now about the bar at 0, why not put an IF-THEN statement after ADC subroutine to test if the ADC result is 0.
Or the more elegant Darrel's solution. Same result.
Ioannis
Unfortunatly CA3089 seem to be discontinued, and hard to get, well, tehre are a few on ebay, but more common places seem to be out of stock ?
I would love to see the schematics you used anyway Ioannis.
On the attached check page 8-29 the up left schematic. Output is on pin 13 and there is no need for coils etc as that part is not needed. In fact no components are needed on the pins 5,6,7,8,9,10,12 and 15.
On 13 there must be a load resistor to get the output voltage and on input pin 1 the capaciotors from .01 and .02 should be large enough for the audio spectrum as the values shown are for 10,7MHz IF. Put 10 or even 100 uF to get decent low freq. response. The chip works from almost 0 Hz!
Ioannis
Last edited by Ioannis; - 7th February 2010 at 12:27.
I have a problem with this program.I made everything,put the .bas file in the same folder where the program is.But when I compile it,it says that I have a WARNING: Unable to open INCLUDE file LCDBAR_INC.BAS. I made a extension .bas file for the Include file and it's not workingany sugestion?
Bookmarks