Search found 7 matches

by dscythe
21 Feb 2016 16:13
Forum: mikroC PRO for PIC General
Topic: Multi Coin Slot with PIC18f4550
Replies: 0
Views: 3581

Multi Coin Slot with PIC18f4550

Im having a project now. My project is Simple Coin Changer Machine. They coin slot gives me pulses(I already programmed the denominations). Now, how i can read pulses using interrupts or other method? now when the machine is changing coins.. i mean in the process, the coin slot will not accept any c...
by dscythe
03 Feb 2016 16:28
Forum: mikroC PRO for PIC General
Topic: PLEASE HELP :( Gas sensor pic18f4550
Replies: 2
Views: 1734

Re: PLEASE HELP :( Gas sensor pic18f4550

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.
by dscythe
03 Feb 2016 02:17
Forum: mikroC PRO for PIC General
Topic: PLEASE HELP :( Gas sensor pic18f4550
Replies: 2
Views: 1734

PLEASE HELP :( Gas sensor pic18f4550

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
by dscythe
02 Feb 2016 16:41
Forum: mikroBasic PRO for PIC Beta Testing
Topic: PIC18f4550 gas sensor
Replies: 4
Views: 7970

Re: PIC18f4550 gas sensor

Sir im now using the code from Libstock(you gave me) but it seems this fucntion cause the LCD being blank void calculatePPM() { double lgPPM; Vrl = (double)adc_rd * Vadc_5; // For 5V Vcc use Vadc_5 and for 3V Vcc use Vadc_33 Rs = Rl * (5 - Vrl)/Vrl; // Calculate sensor resistance ratio = Rs/Rl; // C...
by dscythe
02 Feb 2016 13:43
Forum: mikroBasic PRO for PIC Beta Testing
Topic: PIC18f4550 gas sensor
Replies: 4
Views: 7970

Re: PIC18f4550 gas sensor

Im using mikro C sir. i bought 3 sensors already coz i thought it might be the sensor but it all didnt work.
i guess its because of this INTCON and CMCON. i dont have enough background about these 2.
by dscythe
31 Jan 2016 15:14
Forum: mikroBasic PRO for PIC Beta Testing
Topic: PIC18f4550 gas sensor
Replies: 4
Views: 7970

PIC18f4550 gas sensor

my code cant detect gas. please help. im using mq6 gas sensor. :( :( :( :( void main() { ADCON1 = 0b00001111; // Configure A/D for digital inputs ADON_bit = 0; TRISA = 0xff; TRISB = 0xff; TRISC = 0xff; TRISD = 0; PORTD=0; while(1) { if(PORTA.RA0) { RD0_bit = 1; } else RD0_bit = 0; }
by dscythe
31 Jan 2016 15:01
Forum: mikroBasic PRO for PIC Beta Testing
Topic: PLEASE HELP :( Gas sensor pic18f4550
Replies: 1
Views: 2621

PLEASE HELP :( Gas sensor pic18f4550

Here's my code. This code didnt work. Please help RA0 my input Digital MQ6 gas sensor RD0 led on if sensed void main() { ADCON1 = 0b00001111; // Configure A/D for digital inputs ADON_bit = 0; TRISA = 0xff; TRISB = 0xff; TRISC = 0xff; TRISD = 0; PORTD=0; while(1) { if(RA0_bit == 1) { RD0_bit = 1; } e...

Go to advanced search