salim alfarsi
New Member
hi,
i am having problem with my code. i compiled this code by using MiKroC and when i load it to PIC16F887, the circuit did not function ! PIC detect signal from gas sensor and measure the value of gas exposed in PPM and display it in LCD as ppm value then the PIC will close the solenoid valve to isolate the gas source and send SMS through GSM modem to the concerned person informing him by gas leak.
right now, non of this functions act in the circuit. the power is in every part of the circuit, so i am suspecting the problem is from the code. the code is in this link:
https://pastebin.com/VqZ6948T
and i attached the schematic diagram of my circuit. i hope someone contribute to review the code and help me to correct it if this is anything need to be corrected
i am having problem with my code. i compiled this code by using MiKroC and when i load it to PIC16F887, the circuit did not function ! PIC detect signal from gas sensor and measure the value of gas exposed in PPM and display it in LCD as ppm value then the PIC will close the solenoid valve to isolate the gas source and send SMS through GSM modem to the concerned person informing him by gas leak.
right now, non of this functions act in the circuit. the power is in every part of the circuit, so i am suspecting the problem is from the code. the code is in this link:
https://pastebin.com/VqZ6948T
and i attached the schematic diagram of my circuit. i hope someone contribute to review the code and help me to correct it if this is anything need to be corrected