Hello all.
I’ve just bought a K8055 interface to play with duiring the winter evenings. I have a few half formed, or possibly half baked, ideas I want to explore.
I want to explore what can be done with sensors so I started out with a couple of simple ones. I’ve got a 100k Thermistor on analog input 1 and an LDR on input 2. I’ve written some code to read and display the ports.
With the sensors conected I can see the change in voltage on both inputs with a meter when either the light level or the temperature changes. However, reading the ports with ReadAnalogChannel(1) and ReadAnalogChannel(2) gives me a reading of 130 on both channels!
I can change this to any value between 0 and 255 using RV1 & RV2 but I can’t read the data from the sensors.
I must be doing something fundamentaly wrong and I’m probably going to kick myself but I need some help please.
How can I read the sensor inputs and get the software to see the data changes as the voltage changes that I can see with a meter.
I am also thinking about trying to drive an LCD display with the card. I have one that uses the HD44780 controller. Has anyone done this and have a diagram or notes that I can look at to get me started?
Many thanks.