AusGamers Forums
Show: per page
1
Homebrew electronics with Arduino
Jerry
Queensland
4148 posts

A while ago I posted about lego mindstorms and Pinky suggested going down the Arduino path instead.

Well, now that I've planted the seed you will see that it is a lot more flexible and researching it and making it work is very rewarding.


It took a little while to come back to and start researching properly but it was good advice. I've been able to recycle old electronics for doing random things with instead of binning. Not to mention the pricing of components.

Example project I did a while ago was a networked garage door opener & status monitor (closed/midway/open). I've started working with many types of sensors and bluetooth for streaming data for heavier processing on pc on other projects.



Anyway, this thread was just to say thumbs up - I took your advice and am enjoying these. For the price of a single lego nxt** I've got a large collection of useful parts and many arduino varieties (pro minis, nanos, unos, megas).

** I've think i've actually sunk about 2 grand in parts so far (this includes testing/soldering/cables/connectors/electrical/pcb equipment + sensors/controllers/motors,etc, etc). But I don't need to worry about waiting for them to arrive if I start something new. I had looked at netduino and fez for a bit before I started purchasing but decided that the arduino ide was easy enough to use and support at the beginning was far easier to find. Also cost of the boards, sizes available, etc meant that I could buy many more cross-compatible varieties for the price of a single fez/netduino.
10:46am 19/05/12 Permalink
adBot
ads
Internet
--
ads keep websites free
10:46am 19/05/12 Permalink
Timmeh
Brisbane, Queensland
2274 posts
THAT IS VERY COOL!


does it work on the mobile network or can you connect to wifi outside your house.
if you lost your remote or to let friends in without being there
11:26am 19/05/12 Permalink
Jerry
Queensland
4151 posts
does it work on the mobile network or can you connect to wifi outside your house.
Because i'm using fairly basic security (the buzzer in the video is used for login success/fail and open/close) on it I currently only have it running on the lan via a wifi bridge (in the video the phone and controller are both connected to the wifi network), but all I need to do is forward a port for it from the router and yes I could use it from anywhere.

Instead if I need to control it remotely (remotely as in outside the wifi range) atm I can remote in to a pc in the house and use it to connect to it or setup a vpn (less worries about security doing it this way). I added in device lockout for a small number of failed logins just in case anyway where it won't work until physically reset.


It is possible to add mobile coverage and control it by sms (but that leads to ongoing costs and account maintenance)
11:56am 19/05/12 Permalink
Eds
Brisbane, Queensland
9932 posts
i didnt go the full DIY but I am doing a lot of code myself.
With the new marine tank I bought I am using this www.reefangel.com which is powered by Arduino
12:02pm 19/05/12 Permalink
Murderer
Tasmania
1869 posts
turn it into an app.

get 50k behind you and you will be a millionaire!
01:19pm 19/05/12 Permalink
Whoop
Brisbane, Queensland
19916 posts
Jaycar sells a bunch of arduino compatible stuff It hink.
02:10pm 19/05/12 Permalink
HerbalLizard
Brisbane, Queensland
5537 posts
I take it you have seen http://mydooropener.com/
03:26pm 19/05/12 Permalink
mooby
Brisbane, Queensland
6127 posts
well done
04:09pm 19/05/12 Permalink
Jerry
Queensland
4152 posts
I take it you have seen http://mydooropener.com/
nah hadn't come across it. I was thinking of updating for a html5 page to make it work like an app on android/iphone and useable on pc

