iulian2010
Newbie level 3
bascom lcd speed problem
I am new on this forum and say "Hello everyone!"
I want to measure and read in real time the speed in mm/sec.
I use a linear transducer (it work between 0-10 V dc.), Atmega 8, lcd 16x4 and to compile i use Bascom-AVR.
I tried several times to write the code , but without results.
Can you help me with code in Bascom-AVR (if it is possible) for this problem?
I use until now:
$regfile "m8def.dat"
Config Lcdpin = Pin , Db4 = Portd.4 , Db5 = Portd.5 , Db6 = Portd.6 , Db7 = Portd.7 , E = Portd.1 , Rs = Portd.0
Config Lcd = 20 * 4
Config Adc = Single , Prescaler = Auto , Reference = Avcc 'config ADC
Start Adc
Dim W As Word..
Do
W = Getadc(0)
....speed = ?......
Lcd "speed" ; speed ; "mm/sec"
Loop
End
Thanks
[/quote]
I am new on this forum and say "Hello everyone!"
I want to measure and read in real time the speed in mm/sec.
I use a linear transducer (it work between 0-10 V dc.), Atmega 8, lcd 16x4 and to compile i use Bascom-AVR.
I tried several times to write the code , but without results.
Can you help me with code in Bascom-AVR (if it is possible) for this problem?
I use until now:
$regfile "m8def.dat"
Config Lcdpin = Pin , Db4 = Portd.4 , Db5 = Portd.5 , Db6 = Portd.6 , Db7 = Portd.7 , E = Portd.1 , Rs = Portd.0
Config Lcd = 20 * 4
Config Adc = Single , Prescaler = Auto , Reference = Avcc 'config ADC
Start Adc
Dim W As Word..
Do
W = Getadc(0)
....speed = ?......
Lcd "speed" ; speed ; "mm/sec"
Loop
End
Thanks
[/quote]