etoliko, greece
Offline
Newbie
Karma: 0
Posts: 4
bad
|
 |
« on: March 28, 2011, 05:15:20 pm » |
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
Tesla Member
Karma: 70
Posts: 6803
Scattered showers my arse -- Noah, 2348BC.
|
 |
« Reply #1 on: March 28, 2011, 06:06:19 pm » |
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
|
|
|
|
|
etoliko, greece
Offline
Newbie
Karma: 0
Posts: 4
bad
|
 |
« Reply #2 on: March 28, 2011, 06:14:15 pm » |
And can you tell me where to read some professional-written code to compare?
|
|
|
|
|
Logged
|
MOD IT TILL IT BLEEDS
|
|
|
|
etoliko, greece
Offline
Newbie
Karma: 0
Posts: 4
bad
|
 |
« Reply #3 on: March 28, 2011, 06:52:12 pm » |
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
God Member
Karma: 4
Posts: 673
|
 |
« Reply #4 on: March 28, 2011, 07:32:10 pm » |
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
Brattain Member
Karma: 279
Posts: 15293
Measurement changes behavior
|
 |
« Reply #5 on: March 28, 2011, 08:22:24 pm » |
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
Newbie
Karma: 0
Posts: 3
|
 |
« Reply #6 on: March 29, 2011, 04:30:16 am » |
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
Faraday Member
Karma: 104
Posts: 5531
|
 |
« Reply #7 on: March 29, 2011, 06:48:07 am » |
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
Newbie
Karma: 0
Posts: 4
bad
|
 |
« Reply #8 on: March 29, 2011, 06:50:16 am » |
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
Faraday Member
Karma: 104
Posts: 5531
|
 |
« Reply #9 on: March 29, 2011, 07:12:51 am » |
but there are foam-resistant sirens nowdays I bet people didn't think that would be something they would need to make 
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Faraday Member
Karma: 6
Posts: 2504
|
 |
« Reply #10 on: March 29, 2011, 08:56:56 am » |
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
Edison Member
Karma: 19
Posts: 2305
|
 |
« Reply #11 on: March 29, 2011, 11:52:01 am » |
Like said previously, stay away from the libraries! If you want something done right, you better do it yourself.
|
|
|
|
|
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
Edison Member
Karma: 0
Posts: 1026
Forums forever
|
 |
« Reply #12 on: April 02, 2011, 03:16:22 am » |
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
|
|
|
|
|
|