The Planted Tank Forum - Search Results
Planted Tank Forums
Your Tanks Image Hosting *Tank Tracker * Plant Profiles Fish Profiles Planted Tank Guide Photo Gallery Articles

Go Back   The Planted Tank Forum > Search Forums

Showing results 1 to 25 of 118
Search took 0.20 seconds.
Search: Keyword(s): ; Posts Made By: Dahammer
Forum: DIY 11-18-2013, 11:08 PM
Replies: 553
Views: 51,606
Posted By Dahammer
Yeah, that should work fine. Basically all it...

Yeah, that should work fine. Basically all it does it set a new alarm that changes to a non-storm mode after TSDurationH/M.



There is no built in way to do this. You'd need to write your own...
Forum: DIY 10-25-2013, 02:20 AM
Replies: 553
Views: 51,606
Posted By Dahammer
I'd add the RTC at least. It doesn't matter about...

I'd add the RTC at least. It doesn't matter about LCD. The later versions of code that support the LCD will work whether or not an LCD is present. Then I'd test each command to make certain that they...
Forum: DIY 10-25-2013, 12:38 AM
Replies: 553
Views: 51,606
Posted By Dahammer
DateTime & DateTimeString are not used in the...

DateTime & DateTimeString are not used in the code. So just omit them. Best I recall, they were just remnants of some other code.

At any rate the version you have chosen does not support an RTC....
Forum: DIY 10-24-2013, 03:11 AM
Replies: 553
Views: 51,606
Posted By Dahammer
Which version of this code are you using? Post...

Which version of this code are you using? Post the exact error you are getting when you compile it.
Forum: DIY 08-31-2013, 03:34 AM
Replies: 553
Views: 51,606
Posted By Dahammer
Here is the debug code I used. If you want to try...

Here is the debug code I used. If you want to try it replace the loop() & syncprovider() functions with the ones below and add cseconds and pseconds to the global variables at the top somewhere.
...
Forum: DIY 08-31-2013, 03:28 AM
Replies: 553
Views: 51,606
Posted By Dahammer
The DS1307RTC library is a completely different...

The DS1307RTC library is a completely different library from the one we are using, RTClib. But yeah that sketch will set the RTC to the compile time.

Anyway, adding a setSyncinterval call isn't...
Forum: DIY 08-31-2013, 12:17 AM
Replies: 553
Views: 51,606
Posted By Dahammer
How are you resetting the clock? Does "RTC is NOT...

How are you resetting the clock? Does "RTC is NOT running!" print on the serial monitor when you reset the Arduino?
Forum: DIY 08-30-2013, 05:16 PM
Replies: 553
Views: 51,606
Posted By Dahammer
Yes, there is no need to call it more than once,...

Yes, there is no need to call it more than once, which is done in setup() here, and there is no need to call setSyncInterval() at all unless you want to change the default 300 second (5 minute) sync...
Forum: DIY 08-30-2013, 04:01 AM
Replies: 553
Views: 51,606
Posted By Dahammer
The RTC circuit keeps time independent of the...

The RTC circuit keeps time independent of the program running on the Arduino, so I'm not sure how the program has any effect on it.
Forum: DIY 08-30-2013, 03:55 AM
Replies: 553
Views: 51,606
Posted By Dahammer
The code already does: ...

The code already does:

setSyncProvider(syncProvider); // reference our syncProvider function instead of RTC_DS1307::get()


