Pages: [1]   Go Down
Author Topic: for how long will an arduino deliver?  (Read 3266 times)
0 Members and 1 Guest are viewing this topic.
etoliko, greece
Offline Offline
Newbie
*
Karma: 0
Posts: 36
bad
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all!

I made a simple alarm with an arduino uno. The arduino has a digital port set as input, which tells it if it is armed or disarmed.
Another is connected with an ir movement sensor, and another is an output connected to a relay, with a siren mounted on.

My question is, for how long will an arduino work without problems? Is it bulletproof? Will it stay there forever waiting someone to brake in? Will it respond every time i arm it? Or after a while it will fail due to memory problems for example? In general, can i trust it for an alarm system, or a home automation one with no reboot?
Logged

MOD IT TILL IT BLEEDS

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 130
Posts: 8625
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I would not say a normal Arduino running non-professional code off a wall wart is "bullet proof", but in general, with a well-written program, reliable power supply etc you would expect it to run indefinitely.

______
Rob
 
Logged

Rob Gray aka the GRAYnomad www.robgray.com

etoliko, greece
Offline Offline
Newbie
*
Karma: 0
Posts: 36
bad
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

And can you tell me where to read some professional-written code to compare?
Logged

MOD IT TILL IT BLEEDS

etoliko, greece
Offline Offline
Newbie
*
Karma: 0
Posts: 36
bad
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You are right!

It is easy to implement it with a couple of relays, a flip flop and some more. But the alarm/sensor is a part of a larger project of total home automation. The final project should control everything. From the doors to the water supply. Thats why it needs to be bulletproof or to fail gracefully as you say. It has a web page to control it with anything on a network. But the point is to be automated. To see and interact. To pass as clever. And to some point is done, but recent problems had made me asking about credibility. Can i rely on arduino to deliver? When im done i will post the code to evaluate if its ok with you. It is not commercial, it is for my home, which i built to accept a controller to handle everything. My project is powered through a large ups, so power is not a problem. Portability is not an issue also, and connections aren't a problem since i had short circuit problems. I ve made a custom board. The weak link is the code or/and the arduino, if it can be a weak link.
Here, in Greece, we do not have home insurance. We do not even think about it. So it is not a problem.
Logged

MOD IT TILL IT BLEEDS

Seattle, WA
Offline Offline
God Member
*****
Karma: 11
Posts: 673
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The hardware will generally do fine.  There are a few things that will help in your quest for bulletproofing

• Diagnostics, monitoring, notifications. You'll want easy ways to determine whether things are working, and a way to find out when they're not
• Testing.  Exhaustive testing if every component will help flush out the bugs
• Avoid libraries.  The least stable parts of an Arduino system are the libraries.  Especially stuff off the playground, but even the packed in  have occasional issues.  The less code you have, the less bugs.
Logged


Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 362
Posts: 17308
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I saw a master caper movie once. The bad guys just sprayed a quick setting foam into the alarm horns before breaking the security circuits.

Lefty

Logged

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

Hi,

I just came across this post. So I've been running a IR based home automation system and its uptime is 321 days, it hasn't crashed since, no random number generation nothing. A machine is as good as its code. I hope that answers your question on the bullet-proof-ness of arduino. Its pretty reliable, after all its just a bunch of counters registers and adders (it will remain intact till you mess up the supply or any other external factor on which its dependent).
Logged

North Yorkshire, UK
Offline Offline
Faraday Member
**
Karma: 104
Posts: 5531
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
and thousands (10s of thousands?) of transistors simply has more to go wrong.
Considering a DS3231 RTC has 33000 transistors I'd say hundreds of thousands.
Logged

etoliko, greece
Offline Offline
Newbie
*
Karma: 0
Posts: 36
bad
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you all for your answers. I will post my project as soon as it is finished.



I saw a master caper movie once. The bad guys just sprayed a quick setting foam into the alarm horns before breaking the security circuits.

Lefty

The foam that you are looking for is polyurethane, it is very good for that job, but there are foam-resistant sirens nowdays... just google it.
Logged

MOD IT TILL IT BLEEDS

North Yorkshire, UK
Offline Offline
Faraday Member
**
Karma: 104
Posts: 5531
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
but there are foam-resistant sirens nowdays
I bet people didn't think that would be something they would need to make smiley-grin
Logged

0
Offline Offline
Faraday Member
**
Karma: 8
Posts: 2526
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

A few years ago I built an arduino-based controller for a dust collector (woodworking equipment).  It's been running 24x7 ever since, hasn't failed to work once.

just a data point.

-j
Logged

'round the world...
Offline Offline
Faraday Member
**
Karma: 42
Posts: 3330
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Like said previously, stay away from the libraries! If you want something done right, you better do it yourself. smiley-wink
Logged

Eu não sou o teu criado. Se respondo no fórum é para ajudar todos mediante a minha disponibilidade e disposição. Responder por mensagem pessoal iria contra o propósito do fórum e por isso evito-o.
Se realmente pretendes que eu te ajude por mensagem pessoal, então podemos chegar a um acordo e contrato onde me pagas pela ajuda que eu fornecer e poderás então definir os termos de confidencialidade do meu serviço. De forma contrária toda e qualquer ajuda que eu der tem de ser visível a todos os participantes do fórum (será boa ideia, veres o significado da palavra fórum).
Nota também que eu não me responsabilizo por parvoíces escritas neste espaço pelo que se vais seguir algo dito por mim, entende que o farás por tua conta e risco.

Dito isto, mensagens pessoais só se forem pessoais, ou seja, se já interagimos de alguma forma no passado ou se me pretendes convidar para uma churrascada com cerveja (paga por ti, obviamente).

Sussex UK / CT USA
Offline Offline
Edison Member
*
Karma: 0
Posts: 1028
Forums forever
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Lots of things are more likely to let you down in such a system before the Arduino messes up... for instance, how can you be sure that there will be power? Bad Guys are not unknown to take advantage of power outages to "visit" properties.

I have one that runs my Perpetual Pendulum....

sheepdogguides.com/arduino/aht8pendu.htm

... for weeks at a time without needing a reset. (I'd claim longer up times for it, but I turn it off from time to time, and the dog knocks the electromagnet out of place from time to time.)
Logged

Pages: [1]   Go Up
Jump to: