Go Down

Topic: Arduino lighting system with backup board (Read 2 times) previous topic - next topic

CrossRoads

The arduino will not fail if you are not overloading any of the output pins. Its a  pretty durable chip.
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.

groundcontact

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.

CrossRoads

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

Sergegsx

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.
* 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/

groundcontact

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! :) 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.

Go Up