EtherMega in practice with Interups and Server

Combining the power of the ATmega2560 MCU with onboard Ethernet, a microSD card slot, an efficient switchmode power supply, and a small prototyping area. [Product page]
Post Reply
triaco
Posts: 19
Joined: Fri Jan 31, 2014 5:05 am

EtherMega in practice with Interups and Server

Post by triaco » Wed Jan 27, 2016 3:47 am

Hi all

My Ethermega has been running happily for a long time.

Right now my EtherMega does:

1. Controls the lights in my house, with all inputs monitored with interrupts. ( No I/O left unused )
2. Turns on a tinny fan via thermometer to cool down the circuits when needed

I would love to add Internet functionality,
but my question is more of a practical nature:

How would EtherMega function with running server as well ?
The one and only requirement is smooth and responsive action.
So before I start scratching my head how to rewrite the code,
what's your opinion, should I go ahead ... or it would be too much for Arduino.

Thanks for any comments

andrew
Freetronics Staff
Freetronics Staff
Posts: 978
Joined: Sun Jul 14, 2013 7:06 am
Location: Melbourne, Australia
Contact:

Re: EtherMega in practice with Interups and Server

Post by andrew » Thu Jan 28, 2016 7:59 am

Are you using pins D10 and D50~52? These are used for the Ethernet interface.

triaco
Posts: 19
Joined: Fri Jan 31, 2014 5:05 am

Re: EtherMega in practice with Interups and Server

Post by triaco » Mon Feb 01, 2016 6:39 pm

Andrew, Pins like Wiznet Select, microSD Select, SPI are not used. I left them for a future use.
I notice that without interrupts and code optimization, the Ethermega could not handle well my switches.
Thanks to book Arduino Internals I managed to make it work.
Now I am afraid that implementing the server will destroy my MCU setup.
So my question is: is there a chance that server will run smoothly while all digital IN/OUT are deployed ?
how well server runs under a heavy load ?
is it applicable in my case ?

andrew
Freetronics Staff
Freetronics Staff
Posts: 978
Joined: Sun Jul 14, 2013 7:06 am
Location: Melbourne, Australia
Contact:

Re: EtherMega in practice with Interups and Server

Post by andrew » Mon Feb 01, 2016 9:17 pm

How smoothly it operates is subjective, so that's up to you. As always, try it and see :)

You may be interested in our EtherDue - it's the much faster Due-compatible board with onboard Ethernet etc.
http://www.freetronics.com.au/collectio ... d-ethernet

Another option may be to use a single-board computer such as a Raspberry Pi to handle the networking/user interface - which can then command the EtherMega via serial or I2C to take care of I/O.

triaco
Posts: 19
Joined: Fri Jan 31, 2014 5:05 am

Re: EtherMega in practice with Interups and Server

Post by triaco » Wed Feb 03, 2016 8:13 am

EtherDue is definitely a step forward however 3.3V in my project is out of question, due to many sub-circuits ( 5V ) and distances.
Raspberry Pi ?
What's about Etherten ? Got one spare board for experiments.
What if I make it run solely as server and communicate with Ethermega to grab the numbers ( raw serial data ) only.
That way EtherMega does not have to format html tags etc.
I give a go with a simple test.

phannson88
Posts: 3
Joined: Thu May 18, 2017 11:50 am

Re: EtherMega in practice with Interups and Server

Post by phannson88 » Thu May 25, 2017 2:42 pm

Please click to play,if you wanna join casino online. Thank you
gclub
โกลเด้นสล็อต

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests