Pages: [1]   Go Down
Author Topic: My home automation (webserver + HTML control)  (Read 4727 times)
0 Members and 1 Guest are viewing this topic.
Valencia
Offline Offline
Newbie
*
Karma: 1
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

I have been working for 1 months on my Arduino home automation.
What I'm doing is a arduino + ethernet working as webserver, and using HTML in order to control the variables on my mobile telephone.

It has now:

- RTC
- Ethernet (w5100)
- Digital light sensor
- Relay module
- Arduino Mega
- 5v power supply

There are other modules I want to use in the future as PIR, distance sensor, temperature, RF, etc. but my priority is to control my central heating and exterior lights.

I have the webserver working (after spend hours trying to run the string concatenation), you can see a screenshot of my mobile.

I will post as much as I can about the proyect, but I have a doubt:

- What's the maximum distance that arduino ethernet shield can send/receive data from router?
        I have connected it to the router and it works perfectly, but when I connect it throw a 20 meters ethernet cable, it doesn't (PC and TV work).

In order to debut the HTML, I have to connect it to the ethernet of my Laptop, and use the WIFI connection to share the webserver to the net.

Thanks in advance


* la foto.PNG (102.74 KB, 640x960 - viewed 208 times.)
Logged

Holland
Offline Offline
Newbie
*
Karma: 1
Posts: 17
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I'm  also working on a similar project as you, hope to see some ideas from you!
For now, I've a Mega connected via I2C to the ethernet module (W5100 + arduino together), and the ethernet card has about 20 meter cable (cat 5e) to my router.
It's all working fine here, so I think the distance isn't the problem.

Maybe the power isn't enough? Have you tried a 7,5 volt power supply?
Logged

Valencia
Offline Offline
Newbie
*
Karma: 1
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm using a 5v power supply directly connected to 5V pin of Arduino (avoiding the power regulator in the arduino Mega card).

I have completted the code and it's working perfectly. I have attached it. Variable names are in spanish.

The workig is as follow:
- Initialize the RTC, ethernet, read variables from ROM (I store it in order to recover them when the power is out), light sensor... etc.
- Show HTML code
- When a string from Web browser is received, read this and change variables. Show updated web again.
- Each 50 seconds update Central heating status and light status, in order to put ON or OFF when they are in AUTO mode.


* Domotica_v16.ino (21.13 KB - downloaded 78 times.)
Logged

Valencia
Offline Offline
Newbie
*
Karma: 1
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What I would like to do now is to use a ring connection between some arduinos, because I want to control to much reles and I'm not able to pass all the cable throug the wall, so I will need to distribute some arduinos, connected in ring typology.

Logged

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

Quote
connected in ring typology.

http://ardweenet.robgray.com/index.php

Unfortunately it's not even close to being ready yet, but PCBs are being fabbed as we speak.

______
Rob
Logged

Rob Gray aka the GRAYnomad www.robgray.com

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

check your network cabel
if the wiring is not in the right order its almost not possible to work over 10m



* ethcable568b[1].gif (12.15 KB, 400x250 - viewed 54 times.)
Logged

Valencia
Offline Offline
Newbie
*
Karma: 1
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks, I will check the connectors.

Ring typology is an option, other one is the wireless (RF), but I think the last one would be unestable.

Another question:

¿There is any web where I can get my external IP through arduino web client?

(in order to send me when the IP change)
Logged

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

you can see your public IP here http://www.myip.ru/en-EN/index.php
or just search on google https://www.google.com/search?q=my+ip
or here http://ivan.mk/ip
Logged

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

Hi,

nice project, can you share your code pls?

thanks
Logged

0
Offline Offline
Tesla Member
***
Karma: 116
Posts: 8936
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
- What's the maximum distance that arduino ethernet shield can send/receive data from router?

I've got an arduino and mega with ethernet shields connected to my router thru ~50' of cat3 four conductor telephone wire wired as 10BaseT.
« Last Edit: December 13, 2012, 06:39:40 pm by zoomkat » Logged

Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   smiley-cool

0
Offline Offline
Jr. Member
**
Karma: 1
Posts: 70
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I think the IBorad Pro is very suit for the home automation project like this : )
http://imall.iteadstudio.com/development-platform/arduino/arduino-compatible-mainboard/iboard-pro.html

The board is ATMega2560 + W5100, with SD and XBee socket, many interface breakout for sensor module and display.  RTC onboard, and comes with Arduino MEGA 2560 bootloader.
Logged

Itead Studio - Make innovation easier

Pages: [1]   Go Up
Jump to: