Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

Sleep Mode during the night


demenderashika Feb 10, 2012 09:52 AM

I am new in this equipment,
I try to find an answer in another post "put CR1000 to sleep"
http://www.campbellsci.com/forum/messages.cfm?threadid=1ECDC53E-C431-65EC-4C6216A157E4A46D

But I didn't find what I want.

I have 2 CR1000 and 1 CR3000,
my focus is I want to put this logger only record from sunrises until the sunsets, and put in sleep mode during all night to keep the power supply, as it was located on the field, far away from the office.

Is there any option to do this with CR program?

Thankyou


aps Feb 10, 2012 01:59 PM

There are various ways to do this. The simplest, which gets you down to a reasonable power level, is to simply only execute most of the code in the program based upon time (you could also use light level if you have a sensor, or a calculated sunrise and sunset). If all your program is in the main scan this can be as simple as this (starting logging at 6am finishing at 9 pm):

Dim Dolog As Boolean

'Main Program
BeginProg
Scan (1,Sec,0,0)
If TimeIntoInterval(360,1440,min) Then Dolog = True
If TimeIntoInterval(1260,1440,min) Then Dolog=False
If Dolog Then
PanelTemp (PTemp,250)
Battery (batt_volt) 'etc
'..ALL your measurements in here
EndIf
NextScan
EndProg


More complicated tricks can include switching to run a different simple program at night which only serves to switch back to the original program during the day. To change to a different program use the command: FileManage (Newprogramname,6) in your program, where newprogramname is a string or constant giving the full name of the new program. However, that can get complicated as it can be difficult to ensure continuity of data storage when doing this and program variables will get reset every time you recompile to a new program.


demenderashika Mar 7, 2012 10:42 AM

Dear Mr Sanford,

Sorry for my late reply....
I just comeback from my holiday
I will try to apply this new program to my datalogger, but I only could do that around next month.

If I face problem, I will post again in this thread.

anyway, thank's a lot for your help


Grant Mar 7, 2012 10:16 PM

Selamat pagi

Apa kabar?

We have used similar code to what Andrew provides in Papua for timing when a camera takes photographs.

You may want to use

If TimeIntoInterval(330,1440,min) Then Dolog = True
If TimeIntoInterval(1110,1440,min) Then Dolog=False

To keep the times closer to sunrise and sunset (5:30am and 6:30pm)

Salam

Grant


demenderashika Mar 8, 2012 10:43 PM

Selamat pagi,

Kabar baik Mr Grant,

thank you for show me how its easy to make a program based upon time.

Salam kenal...


smile Dec 15, 2022 08:01 AM

hi,

if you have a sunlight sensor you can use it as a threshold to enter or exit to the sleep condition. you just have to choose the entry and exit value. you'll be immune to seasonally changing sunrise and sunset times.

Smile


Hanry112 May 10, 2023 08:44 AM

This post is under review.

Log in or register to post/reply in the forum.