Shop OBEX P1 Docs P2 Docs Learn Events
Need help with some code for a EVENT LOGGER with TIME STAMP for humidity and te — Parallax Forums

Need help with some code for a EVENT LOGGER with TIME STAMP for humidity and te

sam_sam_samsam_sam_sam Posts: 2,286
edited 2005-08-07 03:53 in BASIC Stamp
HI EVERY ONE,
Let me start by saying that when i put words in BIG· letters
that i am no tring TO BE· LOUD but· that what i am looking
for and it
HAS TO BE THAT WAY if it CAN BE
·I am just tring to make it CLEAR
·I AM SORRY IF THAT ME SOUND MAKE· LOUD
I would like to built a EVENT LOGGER· not a TIME LOGGER
but with a TIME STAMP· that tell me how long an EVENT is
I would like to built humidity and temperature logger with a time stamp using a
DS1302 Real Time Clock module·· and···· Stock#: 28018···· humidity and temperature
module i am not sure what BASIC STAMP module to use
I want to make something clear about an EVENT and that is that let say that you have
a temperature of
( 70 *F )· and it GO TO ( 71* F)
· THAT IS ONE EVENT WITH ONE TIME STAMPidea.gif
(70*F @ 7:00AM)............ START
(71*F@ 7:30AM) .............ONE
and lets say that you had a temperature of············· (·· If· temperature
( 70 *F )· and it GO TO ( 69* F)·································gose one or the
· THAT IS ONE EVENT WITH ONE TIME STAMP·············· other )
(70*F@ 7:00AM)...............START
(69*F @ 7:00AM).............ONE
THIS WOULD TELL HOW LONG THE EVENT WAS
(70*F@ 700AM)...............start
(69*F @ 7:30AM)............one
(70*F@ 11:30AM)............two···
( 71*F@ 12:00PM)............three ......................and so on
Dose this tell you what I want in a EVENT LOGGER
can THIS BE DONE WITH A· BASIC STAMP module
Can any one in this FORUM tell me if this can be done and HOW to do this
If this can done where do i go to find some demo code ????
I know where to go for DS1302 Real Time Clock module demo code
I know where to go for Stock#: 28018·· humidity and temperature demo code
I know where to go for data logger demo code
But i do not know· how to put· the THREE· CODES TOGETHER the way i want it to work
ALL OF DATA LOGGERS I HAVE SEEN ALL ARE TIME EVENT AS THERE DEFAULT
(even the ones that you can buy and even the "ones that you have a demo codes for"
"if i am wrong about this PLEASE LET ME KNOW"
But that will not work for what i want to do because i can not use a comp· to log
the EVENTS I need a STAND ALONE UNIT to do this
I AM a A/C TECH that works in
billding that uses DDC controled A/C units and i have to track· humidity and temperature· in a space
and do not have time to download every day and all the other logger i would have to that
·I live in Florida· very SUNNY and very HOT and where· HUMIDITY is very· HIGH at TIMES
so you can see why i need this· type· EVENT LOGGER so if any one can help· thanks
IF ANY ONE CAN HELP THANK YOU FOR YOUR HELP IN THIS MATTER
samsam

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-08-06 21:28
    Your project is not very difficult. But, for my edification, can expand on what you mean by *event*? I think of that as a change, but I'm pretty certain with the way temperatures can swing with small meterological changes that you don't want to log every one-degree change ... or do you?

    I did a digitial event logger project once that only saved the real time at the beginning of the cycle. What got stored in each even record was the new inputs and the period (in minutes) since the last event. By using a 16-bit variable for the timing I could have up to 45.5 days between events, and that conserved memory over storing the actual time the event took place.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • sam_sam_samsam_sam_sam Posts: 2,286
    edited 2005-08-07 00:36
    JON
    HI
    This maybe what i am looking for...................
    "I did a digitial event logger project once that only saved the real time at the beginning of the cycle." Is that to mean time and date for starting the logger?

    "What got stored in each even record was the new inputs and the period (in minutes) since the last event."
    Is that mean that lest say that temp is let say 70*F How many .. *F
    span are taking about 1* OR more and how many more?
    the reason i asking is that our DDC SYSTEM has

    SET POINT of (" + OR - 1*f")
    " 71*F
    ·70*F -> SET POINT
    · 69*F "


    And I need to know long it is taking for VAV BOXS are taking to meet SET POINT
    Now IF i have to have SET AMOUNT OF TIME i could live with that as long as i can control
    the a mount of time 5 MIN minmum to max of 30 MIN

    START TIME AND DATE
    EVENT 1 AMOUNT OF TIME 71*F 20 MINS
    EVENT 2 AMOUNT OF TIME 70*F 15 MINS -> SET POINT
    EVENT 3 AMOUNT OF TIME 69*F 15 MINS
    EVENT 4 AMOUNT OF TIME 70*F 20 MINS -> SET POINT
    EVENT 5 AMOUNT OF TIME 71*F 20 MINS

    and so on
    Or could be done this way??
    ".....................................
    "1"-> start
    "+1"
    "1"....................................>>>>>>"ONE EVENT the AMOUNT of TIME"
    "-1"
    "1"-> END
    ......................................."
    If idid this way i would need a button to·" SET THE SET POINT"

    "By using a 16-bit variable for the timing I could have up to 45.5 days between events"
    Now if i do it this way can i still have " 45.5 days " or would a lot less and how much less

    " and that conserved memory over storing the actual time the event took"
    Could you show me what that would look like?


    JON
    Dose this help you in what i am looking for
    IF not i will try to·be MORE CLEAR about why i need it this way

    Jon
    THANK YOU FOR YOUR HELP IN THIS MATTER
    It will make my job at work alot easier than it is NOW

    sam

    Post Edited (sam_sam_sam) : 8/7/2005 12:56:49 AM GMT
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-08-07 00:52
    Have a look at this article; it may help: http://www.parallax.com/dl/docs/cols/nv/vol3/col/nv88.pdf

    This version uses more storage than the other project I referenced, and may in fact be pretty close to what you're after.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • sam_sam_samsam_sam_sam Posts: 2,286
    edited 2005-08-07 03:53
    Jon
    Let me ask you some thing about this article i read will it do this
    before i order these parts the PCF8583 and 24LC256


    Lets say that temp is let say 70*F How many .. *F
    What kind of SPAN are we taking about 1*F OR more and how many more?
    the reason i asking is that our DDC SYSTEM has SET POINT of (" + OR - 1*f")
    And I need to know long it is taking for a VAV BOX to meet SET POINT ???
    #1
    ..........
    SET POINT of (" + OR - 1*f")
    " 71*F
    70*F -> SET POINT
    69*F "
    .............


    ".....................................
    "1"-> start
    "+1"
    "1"....................................>>>>>>"ONE EVENT the AMOUNT of TIME"
    "-1"
    "1"-> END
    ......................................."

    " START TIME AND DATE....................."

    #2

    Span would be 3*F ( let say 69*F to 71*F "SET POINT" would 70*F) this would be

    ...................
    START

    69*F ^^^ 70*F^^^71*F ...... ONE EVENT.......

    END
    .....................

    " ONE EVENT.....how.... LONG....this...EVENT.....LAST......????

    END TIME.........................."


    If i did this way i would need a button to " SET THE SET POINT"
    Would I have to WAIT until the room was at 69*F to this way or would i ??

    OR

    Could it be done this way??

    #3

    START TIME AND DATE
    ................
    EVENT ONE
    70*F -> SET POINT
    71*F
    70*F -> SET POINT
    END
    ................
    EVENT TWO
    70*F -> SET POINT
    69*F
    70*F-> SET POINT
    END
    ..................
    and so on

    HOW much time it TAKE from START to END

    WOULD it have be done this way

    #4

    Now IF i have to have SET AMOUNT OF TIME i could live with that as long as i can control
    the a mount of time 5 MIN minmum to max of 30 MIN


    Jon
    I hope this help you in what i am looking for
    I know i am asking a lot but if you can help with this i would realy APRECIATE it
    THANK YOU FOR ALL YOUR HELP IN THIS MATTER

    samsam
Sign In or Register to comment.