time_t syncProvider()
{
//this does the same thing as...
Forum: DIY 08-30-2013, 03:54 AM
Replies: 553
Views: 51,606
Posted By Dahammer
syncInterval is set to 300 by default in...

syncInterval is set to 300 by default in time.cpp, so you don't have to reset it. It should resync automatically every 5 minutes. I suspect there is something wrong with your RTC. My time is dead on...
Forum: DIY 08-28-2013, 08:47 PM
Replies: 553
Views: 51,606
Posted By Dahammer
Mine hasn't missed a beat. I added a 16x2 LCD to...

Mine hasn't missed a beat. I added a 16x2 LCD to it. I still haven't gotten around to ramping the lights up a d down though.
Forum: DIY 08-19-2013, 02:34 AM
Replies: 553
Views: 51,606
Posted By Dahammer
It seems that no matter what I do, I always do...

It seems that no matter what I do, I always do something boneheaded like that.


Ha! Good find. Alarm.alarmRepeat actually triggers an alarm at the same time every day and not after every x...
Forum: DIY 08-18-2013, 11:35 PM
Replies: 553
Views: 51,606
Posted By Dahammer
I corrected a typo or 2, so you may want to retry...

I corrected a typo or 2, so you may want to retry the code above if you copied it after I first posted it.

Consider the following call:

Alarm.alarmRepeat(1800, PrintTemp);


1800 is number...
Forum: DIY 08-18-2013, 09:48 PM
Replies: 553
Views: 51,606
Posted By Dahammer
Try this: Up at the top, redefine your...

Try this:

Up at the top, redefine your sensor addresses to this (makes more sense since you're not really doing inside & outside):


DeviceAddress thermometer_1 = { 0x28, 0x98, 0x82, 0xA8,...
Forum: DIY 08-18-2013, 09:29 PM
Replies: 553
Views: 51,606
Posted By Dahammer
Post the code and we will help. Basically, what...

Post the code and we will help. Basically, what you need to do is remove the code you put into the loop() function, create a function to handle your alarm events, and then set an alarm to call your...
Forum: DIY 08-18-2013, 03:59 PM
Replies: 553
Views: 51,606
Posted By Dahammer
Hmm. Then 9 bit resolution should yield a...

Hmm. Then 9 bit resolution should yield a temperature to the nearest 0.5 degree.
Forum: DIY 08-18-2013, 03:03 PM
Replies: 553
Views: 51,606
Posted By Dahammer
Oops, sorry. Yeah, 1 too many parenthesis. ...

Oops, sorry. Yeah, 1 too many parenthesis.

What sensor do you have? Check out the calculateTemperature function in DallasTemperature.cpp. Looking at the datasheet, I'm guessing you have a DS18S20...
Forum: DIY 08-18-2013, 03:08 AM
Replies: 553
Views: 51,606
Posted By Dahammer
Yeah that's what I'd do also and update it every...

Yeah that's what I'd do also and update it every how often you like. He'd just need to move his print code to the printTemperature and modify it so it didn't require passing the device address or use...
Forum: DIY 08-18-2013, 02:39 AM
Replies: 553
Views: 51,606
Posted By Dahammer
How often are you wanting to update the...

How often are you wanting to update the temperature readings? I noticed that you have 2 calls to lcd.begin() in setup, only one is needed. You can also call sensors.getTempF instead of...
Forum: DIY 08-17-2013, 05:12 AM
Replies: 553
Views: 51,606
Posted By Dahammer
That looks like one of the Adafruit LCD shields....

That looks like one of the Adafruit LCD shields. If so, I think they only use analog pins 4 & 5. I believe the onewire library uses pin 2 by default. If you are using v4 and fprintf, it could be some...
Forum: DIY 08-17-2013, 12:56 AM
Replies: 553
Views: 51,606
Posted By Dahammer
Ok, thanks. I had assumed that the code in the...

Ok, thanks. I had assumed that the code in the previous version handled the 16x2 correctly and didn't really pay any attention when I copied it over. The code messages are too long to display on the...
Forum: DIY 08-16-2013, 09:42 PM
Replies: 553
Views: 51,606
Posted By Dahammer
Going to need a bigger screen for pH, nitrite,...

Going to need a bigger screen for pH, nitrite, nitrate, ammonia, KH and GH. :biggrin:

A float switch that signaled the Arduino to turn off a valve in the canister lines in case of a leak would be...
Forum: DIY 08-16-2013, 08:13 PM
Replies: 553
Views: 51,606
Posted By Dahammer
I have a 16x2 LCD on the way to go in mine. The...

I have a 16x2 LCD on the way to go in mine. The 20x4 won't fit in my enclosure without some modification, so I'll use the 16x2. If you don't mind, before you switch to the 20x4, could you see if the...
Forum: DIY 08-16-2013, 06:02 PM
Replies: 553
Views: 51,606
Posted By Dahammer
Sorry Caver, I must have been brain dead last...

Sorry Caver, I must have been brain dead last night from lack of sleep. The fix I added last night didn't fix it. I shouldn't even be printing the time to the LCD in SendCode(). Anyway, I think I...
Showing results 1 to 25 of 118

 
Forum Jump

All times are GMT. The time now is 06:06 AM.


Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright Planted Tank LLC 2012