Skip to content

Boom barrier and Traffic light control with Arduino via Ethernet

Boom barrier and Traffic light control with Arduino via Ethernet

Components

Hardware components

x 1

Project description

code: #include <SPI.h> // needed for Arduino versions later than 0018 #include <Ethernet.h> // Ethernet board connected - Uses A0, A1, (D2 or D4), D10, D11, D12, D13 #include <EthernetUdp.h> // UDP library from: 12/30/2008 byte mac[] = { 0x90, 0xA2, 0xDA, 0x0D, 0x78, 0xE0 }; // <------- PUT YOUR MAC Address Here byte ip[] = { 10, 195, 82, 251 }; // <------- PUT YOUR IP Address Here unsigned int localPort = 8888; // Local IP port to listen on byte gateway[] = { 10, 195, 82, 1 }; // <------- PUT YOUR ROUTERS IP Address to which your shield is connected Here byte subnet[] = { 255, 255, 255, 0…

Keep reading with a free account

Guests can read 15 projects per visit. Log in or create a free account to read the full description, open the documents and join the comments.