I have a arduino MEGA 2560. I am using an arduino wifi shield along with it. Since my application (production of heat using heat bulbs)required a current of 8A, I used a dual channel H Bridge shield on top of the arduino board which was able to withstand and provide the supply.
I have separately tried out the Simulink code and it works perfectly. I now want to transfer the data of the control of temperature achieved using the H BRIDGE sheld(Simulink program) to the internet using arduino WiFi shield.
How do I program the wifi shield and the h bridge shield simultaneously. The arduino mega 2560 board is where the code gets written into. How can I make both the codes run at the same time? Does not the arduino erase the code stored in it while accepting a new code?
The H Bridge shield and Wifi shield are stacked and mounted upon the MEGA 2560 in the same order. Kindly guide me as to how I should proceed with this.