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:

Location

Your Location. As precise as you feel comfortable with.

Security Question

While balancing on a piece of wood, two inches by four inches known as a 2x4, John and his friend Sally both spotted a dalmatian inside of a truck with sirens. The animal with John and Sally is a _ _ _?

Insurance

Please select your insurance company (Optional)

Log-in

User Name

Remember Me?

Password

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

Topic Review (Newest First)

05-31-2015 07: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 01:57 PM

Gisimo

help

i found the mistakes and now it is working

04-23-2015 06: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 12: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 04: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 10: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.

I'm using a separate power supply for the Arduino via micro-USB. That should be a standard 5V supply.

I was referring to protecting the Arduino from connections to the 24V LED supply, even via ground. Sounds like some people had heard from a guy who heard from another guy that you can fry your Arduino by doing that. I'm guessing that's just mumbo jumbo.

03-18-2015 06:02 PM

O2surplus

Quote:

Originally Posted by MrSpiffy

Yeah, there's definitely been a learning curve with the Arduino. But it's been interesting, despite the frustration.

I read somewhere that some people recommend a resistor or diode, or some other method, to protect the Arduino unit from the PSU power. Is that something you've found to be necessary, as well?

The Arduino's on board regulator tends to overheat, if it's forced to drop too much voltage. I don't recommend powering the Arduino with more than 12V. Using 7 to 9V is optimal.

03-18-2015 04:45 PM

MrSpiffy

Yeah, there's definitely been a learning curve with the Arduino. But it's been interesting, despite the frustration.

I read somewhere that some people recommend a resistor or diode, or some other method, to protect the Arduino unit from the PSU power. Is that something you've found to be necessary, as well?

03-18-2015 04:39 PM

O2surplus

Quote:

Originally Posted by MrSpiffy

Ran across what may be a little detail that completely throws things off. It sounds like I should join the grounds for the Arduino and the LED PSU, otherwise the PWM may not function properly. I'll give that a shot and see how it goes.

LOL- Don't feel bad. Lots of people miss that "little detail". The Arduino and power supply do need to share a common ground.

03-18-2015 03:59 PM

MrSpiffy

Ran across what may be a little detail that completely throws things off. It sounds like I should join the grounds for the Arduino and the LED PSU, otherwise the PWM may not function properly. I'll give that a shot and see how it goes.

03-15-2015 04:51 PM

MrSpiffy

I'm not sure why, but my lights will not fade on or off during the sunrise or sunset periods. The period does appear to change, as the LCD does show the correct state at the proper times.

I have two rows of LEDs with the dimming input for each driver connected to pins 9 and 10, which is where I gathered they should be connected from evaluating the code.

My setup consists of a 24V PSU (trimmed down to 18V) running to a pair of MeanWell LDD drivers, each driving a set of 5 LEDs, 3W each. I also have a 4x20 LCD, DS18B20 temp probe, and the DS3231 RTC. Lastly, I'm using an Adafruit Trinket Pro 5V Arduino unit, so available pins may be a little different than for an Uno. Also, the 5V onboard output is only 150mA, not 800mA as the Uno would typically have.

The RTC was set and appears to be functioning correctly, as it's keeping time and date accurately. The temp probe also looks like it's working fine, as the temp updates regularly and shows an expected temp value for the ambient air. And the LCD is displaying fine, backlight and contrast working just fine.

Things that are NOT working are the fans and the PWM dimming. However, I believe the fans are due to the brand of fan I purchased. (Arctic F8 80mm PWM fans I guess use different frequencies for PWM. Although, even just using straight 12V and no PWM input, they wouldn't spin up at all.)

Hi, thanks for reply.
Yes, I did.
It was not working at all, and I found that library was old, updated library and it works now.
but I get 12min off

Thanks

Aram-

Check line #57 your copy of the TimeSet code. This is what it looks like-
const int kAdjustment = 25;
The 25 stands for the number of seconds needed to compile & upload the code to your arduino (on average). You can change the 25 to any number you wish to skew the time forward or back. Since your clock is 12 minutes off (forward or back?) try changing the 25 to 720 or -720 to see if that corrects the time.

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