my one will confirm whether the door is actually fully closed or fully open so that it never gives a false reading (e.g. 'closed' when the door is half open). This is done by the disto confirming when the door is fully open (in it's view at a certain distance +/- small inaccuracy) and a magnetic switch when it fully closes. If the magnetic switch does not pass a signal back up the line and the disto doesn't detect the door (door moving or half open) then the page will report 'midway'. A N-mosfet is used to trigger the connection for the door when requested. A spare router with DD-WRT provides both USB power + ethernet for wifi bridge (I saw a page where a guy has used the same router to do Serial to Ethernet which could be a good idea to reduce cost).

Before deciding to use the disto + magnet switch I had set everything up using a rotary encoder from a mouse scroller attached to the main cog on the motor of the door opener.. however it was too inaccurate inconsistent to be able to determine either a pattern or movement required to confirm closed/open.

I have another prototype built which has halved the cost/size of the project by using a pro mini and ENC28J60 ethernet module but will require some work to get it running properly. It would be good if wifi gear for the arduino wasn't so high (i.e. far cheaper to use wifi bridge and ethernet).
04:21pm 19/05/12 Permalink
DecayingCorpse
Brisbane, Queensland
2007 posts
got some linkage? i'm very interested...
05:44pm 19/05/12 Permalink
copuis
Brisbane, Queensland
2765 posts
while very cool, how practical is it?

I mean having a small remote that is on the cars' key ring, push button, done.
even the bigger older style remotes, a little velco on the dash, push button, done.

iphone app, log into wifi/make sure it is one, open up app, select open, other than a very good back up to the remote system, it hardly seems a practical replacement
05:54pm 19/05/12 Permalink
Nerfy
Brisbane, Queensland
5961 posts
My psychic powers say that Pinky is in the Netherlands, doing Netherlands activities. He may be unresponsive for a while.
06:27pm 19/05/12 Permalink
Jerry
Queensland
4154 posts
while very cool, how practical is it?
to be honest, as a remote replacement it's not.

I dont actually use remote controls to get in/out of the garage anymore since installing an RFID reader and keypad to open it if I can't get in (dont need to carry keys); and another RFID reader and keypad to get in normal door.

iphone app, log into wifi/make sure it is one, open up app, select open, other than a very good back up to the remote system, it hardly seems a practical replacement
it was more a learning project (+fun) - but the advantage is not so much for getting the door up/down as a remote replacement. If it was ever going to be considered for commercialisation the focus would be more for people who forget whether they've left the door open when going out (or already in bed :) ) - the ability to monitor (and action if required) is where it holds the advantage. Also you could setup temporary access logins for people if you needed them to come do something at your house while away.

The extendability also would make it possible to use a different wireless system that enabled client devices installed in cars to monitor (say with leds or lcd) and control up to a few km (or open the door before you get in the driveway).

Though this form of home automation (and a lot that i've seen) without sinking heaps of dollars in is always going to get 'cool, but isn't it easier to get up and flick a switch then to use your phone to turn off a light' (quote from Koshi when a guy was showing his home automation on sunrise.. his response was 'I could say the same about you and the tv remote?').

What I would like to work on is a security system that talks between components. Using those alarms that go off when a wire is disconnected on all major electrical appliances and having them talk wirelessly to a main host which distributes security actions (i.e. email or sms advising what device is being tampered with) + external sirens say if two+ were disconnected. Similarly with vibration sensors on windows to alert of possible breakages. Monitoring hard cabled devices that thieves may target should work nicely for homes that can't use motion sensors (indoor pets,etc).

06:28pm 19/05/12 Permalink
copuis
Brisbane, Queensland
2766 posts
i like the idea of a alert that something is out of wack

so, would that extend to, say a pattern learning program (that learns you habits,/routine) to send an sms if something out of order happens?

ie, wednesday at 1pm, you are at work, but there is a light turned on,

I mean the code to sync with your habits, and not to send false alerts at say christmas might take some time, but that would work well with the connected home
06:36pm 19/05/12 Permalink
sleepy
Sunshine Coast, Queensland
2274 posts
while very cool, how practical is it?

I mean having a small remote that is on the cars' key ring, push button, done.
even the bigger older style remotes, a little velco on the dash, push button, done.

iphone app, log into wifi/make sure it is one, open up app, select open, other than a very good back up to the remote system, it hardly seems a practical replacement


next step... voice control it.

then it is MUCH more practical.
06:46pm 19/05/12 Permalink
Jerry
Queensland
4155 posts
i like the idea of a alert that something is out of wack

so, would that extend to, say a pattern learning program (that learns you habits,/routine) to send an sms if something out of order happens?
i guess it could be possible to determine and improve over time - esp. if you have a perfect routine. Working out a sick day or changing annual leave times probably wouldn't work and require some degree of human interaction. You'd be better off with a manual way of activating when you leave as with an alarm (this could be automated using some sort of wireless sensors or awesome RFID readers).

I read recently too about Microsoft HomeOS prototype 'bringing smart homes to the masses' http://research.microsoft.com/en-us/projects/homeos/ which is a bit of security, light control, temp, media, electrical control - one of the features they mention is sensors going off triggering cameras to take photos and alert.
07:08pm 19/05/12 Permalink
koopz
Brisbane, Queensland
9653 posts
well done Jerry

09:02pm 19/05/12 Permalink
Obes
Brisbane, Queensland
9650 posts
Raspberry pi or gtfo
09:55pm 19/05/12 Permalink
koopz
Brisbane, Queensland
9655 posts
Though this form of home automation (and a lot that i've seen) without sinking heaps of dollars in is always going to get 'cool


if it helps to know - my work's target demographic got in hard with home auto.. and many have been left high and dry as the smaller home auto startups went broke.

Sadly.. I have nfi what to recommend as a carry-on from there.
11:41pm 19/05/12 Permalink
HerbalLizard
Brisbane, Queensland
5540 posts
Jerry your project is exactly the reason why I went and brought an uno and shield in the first place. The issue is practicality, its fucking awesome don't get me wrong and I am building nearly the same thing as you.

But I can simply order an RF Momentary/Toggle Switch from fleabay for all of $15 and re-purpose my my uno+ethernet shield
12:54am 20/05/12 Permalink
Jerry
Queensland
4157 posts
just saw this, looks like it could provide some fun for $35(+$10 post):

on another note, has anyone seen this kickstarter.com (linked above) site to get funding for projects like this (they are at $160k of their $25k goal)?

04:53pm 20/05/12 Permalink
gamer
2518 posts
REALLY cool. Nice find mate :)
08:27pm 20/05/12 Permalink
Jc_23
Brisbane, Queensland
759 posts
Awesome Jerry! :)
02:00am 21/05/12 Permalink
Pinky
Melbourne, Victoria
13216 posts
Yessir, I was in the Netherlands and have since returned.

Really awesome work! Elegant and useful.

Arduino is a great choice for this kind of stuff. Nice balance between support, learning and power.

To go even cheaper still you could program the Atmega 328 or whatever you have directly:

http://www.instructables.com/id/Standalone-Arduino-ATMega-chip-on-breadboard/

In other words, a lot of stuff on the Arduino board itself is not required for this to project to work.

After that you could even design and manufacture your own PCB ( http://dorkbotpdx.org/wiki/pcb_order ) and then you no longer have a prototype - package it and you have the real deal!
Raspberry pi or gtfo

Ridiculous overkill for this kind of project.

I'm very impressed, it's awesome work. So many of my projects don't get this far. I'll start a thread on one I did complete recently for a mate.
03:29pm 31/05/12 Permalink
Furgle
999 posts
I've really been getting into ardiuno lately.

Most of my stuff I order from http://www.seeedstudio.com/depot/ since jaycar is a bit of a rip off.

My latest project was a paintball competition flag capture timer.

Two teams, one red, one blue. 15 minute game. Points determined on how long each point has been captured. The device I built is weather sealed, rechargable (without being opened), and has a 12V output to power two strobe lights (red & blue). The LCD screen displays how long each team has held the point for.



We had two running for 10 hours straight, and worked flawlessly.

Next upgrade for it is some radio control to reset them between games. Got the radio transmitter and receiver modules from seeed studio last week.


03:45pm 31/05/12 Permalink
Raven
Melbourne, Victoria
6962 posts
I'll be looking for more details on this, because I want to write an app for Pebble to use it as a garage door opener. The hardest part will be getting the signal from a server sitting in the garage to the motor device.
03:57pm 31/05/12 Permalink
Pinky
Melbourne, Victoria
13218 posts
Very nice, Furgle.

Thanks for the link too - haven't seen that site before.

My usual sites:

http://australianrobotics.com.au/
http://littlebirdelectronics.com/pages/categories
http://www.digilentinc.com/index.cfm
http://au.element14.com/
http://www.sparkfun.com/categories (usually try to buy through Littlebird though, since it's a reseller)
http://www.oceancontrols.com.au/ (motors and motor mounts usually from here)

Batteries I work out what I want then trawl every hobby store to find cheapest.
04:02pm 31/05/12 Permalink
adBot
ads
Internet
--
ads keep websites free
04:02pm 31/05/12 Permalink
AusGamers Forums
Show: per page
1
This thread is archived and cannot be replied to.
 

Advertise with Us | Download Media Kit | Privacy Policy | Contact Us
© Copyright 2001-2013 AusGamers™ Pty Ltd. ACN 093 772 242.
A Mammoth Media web development, hosted by Mammoth VPS.