Fade the SMD Leds

Hi everyone,

I want to ask about that it is possible to make some software.

I have some SMD LEDS with his driver with PWM Socket, it is possible to make the software that he make fade on at 8A.M. and fade off at 8P.M ? If it is possible may I have some links to any library or other documents which one will help me ?

Thanks for your feedback
best regards
malin

I want to ask about that it is possible to make some software.

Yes, it is.

it is possible to make the software that he make feeding on at 8A.M. and feeding off at 8P.M ?

If, by feeding them, you mean turning them on or off, that is done with a digitalWrite() command.

Calling that function with the appropriate pin number and value (HIGH or LOW) is easy. Calling it at 8:00 AM or PM is harder. The Arduino does not have a watch.

It has a stopwatch that starts when the Arduino resets, and is never turned off.

If the Arduino knew what time it was turned on, then it could turn the LEDs on and off at the correct wall clock time.

Knowing that requires some extra hardware - either a real time clock (RTC) or a connection to a PC that can provide a time sync.

Have a look here:
http://www.arduino.cc/playground/Code/Time

Hi, thanks for answer

By fade I mean that is slowly turning off the leds or slowly turning on

malin

I think the term you want, then, is fading. That is accomplished using analogWrite() on some pin that supports PWM, with a value between 0 (off) and 255 (full on).

Do you want the lights to start fading on at 8:00 AM and finish fading on at 8:00 PM, or do you want them to fade on and off many times over that 12 hour period?

I want to start fading at 8AM and then after 30min have light full that mean at 8:30AM, after few hours at, 8PM start fading off and this process will be end at 8:30PM.

It is for aquarium LEDS lamp project :slight_smile: Maybe it will be easier to understanding :wink:

malin

There are a number of aquarium-related projects that have been posted on the forum, along with bydroponics and reef controllers. Happy hunting and good luck.