Search Results - MEL PICBASIC Forum


Search:

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

Search: Search took 0.01 seconds.

  1. Replies
    68
    Views
    65,399

    Re: Compare value ...

    i feel no shame , if it looks like a duck and it walks like a duck i'm prepared to say it could be a duck.

    you misled us with the sensor type, provided code that really can't display a meaningful...
  2. Replies
    68
    Views
    65,399

    Re: Compare value ...

    seems likely when you analyse it a bit

    how many newcomers can use the */ operator properly
    temperature= (temp*10) */ quanta
    or format a lcd line
    lcdout $FE, 2, "Temp ",dec2...
  3. Replies
    68
    Views
    65,399

    Re: Compare value ...

    guess its my fault , should have launched into defensive mode on first reply
    like this
    it looked too easy.

    http://www.picbasic.co.uk/forum/showthread.php?t=24035

    questions to ask
  4. Replies
    68
    Views
    65,399

    Re: Compare value ...

    if your lm335 setup was used you need to subtract the offset
    eg

    main:
    samples=0
    FOR sample = 1 TO 10 'Take 10 samples
    ADCIN 0, temp 'Read AN0 into temp variable
    ...
  5. Replies
    68
    Views
    65,399

    Re: Compare value ...

    yes its a good reminder.
    code snippets for debugging are a pointless exercise
    code without a config section or at least in some way describing the config settings is a waste of time
    code without a...
  6. Replies
    68
    Views
    65,399

    Re: Compare value ...

    this won't work properly with those readings either

    670 */ 1250 = 3271 and would display as 27.1 deg with following code


    temperature= temp */ quanta ; this result is now 4 digits
  7. Replies
    68
    Views
    65,399

    Re: Compare value ...

    i see no schematic anywhere and post 1 says a lm35, a pullup for a lm35 is not warranted.
    this has turned into a pointless exercise in guesswork.
  8. Replies
    68
    Views
    65,399

    Re: Compare value ...

    i think i see the problem, if louis is using a 16f690 then the adc settings used are totally inappropriate
    adc control on a 16f690 is quite different to a 16f88

    define osc 4 ;there is no...
  9. Replies
    68
    Views
    65,399

    Re: Compare value ...

    i get same result from proteus

    88208821


    '****************************************************************'*
    '* Name : 16F88_LM35.BAS *
    '* Author : ...
  10. Replies
    68
    Views
    65,399

    Re: Compare value ...

    correct 10 bit 1024 counts @5v vcc
  11. Replies
    68
    Views
    65,399

    Re: Compare value ...

    not sure whats going on here

    my LM35 has a 0.3 volt output @30c, adc value 61 [10mV/deg]

    an adc read of 675 would need 329 deg
  12. Replies
    68
    Views
    65,399

    Re: Compare value ...

    lcdout $FE, $C0," TEmpe", dec temperature


    removing all the unused/unecessary stuff " just noise" , using a proper config and displaying a result more in keeping with lm35 accuracy

    this...
  13. Replies
    68
    Views
    65,399

    Re: Compare value ...

    lcdout $FE, $C0," TEmpe", temperature

    what does this line display the temperature value as ?
  14. Replies
    68
    Views
    65,399

    Re: Compare value ...

    Tmax=Tmax*100 you cannot do this ,Tmax is a byte var

    If temperature > Tmax then
    rele=1
    else
    rele=0
    Endif

    goto main
  15. Replies
    68
    Views
    65,399

    Re: Compare value ...

    for a Temperature of 30 deg the temperature var would equal 3000 , what 3 digit number are we talking about, the display is to two
    decimal points the comparison must be on equal terms

    If...
  16. Replies
    68
    Views
    65,399

    Re: Compare value ...

    DatoEE is never defined
    i see that no data is stored to eeprom therefore tmax and tmin = 255

    then --

    If temperature > Tmax then
    PORTA.6=1
    Endif

    why would porta.6 change if temperature <...
Results 1 to 16 of 16