PLEASE HELP :( Gas sensor pic18f4550

General discussion on mikroC PRO for PIC.
Post Reply
Author
Message
dscythe
Posts: 7
Joined: 31 Jan 2016 14:45

PLEASE HELP :( Gas sensor pic18f4550

#1 Post by dscythe » 03 Feb 2016 02:17

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

User avatar
Aleksandar.Mitrovic
mikroElektronika team
Posts: 1697
Joined: 11 Mar 2015 12:48

Re: PLEASE HELP :( Gas sensor pic18f4550

#2 Post by Aleksandar.Mitrovic » 03 Feb 2016 16:16

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

dscythe
Posts: 7
Joined: 31 Jan 2016 14:45

Re: PLEASE HELP :( Gas sensor pic18f4550

#3 Post by dscythe » 03 Feb 2016 16:28

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.

Post Reply

Return to “mikroC PRO for PIC General”