Pages: [1]   Go Down
Author Topic: Microcontrolled Solar Charging Station  (Read 579 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Edison Member
*
Karma: 64
Posts: 2488
The last thing you did is where you should start looking.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 290
Posts: 25774
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Or you could look at the blink without delay example for clues of how to do this.
Logged

"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.

Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 290
Posts: 25774
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

"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.

UK
Offline Offline
Shannon Member
****
Karma: 222
Posts: 12549
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

at the same time?

Yes, you can do them 'at the same time'.
Logged

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

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 290
Posts: 25774
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

"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.

Pages: [1]   Go Up
Jump to: