Go Down

Topic: Microcontrolled Solar Charging Station (Read 667 times) previous topic - next topic

Edward_James

Hi, I'm Edward and I am in the middle of my thesis. can some here please help me to program my Arduino 2560? Is it possible to control 6 relays at different instances? I mean can arduino do multitasking without interrupting the first process? Please Help.

LarryD

You can sequentially operate multiple o/ps (relays) using the Arduino.

You would connect 6 of the following to Arduino and energize them as needed.
http://playground.arduino.cc/uploads/Learning/relays.pdf
The way you have it in your schematic isn't the same as how you have it wired up!

AWOL

Or you could look at the blink without delay example for clues of how to do this.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Edward_James

so it means i cannot have two processes at the same time? it is sequentially possible but it comes in sequence right?

AWOL

No two things can operate exactly the same time, but compared to a microcontroller, a relay is extremely slow.
You can only do two things to a relay - turn it on or turn it off.
Neither operation takes more than a few hundred nanoseconds.
So, with all the spare time you have, you can look at controlling other relays.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

PeterH

I only provide help via the forum - please do not contact me for private consultancy.

jamesstephenson57

Hi  tried to do multitasking, but its extremely very slow.

AWOL

Quote
Hi  tried to do multitasking, but its extremely very slow.
Apart from demonstrating an example of a tautology, was there a point to your post?
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Go Up