Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    68
    Views
    936

    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
    936

    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
    936

    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
    936

    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
    936

    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
    936

    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
    936

    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
    936

    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
    936

    Re: Compare value ...

    i get same result from proteus

    88208821


    '****************************************************************'*
    '* Name : 16F88_LM35.BAS *
    '* Author : ...
  10. Replies
    68
    Views
    936

    Re: Compare value ...

    correct 10 bit 1024 counts @5v vcc
  11. Replies
    68
    Views
    936

    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
    936

    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
    936

    Re: Compare value ...

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

    what does this line display the temperature value as ?
  14. Replies
    68
    Views
    936

    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
    936

    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
    24
    Views
    2,900

    Re: SSD1306 INCLUDE for PBP3

    looks good
  17. Replies
    68
    Views
    936

    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 <...
  18. Replies
    24
    Views
    2,900

    Re: SSD1306 INCLUDE for PBP3

    while usercmd helps alleviate the turpitude of pbp's immutable condition when it comes to
    support for any peripheral devices/hardware module less than 20 years old.
    usercmd is by no means perfect,...
  19. Replies
    24
    Views
    2,900

    Re: SSD1306 INCLUDE for PBP3

    i understand what you are trying to do.
    i don't follow how you are trying to implement it
  20. Replies
    24
    Views
    2,900

    Re: SSD1306 INCLUDE for PBP3

    i can't follow what your saying
    show some code of what you try an describe what you get or post a pic

    did you try new include file like this for narrow bar?
    GLCD_BAR 0,0,var,1,1 ;draw a horiz...
  21. Replies
    24
    Views
    2,900

    Re: SSD1306 INCLUDE for PBP3

    an improvement if bar cmd fails

    gosub glcd_init
    GLCD_CLR


    do
    for n=0 to 120 step 1
    GLCDDHL 0,0,n,1
    next n
  22. Replies
    24
    Views
    2,900

    Re: SSD1306 INCLUDE for PBP3

    I Think a new command is easier
    USERCOMMAND "GLCD_BAR" ;clear/SET area x,y,X1,Y1,COLOUR


    eg

    GLCD_BAR 0,0,var1,3,1 ;draw a horiz bar from 0,0 to var1 . three pixels wide
    GLCD_BAR...
  23. Replies
    24
    Views
    2,900

    Re: SSD1306 INCLUDE for PBP3

    no , the Hin is what you would change



    ;----------------------VERT LINE------------------------------------
    GLCDDVL?CCC macro Xin ,Yin , Hin
    MOVE?CB Xin ,_gx
    MOVE?CB...
  24. Replies
    24
    Views
    2,900

    Re: SSD1306 INCLUDE for PBP3

    EASY , Just add the highlighted macro's to the include file


    ;----------------------HORIZ LINE------------------------------------ GLCDDHL?CCCC macro Xin ,Yin , Win ,Cin
    MOVE?CB Xin ,_gx...
  25. Replies
    5
    Views
    173

    Re: Touch switch ON/OFF

    so what was wrong with the first draft ?
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4