Go Down

Topic: HELP (Read 165 times) previous topic - next topic

Breno2012

I'm starting on the Arduino , and wanted to know if I can control four relays with different times and alternating ( from the first to the fourth , the second to the fourth ... ) be able to , which is sometimes program ?  code?

Breno2012

I'm starting on the Arduino , and wanted to know if I can control four relays with different times and alternating ( from the first to the fourth , the second to the fourth ... ) be able to , which is sometimes program ?

CrossRoads

Yes you can, very easily.
This topic discusses an 8-relay shield I made with video towards the end of it working to control 120VAC powered Christmas lights. The relays themselves are good for 220V, 5A I think,
http://forum.arduino.cc/index.php?topic=276450.0
Video here
http://youtu.be/ukRtgLK_b5c
I will soon be building up some that are the same relays but without the shield connectors, and daisychainable for controlling multiple cards from one Arduino. Am waiting on PCB delivery at the moment.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

CrossRoads

Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

Breno2012

well I wanted the code

CrossRoads

Start by reading this topic, then, it will help you learn how to write it.
https://forum.arduino.cc/index.php?topic=223286.0
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

weedpharma

well I wanted the code

This is a help forum, not a "we will do your project for you" forum. This sort of blunt reply does not make us want to help.

 If you want our help, do some work and write a program. If it does not work, post it and tell us what it does or what does not work.

Weedpharma

jack wp

With a 4 relay board attached to the arduino (4 output pins), the code can turn any one (or more) on and off at about any interval.

Which arduino board are you using? Have you got the first script to run on it yet?
What output pins are you using?
What relay board are you using?


Henry_Best

Yes you can.
See the 'Blink Without Delay' example for how to do it.

Coding Badly


Do not cross-post.  Threads merged.


Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy