M
M
Miffer2014-12-22 18:27:34
Arduino
Miffer, 2014-12-22 18:27:34

Is there a ready-made Arduino sketch for flashing a Christmas tree garland using a relay?

There is a Christmas tree garland, it burns from 220v, it does not blink and does not overflow, I connected it to the arduino through a relay, now it just blinks every second.
Maybe someone has a ready-made sketch with interesting flashing lights for the relay? I do not want to waste time on such nonsense and write myself.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Armenian Radio, 2014-12-22
@gbg

I'm afraid others will not be very pleased to listen to the click of the relay. In addition to flashing on the relay, nothing can be realized.

A
artanets, 2014-12-22
@artanets

Well, it's better to put a powerful transistor instead of a relay, it will be quieter and faster.
A sketch once saw a similar one for rgb LEDs. But smooth decay with a relay will not work; for this, PWM is used, and the relay operates too slowly for PWM.

J
Juretsky, 2015-12-05
@tooree

The maximum that is possible is to flash the entire line at the same time according to some program (well, like Morse code :) every channel. If you get confused and screw a microphone to the arduino (or send an audio signal like music from any source), then a light and music option will become available, there are sketches on the Internet. Well, as a climax - throw out this garland and connect a line of addressable RGB LEDs like WS2811 to the arduino and finally make sure that other Christmas tree garlands fade in comparison.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question