Page 1 of 1
PLEASE HELP :( Gas sensor pic18f4550
Posted: 03 Feb 2016 02:17
by dscythe
Ill just post here the link coz i posted in the mikroBasic
Please help.
http://www.mikroe.com/forum/viewtopic.php?f=91&t=66792
Re: PLEASE HELP :( Gas sensor pic18f4550
Posted: 03 Feb 2016 16:16
by Aleksandar.Mitrovic
Hi,
If you are using the code from the Libstock you should be able to write in the LCD before you reach this line.
As I told you we do not have the same sensor. But the principle is the same and it should be like for the MQ-8 sensor.
Read the ADC value of the sensor and calculate the PPM, make the conversion to the string and write the value one the LCD.
Best regards,
Aleksandar
Re: PLEASE HELP :( Gas sensor pic18f4550
Posted: 03 Feb 2016 16:28
by dscythe
thank you sir. i think that formula is for the calibration right?
ok now my problem is when i try to read the value from the adc input, it gives random numbers.