Register Now

In order to be able to post messages on the The Planted Tank Forum forums, you must first register.
Please enter your desired user name, your email address and other required details in the form below.

User Name:

Password

Please enter a password for your user account. Note that passwords are case-sensitive.

Password:

Confirm Password:

Email Address

Please enter a valid email address for yourself.

Email Address:

OR

Log-in

User Name

Password

Remember Me?

Human Verification

In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.

Additional Options

Miscellaneous Options

Automatically parse links in text

Automatically retrieve titles from external links

Topic Review (Newest First)

07-23-2016 08:17 PM

greeffjl

independent start times and fade durations for each channel

Hi

I have been using this LED Code now for the last year and I just love the minimalistic code. O2surplus, Sink, are there any way to have independent start times and fade durations for each channel? I am running a Soft Coral tank and would love to have my Blue channel start first and end last during the day.

I cannot program (whish I could) for the death of myself so any help would be so appreciated.

If not, this still is my best code to use for DIY. It just gets the job done.

My problem is, the light doesnt dim on estimated time, it switches the light hard on/off. The timer works right, but it simply doesnt dim on time. After switching on the arduino first the light is at 1024 and after 2 seconds (the loop begins) I see it does dimm to my selected value (900). So thats right. But it doesn't dim on time.

Thanks ichy for that reply.
I did manage to get the libraries installed. It took me a real long time, but it's done.

I am using Arduino 1.6.7. What is SDK?

Post 39 in this thread has a download for Python that gets the RTC 3231 set. I downloaded the Python program but when I try to install Pserial, it finds Python version 2.7 so I click 'next'. Says it's ready to install so I click 'next'. I get an error that says 'could not create key'. I click OK. Another error that says 'could not set key value'. I say OK, then another 'could not set key value'. I click OK then it says it loads. But I can't get it to set the time on this sketch.

I've spent hours trying to get this Pserial to work-IDK if it's an issue with my computer or what.

I've been looking around for awhile for a sketch like this-this is perfect but I can't get it loaded on my Arduino Uno.

I downloaded the latest version and library bundle from sink's first post to my computer. I have the 3231 timer so I deleted the 1307 from the library bundle.

On Arduino 1.6.7, I went to Sketch, Include Library, then Add .Zip Library. When I select the libraries folder and click 'open' then click 'open' again, I get the error 'A subfolder of your sketchbook is not a valid library'.

If anyone is willing to help me get this sorted out, it would be very much appreciated.

You have to UNZIP the library folder. Once done unzipping, there should a be folder inside the unzipped folder. Copy the entire folder, not individual files..into the Library folder for your Arduino SDK installation.

If it is installed correctly you can select it from the Add Library menu.
If the library has examples you can open a sample Sketch from the EXAMPLES menu and it will compile if correctly installed.

02-21-2016 10:02 PM

salty joe

Just for the heck of it I'm gonna take another stab at this thread.

After much head scratching/pounding I got sink's sketch and the libraries installed on the Arduino program and it compiles. Yes! Thank you sink for putting that out there-that's very generous.

I downloaded the Python program from post 39 but Pserial has become problematic. I have the RTC 3231. It was mentioned in this thread that daylight savings time could be adjusted for manually.

Can the time and date be added manually? If so, can anyone please get me headed in the right direction? I put the time and date a couple places where I thought it might belong and downloaded a few times, but nothing. So I returned the sketch to original. I watched a bunch of YouTube videos on the 3231-no help there. So close, but so far away. Honestly, just knowing if it's possible to add time and date manually with this sketch would be helpful.

Anybody? Please?

02-18-2016 01:04 PM

salty joe

I've been looking around for awhile for a sketch like this-this is perfect but I can't get it loaded on my Arduino Uno.

I downloaded the latest version and library bundle from sink's first post to my computer. I have the 3231 timer so I deleted the 1307 from the library bundle.

On Arduino 1.6.7, I went to Sketch, Include Library, then Add .Zip Library. When I select the libraries folder and click 'open' then click 'open' again, I get the error 'A subfolder of your sketchbook is not a valid library'.

If anyone is willing to help me get this sorted out, it would be very much appreciated.

05-31-2015 08:24 PM

MrSpiffy

Any recommendations on cooling fans that will work with Arduino PWM? I noticed it's in the code, but it will not control the fans I purchased (Arctic F8 PWM). Looking for some suggestions.

04-26-2015 02:57 PM

Gisimo

help

i found the mistakes and now it is working

04-23-2015 07:52 PM

kman

^^ Arduino has updated their software from 1.0.6 to 1.6.3 or something like that, and there are a LOT of sketches that won't compile correctly until the new version without making changes. You might want to try the previous software version and see if that helps. The old versions are still available on the Arduino.cc website.

04-23-2015 01:20 PM

Gisimo

help

hi guys im trying to make lights for my aquarium but this time i am going to use a hc-05 eller 06 bluetooth. i have triet the code for arduino 1.0 but it dosent work(it wont compile) so i tried the origional one but i cant get it to work with 1.0!!! is there one of you here who have the original code but for 1.0??(without lcd,fan ect)
The resen is the Arduino 0022 dont se the bluetooth com port... if you no of a way to get the 0022 to find the com-port please tell

03-20-2015 05:02 AM

MrSpiffy

Looks like the common ground was my problem. The dining works at night. Haven't gotten to test the sunrise portion, yet. Perhaps it's also the issue with the fans..?

03-18-2015 11:21 PM

MrSpiffy

Those are all great to know. Thanks for sharing! However, it doesn't address the concern of joining the ground pin of the Arduino to the ground pin of the PSU for the LEDs.

This thread has more than 15 replies.
Click here to review the whole thread.