Go Down

Topic: Time Fountain (Read 2690 times) previous topic - next topic

twychopen


Quote
then control it with the Arduino? (Which still I don't know how I'd do that).

Look at the blink LED sketch that comes with the Arduino IDE


Sorry, I worded that sentence wrong. I know how to do the Arduino programming. I didn't know how to get the AC to power and control the lights.

Grumpy_Mike

The arduino controls the lights not the AC power.
To get AC power to power the LEDs you have to convert it into DC power with a wall wart.

twychopen

thanks everybody

Ok, maybe another simple solution but I would prefer to just plug in 1 plug, not 2 (one for the lights and one for the seperate AC pump unit that just has to be on with no controlling.) How would I do that?

Grumpy_Mike

You could design your own power supply but I suspect you are not up to that.
You could wire the two units together in a box and have one lead comming out.
But basically you need AC and DC and these are two different things.

twychopen


You could design your own power supply but I suspect you are not up to that.
You could wire the two units together in a box and have one lead comming out.
But basically you need AC and DC and these are two different things.


No not up to designing my own power supply haha :) I just will wire the two units together in the box as you said and have one cord for the wall. Thanks a lot!

PaulS

Quote
Look at the blink without delay LED sketch that comes with the Arduino IDE

There. That's better. Start off not using delay(), then you won't have to figure out later how not to.

Go Up