Pages: [1]   Go Down
Author Topic: Arduino lighting system with backup board  (Read 1858 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 10
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi everyone,

I'm starting the design of a home lighting system controlled by an Arduino board. We'll see if UNO is enough or I'll have to move to the Mega. Since the Arduino is going to be the heart of the system, a failure in the board would drive the whole system down and leave the house with no lights available until replaced. So I'm thinking that it might be interesting putting two boards to work together. One would be the working board, and the other one would be a hot backup that would catch up the control in case the main one died. Has anyone have experience with this? Any project that uses this kind of configuration you might have heard of? Any suggestions as kickstar?

Thanks in advance.
Logged

California
Offline Offline
Faraday Member
**
Karma: 88
Posts: 3368
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Why not a manual override for the lights?
Logged

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

Hi there,

Thanks for the reply. I missed something in my previous message. The wire layout is already done, and there's no 220V wiring reaching the switches, only DC Cat-5 wire. To activate the power circuits manually I would need to set up another system with would be much more difficult to build than having two Arduinos working together. I have thought something like using logic gates at the exit of the Arduino's or using a three state buffer that in that case would be controlled manually. Is something like that what you suggest?

Thanks.
Logged

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 525
Posts: 26572
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

How about a schematic?
Would the 2 arduinos be seperately powered? Battery backup or something?
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

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

I'll try to upload an schematic ASAP (that means a couple of days), but the layout is very simple. In the mean time, think of a set of n DC switches wired to the Arduino inputs, a set of k outputs from the Arduino that control a board of relays/dimmers wired to 220V light circuits in accordance with the inputs. If a relay fails, no problem. One light circuit goes down but I still have lights in the house. If a swith fails, no problem neither. But, if the Arduino fails the whole system goes down having no connection between the DC switches and the AC 220V power lines. In that case I could go to the box where the Arduino is going to be housed and replace it with a new one, but that can take maybe hours to do (housing will be under a false ceiling and you need to get a ladder, open the access panels and so). I want something faster and easy to do. If I put two Arduino boards integrated in the system, having the same inputs, outputs and software, I can easily switch from one to the other with a manual override (as previously said) or on automatic. Anything doable in a matter of minutes will be fine.

No need for battery backup since if mains are down there's no need for light control. Power supply for the boards have to be independent, since the failure could come from the supply, too.
Logged

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 525
Posts: 26572
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The arduino will not fail if you are not overloading any of the output pins. Its a  pretty durable chip.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

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

Ok, you might be right in that, but not all threats need to come from within of the Arduino. Let's imagine the inconceivable, an external damage (a mouse bites the supply cord, a water leakage gets through or, why no, there's a flaw in one of the components of the board, etc.)

The thing is, the cost of the board is negligible compared to the cost of the whole electrical installation, so if there's a way of doing something easy putting two boards, one as hot and the other as backup, why not do it. I have done some research and I know now more than I did yesterday. The option of having a set of three state buffers controlled by an external switch that changes from one Arduino to the other (even switching power supply too) is so far the one that fits best.
Logged

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 525
Posts: 26572
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I would suggest both part's outputs be buffered then, so the outputs can fail Hi or Lo  and not make it thru the buffer to impact the other board's output.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

0
Offline Offline
Edison Member
*
Karma: 17
Posts: 1413
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

how about making the logic of the arduino so that in case it fails, output is LOW, then all the relays are DEACTIVATED and this closes the 220Vac circuit so all light will turn on.

I believe it is safer to fail with light so you can continue with your normal life, than all in darkness.

Also, you could prepare a manual switch board that could replace the arduino board by unpluggin the arduino and plugging this board and then you have manual control of each light. of course, a good recomendation would also be as you say, to have an identicall arduino ready in case the one working fails.
Logged

* Si preguntas, pon el código de tu programa, hace mucho mas fácil ayudarte. Y me ahorro un mensaje pidiendo que lo hagas.
* Si consigues solucionar tu problema, dedica unos minutos a explicar en tu post como lo conseguiste para beneficio de todos.
* Cambia el 'Subject' de tu hilo y añade 'SOLUCIONADO' cuando hayas llegado a una solución al problema que planteaste.
* Utiliza un 'Subject' para tu hilo que explique de que va el hilo.
Si estas empezando:
* Comienza a usar Arduino
* Guías de iniciación a Arduino
* Ejemplos
* Referencia del Lenguaje
* Conceptos básicos
Guia de usuario de arduino
Tutoriales en Ingles
Si necesitas que alguien te escriba el código: http://www.freelancer.com/  o esta  http://www.guru.com/

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

I hadn't thought about that but seems not a bad idea. Not for the whole of the lines but a estrategic light circuit that gives surviving light to the kitchen, for example, can be wired that way and be a signal of something going wrong. You don't wanna have 1000 watts of light flooding your house at 4am if that's the time of the failure, especially if you have kids or visitors! smiley I'll leave that for a "panic mode" lighting released with a rapid keying of any switch. Thanx any way, to you and the rest of contributors so far.
Logged

Pages: [1]   Go Up
Jump to: