Pages: [1]   Go Down
Author Topic: Arduino network relay  (Read 477 times)
0 Members and 1 Guest are viewing this topic.
Greece - Thessaloniki
Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, I don't know if this is the correct forum to post my new arduino project. if it's not, please tell me where to post it.

My new project is called 'Network relay' and is been made on arduino nano, ENC28j60 ethernet module (it can be used the W5100 ethernet module too) and the AM2302 humidity / temperature sensor. It has an output (relay) and an isolated input (optocoupler). The circuit can be controller through your local network or Internet by forwarding  the port 10000 from your ADLS router to the 'Network relay' circuit.
For controlling the relay (ON/OFF) and reading the switch (input) status, I wrote an android application and can be downloaded for free from Google play
The whole project (schematic, sketch video presentation etc) is published on my web site: http://www.serasidis.gr/circuits/NetworkRelay/NetworkRelay.htm

I am waiting your comments
Vassilis Serasidis
« Last Edit: September 20, 2014, 08:24:27 am by Serasidis » Logged

Offline Offline
Full Member
***
Karma: 11
Posts: 190
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

cool stuff :-), thank you for linking my library.

some remarks:

- a few lines about the dependencies (how to install...) would be great.
- you should avoid use of String-class for serialData. You can easily corrupt the memory by sending a long message that does not contain the '*' character. Same might happen if the bandwidth is low as you leave the loop after timeout closing the client without releasing serialData. Use a static allocated fixed size char[] and check number of received bytes to ensure staying within the boundaries will be more robust.

Logged

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

Nice project, I was involved in a similar build one year ago (you can find it in the project gallery).
I'm going to take a deeper look at the code.
Thanks
Paolo
« Last Edit: September 22, 2014, 05:55:29 am by prnet » Logged

Greece - Thessaloniki
Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

cool stuff :-), thank you for linking my library.

some remarks:

- a few lines about the dependencies (how to install...) would be great.
Do you mean, how to install the additional libraries (DHT, UIPEthernet) on Arduino IDE libraries folder ?

Quote
- you should avoid use of String-class for serialData. You can easily corrupt the memory by sending a long message that does not contain the '*' character. Same might happen if the bandwidth is low as you leave the loop after timeout closing the client without releasing serialData. Use a static allocated fixed size char[] and check number of received bytes to ensure staying within the boundaries will be more robust.
You are absolutely right! I fixed that on source code v1.01
« Last Edit: September 22, 2014, 10:05:22 am by Serasidis » Logged

Greece - Thessaloniki
Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Nice project, I was involved in a similar build one year ago (you can find it in the project gallery).
I'm going to take a deeper look at the code.
Thanks
Paolo


Very nice job Paolo! I found your project on instructables web site.
Logged

Pages: [1]   Go Up
Jump to: