Shop OBEX P1 Docs P2 Docs Learn Events
Clock & Temp w/X10 — Parallax Forums

Clock & Temp w/X10

ArchiverArchiver Posts: 46,084
edited 2001-03-30 16:57 in General Discussion
I have pet reptiles and there is a day light and night light - each
is on for twelve hours. They are X10 controlled (via appliance
module). The problem is as the house gets warmer or cooler the
lights are preset. So, I want to sample the temperature, then if it
is too hot, send an Xout to turn the light off or on (if it's too
cool). Since the stamp doesn't have a real time clock should I just
use a counter for twelve hours to know which light to toggle on and
off?

Scott Edwards' book discusses using an LM34 with a ADC 0831 for the
temp side, then it has a 74xxxx series for the counter. Or should I
use a real time clock?

Any other thoughts or recommendations?

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-03-29 17:27
    I built the circuit you are referring to in Scott Edward's book. It worked
    OK. For the LM34 through the ADC 0831, I had to apply DSP ( Digital Signal
    Processing) in the software to average the temp as it jump around too much
    due to circuit variations. Otherwise it was accurate.

    I am not able to make a accurate statement on the clock, as the crystal I
    bought from Radio Shack.com was clearly marked a 32768 hz was actually
    3276800 hz. This caused me all kinds of grief. I must of had a bad batch,
    as I bought 3 crystals. Two were wrong freq, and one was dead. When I
    figured out my problem, I had to do a work around by using a second 74HCT4060
    to bring down the pulse rate. If you do the math, you will find that by
    using a second divider, the numbers don't fit evenly into a time cycle of 1
    second. Therefore, my circuit lost about 10 sec a day. But the rate of loss
    was consistence, and I think with the proper parts it would keep very good
    time. In intend to repeat clock part of this experment one day with the
    correct parts.

    In conclusion, I think the circuit will do what you want and the clock will
    keep good time. Also look at the next chapter about using a DS1620 for
    keeping temperature. Both will work, the DS1620 seem to be more stable and
    doesn't need DSP. But you will need to convert from Centigrade to Fahrenheit
    .

    As a side note, I was using a BS2 and had to convert the program from BS1 to
    BS2.

    Bruce Snowden


    gimikinc@y... wrote:

    > I have pet reptiles and there is a day light and night light - each
    > is on for twelve hours. They are X10 controlled (via appliance
    > module). The problem is as the house gets warmer or cooler the
    > lights are preset. So, I want to sample the temperature, then if it
    > is too hot, send an Xout to turn the light off or on (if it's too
    > cool). Since the stamp doesn't have a real time clock should I just
    > use a counter for twelve hours to know which light to toggle on and
    > off?
    >
    > Scott Edwards' book discusses using an LM34 with a ADC 0831 for the
    > temp side, then it has a 74xxxx series for the counter. Or should I
    > use a real time clock?
    >
    > Any other thoughts or recommendations?
    >
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
  • ArchiverArchiver Posts: 46,084
    edited 2001-03-29 18:02
    One other thing to be aware of. While the timing circuit is cheap, if you
    plan to use it for clock as you stated. You will need to plan some sort of
    continuious power source. Any power interuption or reset, will set the clock
    back to 0.

    Bruce Snowden

    gimikinc@y... wrote:

    > I have pet reptiles and there is a day light and night light - each
    > is on for twelve hours. They are X10 controlled (via appliance
    > module). The problem is as the house gets warmer or cooler the
    > lights are preset. So, I want to sample the temperature, then if it
    > is too hot, send an Xout to turn the light off or on (if it's too
    > cool). Since the stamp doesn't have a real time clock should I just
    > use a counter for twelve hours to know which light to toggle on and
    > off?
    >
    > Scott Edwards' book discusses using an LM34 with a ADC 0831 for the
    > temp side, then it has a 74xxxx series for the counter. Or should I
    > use a real time clock?
    >
    > Any other thoughts or recommendations?
    >
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
  • ArchiverArchiver Posts: 46,084
    edited 2001-03-29 18:40
    Check out the Eleven Frequency Clock from Peter Anderson

    www.phanderson.com

    Adolph Stumpf
    astumpf@q...

    ________________________________________________


    --- In basicstamps@y..., gimikinc@y... wrote:
    > I have pet reptiles and there is a day light and night light - each
    > is on for twelve hours. They are X10 controlled (via appliance
    > module). The problem is as the house gets warmer or cooler the
    > lights are preset. So, I want to sample the temperature, then if it
    > is too hot, send an Xout to turn the light off or on (if it's too
    > cool). Since the stamp doesn't have a real time clock should I just
    > use a counter for twelve hours to know which light to toggle on and
    > off?
    >
    > Scott Edwards' book discusses using an LM34 with a ADC 0831 for the
    > temp side, then it has a 74xxxx series for the counter. Or should I
    > use a real time clock?
    >
    > Any other thoughts or recommendations?
  • ArchiverArchiver Posts: 46,084
    edited 2001-03-29 19:20
    Thanks Bruce - great information.

    I may also try the temp probe from Parallax with the DS1620 (in their
    earthmeasurement lab chapter 3) for the temp sensor. The crystal and
    timing issues are something I have to consider....as well as a
    constant power source to keep the timer from being reset.

    Thanks again - it helped a lot.

    --- In basicstamps@y..., bsnowde@a... wrote:
    > I built the circuit you are referring to in Scott Edward's book.
    It worked
    > OK. For the LM34 through the ADC 0831, I had to apply DSP (
    Digital Signal
    > Processing) in the software to average the temp as it jump around
    too much
    > due to circuit variations. Otherwise it was accurate.
    >
    > I am not able to make a accurate statement on the clock, as the
    crystal I
    > bought from Radio Shack.com was clearly marked a 32768 hz was
    actually
    > 3276800 hz. This caused me all kinds of grief. I must of had a
    bad batch,
    > as I bought 3 crystals. Two were wrong freq, and one was dead.
    When I
    > figured out my problem, I had to do a work around by using a second
    74HCT4060
    > to bring down the pulse rate. If you do the math, you will find
    that by
    > using a second divider, the numbers don't fit evenly into a time
    cycle of 1
    > second. Therefore, my circuit lost about 10 sec a day. But the
    rate of loss
    > was consistence, and I think with the proper parts it would keep
    very good
    > time. In intend to repeat clock part of this experment one day
    with the
    > correct parts.
    >
    > In conclusion, I think the circuit will do what you want and the
    clock will
    > keep good time. Also look at the next chapter about using a DS1620
    for
    > keeping temperature. Both will work, the DS1620 seem to be more
    stable and
    > doesn't need DSP. But you will need to convert from Centigrade to
    Fahrenheit
    > .
    >
    > As a side note, I was using a BS2 and had to convert the program
    from BS1 to
    > BS2.
    >
    > Bruce Snowden
    >
    >
    > gimikinc@y... wrote:
    >
    > > I have pet reptiles and there is a day light and night light -
    each
    > > is on for twelve hours. They are X10 controlled (via appliance
    > > module). The problem is as the house gets warmer or cooler the
    > > lights are preset. So, I want to sample the temperature, then if
    it
    > > is too hot, send an Xout to turn the light off or on (if it's too
    > > cool). Since the stamp doesn't have a real time clock should I
    just
    > > use a counter for twelve hours to know which light to toggle on
    and
    > > off?
    > >
    > > Scott Edwards' book discusses using an LM34 with a ADC 0831 for
    the
    > > temp side, then it has a 74xxxx series for the counter. Or
    should I
    > > use a real time clock?
    > >
    > > Any other thoughts or recommendations?
    > >
    > >
    > >
    > > Your use of Yahoo! Groups is subject to
    http://docs.yahoo.com/info/terms/
  • ArchiverArchiver Posts: 46,084
    edited 2001-03-29 19:30
    I have just completed a prototype design which has a Real time clock,
    64K EEPROM and an I2C bus in a small 0.8" by 0.3" SIPP package. You
    could have an accurate timebase and be able to store the
    temperature/time in the EEPROM. Let me know if you're interested.

    --Jeff
    --www.High-TechGarage.com


    --- In basicstamps@y..., gimikinc@y... wrote:
    > I have pet reptiles and there is a day light and night light - each
    > is on for twelve hours. They are X10 controlled (via appliance
    > module). The problem is as the house gets warmer or cooler the
    > lights are preset. So, I want to sample the temperature, then if
    it
    > is too hot, send an Xout to turn the light off or on (if it's too
    > cool). Since the stamp doesn't have a real time clock should I
    just
    > use a counter for twelve hours to know which light to toggle on and
    > off?
    >
    > Scott Edwards' book discusses using an LM34 with a ADC 0831 for the
    > temp side, then it has a 74xxxx series for the counter. Or should
    I
    > use a real time clock?
    >
    > Any other thoughts or recommendations?
  • ArchiverArchiver Posts: 46,084
    edited 2001-03-30 15:30
    jeff-im sure the heck interested-send me info
    bill hart hellkat909@y...
    --- bs2web@y... wrote:
    > I have just completed a prototype design which has a
    > Real time clock,
    > 64K EEPROM and an I2C bus in a small 0.8" by 0.3"
    > SIPP package. You
    > could have an accurate timebase and be able to store
    > the
    > temperature/time in the EEPROM. Let me know if
    > you're interested.
    >
    > --Jeff
    > --www.High-TechGarage.com
    >
    >
    > --- In basicstamps@y..., gimikinc@y... wrote:
    > > I have pet reptiles and there is a day light and
    > night light - each
    > > is on for twelve hours. They are X10 controlled
    > (via appliance
    > > module). The problem is as the house gets warmer
    > or cooler the
    > > lights are preset. So, I want to sample the
    > temperature, then if
    > it
    > > is too hot, send an Xout to turn the light off or
    > on (if it's too
    > > cool). Since the stamp doesn't have a real time
    > clock should I
    > just
    > > use a counter for twelve hours to know which light
    > to toggle on and
    > > off?
    > >
    > > Scott Edwards' book discusses using an LM34 with a
    > ADC 0831 for the
    > > temp side, then it has a 74xxxx series for the
    > counter. Or should
    > I
    > > use a real time clock?
    > >
    > > Any other thoughts or recommendations?
    >
    >
    >
    >
    > Your use of Yahoo! Groups is subject to
    > http://docs.yahoo.com/info/terms/
    >
    >


    __________________________________________________
    Do You Yahoo!?
    Get email at your own domain with Yahoo! Mail.
    http://personal.mail.yahoo.com/?.refer=text
  • ArchiverArchiver Posts: 46,084
    edited 2001-03-30 15:46
    I have a very small quantity (8) of this design. UPS lost my shipment
    of the EEPROMs so they won't be complete until Wednesday (4/4/01).
    There are actually two flavors--64k and 128k EEPROM. Since these are
    prototypes, I'll offer the 64k for $10.00 and the 128k for $13.00.
    Shipping will be whatever the post office charges (I think Priority
    mail is $2.99). Contact me offline for more details: jwallace@high-
    techgarage.com.

    Thanks for the interest!!

    --- In basicstamps@y..., william hart <hellkat909@y...> wrote:
    > jeff-im sure the heck interested-send me info
    > bill hart hellkat909@y...
    > --- bs2web@y... wrote:
    > > I have just completed a prototype design which has a
    > > Real time clock,
    > > 64K EEPROM and an I2C bus in a small 0.8" by 0.3"
    > > SIPP package. You
    > > could have an accurate timebase and be able to store
    > > the
    > > temperature/time in the EEPROM. Let me know if
    > > you're interested.
    > >
    > > --Jeff
    > > --www.High-TechGarage.com
    > >
    > >
    > > --- In basicstamps@y..., gimikinc@y... wrote:
    > > > I have pet reptiles and there is a day light and
    > > night light - each
    > > > is on for twelve hours. They are X10 controlled
    > > (via appliance
    > > > module). The problem is as the house gets warmer
    > > or cooler the
    > > > lights are preset. So, I want to sample the
    > > temperature, then if
    > > it
    > > > is too hot, send an Xout to turn the light off or
    > > on (if it's too
    > > > cool). Since the stamp doesn't have a real time
    > > clock should I
    > > just
    > > > use a counter for twelve hours to know which light
    > > to toggle on and
    > > > off?
    > > >
    > > > Scott Edwards' book discusses using an LM34 with a
    > > ADC 0831 for the
    > > > temp side, then it has a 74xxxx series for the
    > > counter. Or should
    > > I
    > > > use a real time clock?
    > > >
    > > > Any other thoughts or recommendations?
    > >
    > >
    > >
    > >
    > > Your use of Yahoo! Groups is subject to
    > > http://docs.yahoo.com/info/terms/
    > >
    > >
    >
    >
    > __________________________________________________
    > Do You Yahoo!?
    > Get email at your own domain with Yahoo! Mail.
    > http://personal.mail.yahoo.com/?.refer=text
  • ArchiverArchiver Posts: 46,084
    edited 2001-03-30 16:09
    Ahhh...the joys of small business....

    >
    Original Message
    > From: bs2web@y... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=IIiw8oOsj83fdA3v1XPojur3Coc4ZF6OvIgO3L94pQw6HCnrj6yhaiE4T94HQu_tiwgSDGJNhA]bs2web@y...[/url
    > Sent: Friday, March 30, 2001 9:47 AM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] Re: Clock & Temp w/X10
    >
    >
    > I have a very small quantity (8) of this design. UPS lost my shipment
    > of the EEPROMs so they won't be complete until Wednesday (4/4/01).
    > There are actually two flavors--64k and 128k EEPROM. Since these are
    > prototypes, I'll offer the 64k for $10.00 and the 128k for $13.00.
    > Shipping will be whatever the post office charges (I think Priority
    > mail is $2.99). Contact me offline for more details: jwallace@high-
    > techgarage.com.
    >
    > Thanks for the interest!!
    >
    > --- In basicstamps@y..., william hart <hellkat909@y...> wrote:
    > > jeff-im sure the heck interested-send me info
    > > bill hart hellkat909@y...
    > > --- bs2web@y... wrote:
    > > > I have just completed a prototype design which has a
    > > > Real time clock,
    > > > 64K EEPROM and an I2C bus in a small 0.8" by 0.3"
    > > > SIPP package. You
    > > > could have an accurate timebase and be able to store
    > > > the
    > > > temperature/time in the EEPROM. Let me know if
    > > > you're interested.
    > > >
    > > > --Jeff
    > > > --www.High-TechGarage.com
    > > >
    > > >
    > > > --- In basicstamps@y..., gimikinc@y... wrote:
    > > > > I have pet reptiles and there is a day light and
    > > > night light - each
    > > > > is on for twelve hours. They are X10 controlled
    > > > (via appliance
    > > > > module). The problem is as the house gets warmer
    > > > or cooler the
    > > > > lights are preset. So, I want to sample the
    > > > temperature, then if
    > > > it
    > > > > is too hot, send an Xout to turn the light off or
    > > > on (if it's too
    > > > > cool). Since the stamp doesn't have a real time
    > > > clock should I
    > > > just
    > > > > use a counter for twelve hours to know which light
    > > > to toggle on and
    > > > > off?
    > > > >
    > > > > Scott Edwards' book discusses using an LM34 with a
    > > > ADC 0831 for the
    > > > > temp side, then it has a 74xxxx series for the
    > > > counter. Or should
    > > > I
    > > > > use a real time clock?
    > > > >
    > > > > Any other thoughts or recommendations?
    > > >
    > > >
    > > >
    > > >
    > > > Your use of Yahoo! Groups is subject to
    > > > http://docs.yahoo.com/info/terms/
    > > >
    > > >
    > >
    > >
    > > __________________________________________________
    > > Do You Yahoo!?
    > > Get email at your own domain with Yahoo! Mail.
    > > http://personal.mail.yahoo.com/?.refer=text
    >
    >
    >
    >
    > Your use of Yahoo! Groups is subject to
    > http://docs.yahoo.com/info/terms/
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2001-03-30 16:16
    Sounds like the sigh of someone who has "been there, done that." If
    you don't order the top-of-the-line service, you're package isn't
    that important, I guess. Are you a small biz owner? Drop me a line
    (or anyone else): jwallace@h....

    --- In basicstamps@y..., "Chris Loiacono" <chris@a...> wrote:
    > Ahhh...the joys of small business....
    >
    > >
    Original Message
    > > From: bs2web@y... [noparse][[/noparse]mailto:bs2web@y...]
    > > Sent: Friday, March 30, 2001 9:47 AM
    > > To: basicstamps@y...
    > > Subject: [noparse][[/noparse]basicstamps] Re: Clock & Temp w/X10
    > >
    > >
    > > I have a very small quantity (8) of this design. UPS lost my
    shipment
    > > of the EEPROMs so they won't be complete until Wednesday
    (4/4/01).
    > > There are actually two flavors--64k and 128k EEPROM. Since these
    are
    > > prototypes, I'll offer the 64k for $10.00 and the 128k for
    $13.00.
    > > Shipping will be whatever the post office charges (I think
    Priority
    > > mail is $2.99). Contact me offline for more details:
    jwallace@high-
    > > techgarage.com.
    > >
    > > Thanks for the interest!!
    > >
    > > --- In basicstamps@y..., william hart <hellkat909@y...> wrote:
    > > > jeff-im sure the heck interested-send me info
    > > > bill hart hellkat909@y...
    > > > --- bs2web@y... wrote:
    > > > > I have just completed a prototype design which has a
    > > > > Real time clock,
    > > > > 64K EEPROM and an I2C bus in a small 0.8" by 0.3"
    > > > > SIPP package. You
    > > > > could have an accurate timebase and be able to store
    > > > > the
    > > > > temperature/time in the EEPROM. Let me know if
    > > > > you're interested.
    > > > >
    > > > > --Jeff
    > > > > --www.High-TechGarage.com
    > > > >
    > > > >
    > > > > --- In basicstamps@y..., gimikinc@y... wrote:
    > > > > > I have pet reptiles and there is a day light and
    > > > > night light - each
    > > > > > is on for twelve hours. They are X10 controlled
    > > > > (via appliance
    > > > > > module). The problem is as the house gets warmer
    > > > > or cooler the
    > > > > > lights are preset. So, I want to sample the
    > > > > temperature, then if
    > > > > it
    > > > > > is too hot, send an Xout to turn the light off or
    > > > > on (if it's too
    > > > > > cool). Since the stamp doesn't have a real time
    > > > > clock should I
    > > > > just
    > > > > > use a counter for twelve hours to know which light
    > > > > to toggle on and
    > > > > > off?
    > > > > >
    > > > > > Scott Edwards' book discusses using an LM34 with a
    > > > > ADC 0831 for the
    > > > > > temp side, then it has a 74xxxx series for the
    > > > > counter. Or should
    > > > > I
    > > > > > use a real time clock?
    > > > > >
    > > > > > Any other thoughts or recommendations?
    > > > >
    > > > >
    > > > >
    > > > >
    > > > > Your use of Yahoo! Groups is subject to
    > > > > http://docs.yahoo.com/info/terms/
    > > > >
    > > > >
    > > >
    > > >
    > > > __________________________________________________
    > > > Do You Yahoo!?
    > > > Get email at your own domain with Yahoo! Mail.
    > > > http://personal.mail.yahoo.com/?.refer=text
    > >
    > >
    > >
    > >
    > > Your use of Yahoo! Groups is subject to
    > > http://docs.yahoo.com/info/terms/
    > >
    > >
  • ArchiverArchiver Posts: 46,084
    edited 2001-03-30 16:57
    Am I missing something or could you just put a fan on the same circuit as
    the light bulb, adjust the current or distance of the fan to suit the
    animal?


    richard



    > > > > --- In basicstamps@y..., gimikinc@y... wrote:
    > > > > > I have pet reptiles and there is a day light and
    > > > > night light - each
    > > > > > is on for twelve hours. They are X10 controlled
    > > > > (via appliance
    > > > > > module). The problem is as the house gets warmer
    > > > > or cooler the
    > > > > > lights are preset. So, I want to sample the
    > > > > temperature, then if
    > > > > it
    > > > > > is too hot, send an Xout to turn the light off or
    > > > > on (if it's too
    > > > > > cool). Since the stamp doesn't have a real time
    > > > > clock should I
    > > > > just
    > > > > > use a counter for twelve hours to know which light
    > > > > to toggle on and
    > > > > > off?
    > > > > >
    > > > > > Scott Edwards' book discusses using an LM34 with a
    > > > > ADC 0831 for the
    > > > > > temp side, then it has a 74xxxx series for the
    > > > > counter. Or should
    > > > > I
    > > > > > use a real time clock?
    > > > > >
    > > > > > Any other thoughts or recommendations?
    > > > >
    > > > >
    > > > >
    > > > >
    > > > > Your use of Yahoo! Groups is subject to
    > > > > http://docs.yahoo.com/info/terms/
    > > > >
    > > > >
    > > >
    > > >
    > > > __________________________________________________
    > > > Do You Yahoo!?
    > > > Get email at your own domain with Yahoo! Mail.
    > > > http://personal.mail.yahoo.com/?.refer=text
    > >
    > >
    > >
    > >
    > > Your use of Yahoo! Groups is subject to
    > > http://docs.yahoo.com/info/terms/
    > >
    > >
    >
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
    >
Sign In or Register to comment.