Hysteresis.. How to do it??


Results 1 to 8 of 8

Threaded View

  1. #1
    Join Date
    Mar 2007
    Posts
    4

    Default Hysteresis.. How to do it??

    First up I am extremely new to PICs and PICBasic and am reading and experimenting a LOT trying to fast track to an ulitmate project. As a result, I am breaking the "big picture" down into little pieces and trying to work out as much as I can myself - so please know that I *really* have tried to nut this one out..!!!!!

    I am using a 16F877 that measures a variable resistor/voltage divider (with the bigger picture being to measure a thermistor) and depending on a user set variables.. switch a LED on or off..

    The thing I need/want to do is have the LED switch on at say 100 degrees and then switch off only when the temperature drops below 80 degrees... I believe this is called Hysteresis..??!!?

    But I am stumped at how to do this..?

    I've tried using the following:

    IF temp >= 100 THEN GOSUB ledon
    IF temp <= 80 THEN GOSUB ledoff



    Can anyone shed any light on this..??

    Thanks


    Hoops
    Last edited by hoopstar; - 9th March 2007 at 12:41.

Similar Threads

  1. hysteresis control
    By hyeniyurt in forum Off Topic
    Replies: 0
    Last Post: - 25th February 2009, 22:37
  2. Replies: 14
    Last Post: - 26th September 2007, 05:41
  3. ADC on 12f675?
    By peu in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 16th March 2005, 17:44

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts