Good morning all.
I currently have a project which is utilising a Mega, and it has all the PWM-capable pins in use. They are driving 12 sets of outputs and are written depending on 12 variables;
int circuit1 ~ int circuit12.
It also has 12 digital pins assigned to a relay used in conjunction with each PWM output, and a further 12 used to monitor switches.
It also is using I2C for a RTC module.
I would like to add ethernet so I can have a web interface, and an LCD for visual feedback to the project.
I can't use the ethernet shield directly, as the pins it uses are in use by PWM tasks.
Can the ethernet shield be used on pins other than the standard ones (i believe 10, 11, 12 ,13?)
I can add an I2C LCD so that shouldn't be an issue.
My question is, can I use, say an Arduino Uno, to handle the ethernet tasks, the web page, and the LCD, and use a serial link between the two Arduinos (Mega and Uno) to transfer the data? This would free up some resources on the Mega, and reduce the clutter in the code on the Mega a little.
The web interface ideally would display the values for circuit1 - circuit12, and be able to change them, or alternately run sub routines in the sketch on the Mega which would change them.
In this case, the Uno would have to be able to read the current state of the variables from the Mega, and then if requested, either change those values or run a sub routine based on input from the web page.
The LCD could also be moved over to the UNO, and this would just be displaying the values in a rolling loop kind of thing. .
i.e. Circuit 1 = 200, wait, then clear screen, Circuit 2 = 155, etc etc.
I can work out the display and the web interface on the Uno, but I've never tried to communicate between 2 Arduino's before so I'm not sure how to go about getting the values from the Mega, or sending back a request to change a value or run a routine. Or how to take an input from the webpage running on the Uno, and send that to the Mega.
The boards can be physically located near/next to each other so distance isn't a concern.
Thanks for any guidance.