Hello there

I'm working on a "yellow metal" LCD display dashboard, it took me a very very long time so far ( years ) and is finally ready for a test ride.

In order to improve on the hardware diagnostic ( broken wire warning etc ...)
I still remain with a problem that has me shaking my head.

When the microcontroller is started without a connection to the tempval = adin 1
see tempcalc: then it does not display the results from adin 2 and adin3
namely the battery voltage and the oil pressure warning light.

I would like to improve the program so it can diagnose and display all hardware problems
as much as possible

tempcalc:
tempval = Adin 1 ' Read portA.1 to tempval
If tempval > 1000 then goto tf ' faulty connection
If tempval > 415 then goto cold
if tempval > 320 then goto calc1
If tempval > 241 then goto calc2
If tempval > 157 then goto calc3
If tempval > 112 then goto calc4
If tempval < 113 then goto tf ' faulty wiring or sender - short to ground.

the program and hardware connections:

www.skidloaders.co.za/pic/LCDDv21.bas

a picture when all goes well

www.skidloaders.co.za/pic/LCDdash1.JPG

a picture when wire of temperature gauge is not connected

www.skidloaders.co.za/pic/LCDdash2.JPG


It's getting late so - to all - goodnight
Wilfried