Search Results - MEL PICBASIC Forum


Search:

Type: Posts; User: louislouis; Keyword(s):

Search: Search took 0.00 seconds.

  1. Replies
    68
    Views
    64,494

    Re: Compare value ...

    Do you think the op just troll us?
  2. Replies
    68
    Views
    64,494

    Re: Compare value ...

    I'm pretty sure, He has incorrectly wired the lm35 and that caused the weird behaviour. Tested in proteus, working firmware with wrong lm35 wiring causes relay always on.
    Conclusion, I need a drink...
  3. Replies
    68
    Views
    64,494

    Re: Compare value ...

    Yea lm35, I overlooked that. You have right. I had no info about Cobuccit's setup, wiring, etc. Difficult to gave correct advice. If he use your posted schematic, and code it must be run whitout...
  4. Replies
    68
    Views
    64,494

    Re: Compare value ...

    no, no. The problem why is the ADC reading high is the LM335 wiring. Cobuccit has wired a "pullup" resistor to LM335 from 5V and this shifting the output voltage to 3V at 30degC.

    My ADC settings...
  5. Replies
    68
    Views
    64,494

    Re: Compare value ...

    on 10bit adc?
  6. Replies
    68
    Views
    64,494

    Re: Compare value ...

    Here is the code. Look at the comments, and modify the RAW number to number when the display show 30.0degC.


    define osc 4
    adcon1.7=1
    ANSEL = %000001 'Disable Inputs Tranne AN0
    ADCON1 =...
  7. Replies
    68
    Views
    64,494

    Re: Compare value ...

    I'm just curious, can you please try this hex, is It working OK?
  8. Replies
    68
    Views
    64,494

    Re: Compare value ...

    That's weird behaviour. I don't had on hand 16F88, I run it on 16F690, but it doesn't matter.
    OK, one more chance try this:
  9. Replies
    68
    Views
    64,494

    Re: Compare value ...

    That's confirms the ADC readings is OK.

    If you program this HEX (thermometerNOrele.hex), the rele must be allways switched OFF. Yes or No?

    Then program this HEX (thermometerTEST.hex), probably...
  10. Replies
    68
    Views
    64,494

    Re: Compare value ...

    OK, please program this HEX and tell what number shown on display. Then warm up the sensor with fingers or soldering iron. The numbers should be arround 600 for 30degC and 700 for 35degC and so on....
  11. Replies
    68
    Views
    64,494

    Re: Compare value ...

    This compiled HEX test your PORTA.6 (pin 15) on your PIC if is it wired right.
    It switch ON and OFF the relay five times, on LCD write: Rele ON if activate the pin
    and Rele OFF when deactivate the...
  12. Replies
    68
    Views
    64,494

    Re: Compare value ...

    Here is the compiled HEX file. Take it in to your programmer and program your PIC. It must run.
  13. Replies
    68
    Views
    64,494

    Re: Compare value ...

    What kind of programmer do you use? What is your programming process?
    First you compile in MCSP and then take the compiled HEX file and program to PIC with your picprogrammer? Or? How you program...
  14. Replies
    68
    Views
    64,494

    Re: Compare value ...

    Yes. And now it runs OK?
  15. Replies
    68
    Views
    64,494

    Re: Compare value ...

    and if you take away the config part, it compiles without errors?
    Copy and paste this, and try to compile.


    define osc 4

    adcon1.7=1
    ANSEL = %000001 'Disable Inputs Tranne AN0
    OSCCON =...
  16. Replies
    68
    Views
    64,494

    Re: Compare value ...

    did you have set the correct microcontroller to 16F88 in microcodestudio?
  17. Replies
    68
    Views
    64,494

    Re: Compare value ...

    I think, You want this:
    https://www.youtube.com/watch?v=nm7L-FTlR2M

    Here is a Richard's corrected and tested code. I hope it will be works:

    ...
  18. Replies
    68
    Views
    64,494

    Re: Compare value ...

    Try this:



    '****************************************************************
    '* Name : 16F88_LM235.BAS *
    '* Author : ...
  19. Replies
    68
    Views
    64,494

    Re: Compare value ...

    Pplease post the whole code.
  20. Replies
    68
    Views
    64,494

    Re: Compare value ...

    Try this:


    INTCON = 0 ' NO INTERRUPT
    ADCON1 = %10001110 '
    ADCON0 = %000101 'Disable Converter Module
    ANSEL = %00000001 'Disable Inputs Tranne AN0
    OSCCON = %01100000 'Internal RC set to 4MHZ...
Results 1 to 20 of 20