Sunday, August 14, 2016

Filled Under: , , , , ,

Arduino MEGA 2560 Home automation with 8 channel relay

8 Channel Relay Arduino MEGA 2560 easy Ethernet Shield project Relay


 
Don't have components? Don't worry. Just click the component's name. 


Step 2: Build Your Circuit.



Connect wire like the schematic above.






Step 3: Upload The Code.

You need to include the SPI and Ethernet Libraries.

You probably need to change the IP Address and gateway. Subnet will be as it is in most cases.

You can find this below on the top of the code to change IP and gateway.

byte mac[] = { 0xAE, 0xFE, 0xDE, 0xEF, 0xFD, 0xFD }; //You can change the mac address to!

byte gateway[] = { 192, 168, *, *** }; //

byte subnet[] = { 255, 255, 255, 0 }; //

ip(192,168,*,**);



To find out what your gateway:

Select Start > Run. Type command into the dialog box, then click OK.In the command line window, type ipconfig /all.

Here you will find your gateway.

To find the control panel. Just go to the IP address you assigned to the Ethernet Shield in your browser, phone or tablets browser. From here you can Control each relay.




Download:





Unknown

Author & Editor

My Robot Education Sdn. Bhd. (Robotedu.my) was founded in 2015 as the first robotics education centre in Malaysia to provide Arduino-based robotics courses for youths. Our vision is to be able to provide robotics education to every youth in Malaysia.

3 comments:

  1. I see some amazingly important and kept up to length of your strength searching for in your on the site camera systems mcallen

    ReplyDelete
  2. This article gives the light in which we can observe the reality. This is very nice one and gives indepth information. Thanks for this nice article. antenna cancello

    ReplyDelete

 

  • Copyright © Arduino Tutorial ™ is a registered trademark.
    Designed by Templateism. Hosted on Blogger Templates.