BaseStation
BaseStation copied to clipboard
Arduino Ethernet shield 2
I bought an Arduino Mega with a Motorshield and an Ethernet shield 2. Over usb it works perfectly with the controller, but I can not get the Ethernet shield 2 to run with the DCC Software. Is it correct that I have to select COMM_INTERFACE 1 ??? This is how my configuration file looks like. The Board does not reply on a ping command. So I assume it does not work properly. Any kind of help would be appreciated. Thankyou
`///////////////////////////////////////////////////////////////////////////////////// // // DEFINE MOTOR_SHIELD_TYPE ACCORDING TO THE FOLLOWING TABLE: // // 0 = ARDUINO MOTOR SHIELD (MAX 18V/2A PER CHANNEL) // 1 = POLOLU MC33926 MOTOR SHIELD (MAX 28V/3A PER CHANNEL)
#define MOTOR_SHIELD_TYPE 0
///////////////////////////////////////////////////////////////////////////////////// // // DEFINE NUMBER OF MAIN TRACK REGISTER
#define MAX_MAIN_REGISTERS 12
///////////////////////////////////////////////////////////////////////////////////// // // DEFINE COMMUNICATIONS INTERFACE // // 0 = Built-in Serial Port // 1 = Arduino.cc Ethernet/SD-Card Shield // 2 = Arduino.org Ethernet/SD-Card Shield // 3 = Seeed Studio Ethernet/SD-Card Shield W5200
#define COMM_INTERFACE 1
///////////////////////////////////////////////////////////////////////////////////// // // DEFINE STATIC IP ADDRESS OR COMMENT OUT TO USE DHCP //
#define IP_ADDRESS { 192, 168, 178, 200 }
///////////////////////////////////////////////////////////////////////////////////// // // DEFINE PORT TO USE FOR ETHERNET COMMUNICATIONS INTERFACE //
#define ETHERNET_PORT 2560
///////////////////////////////////////////////////////////////////////////////////// // // DEFINE MAC ADDRESS ARRAY FOR ETHERNET COMMUNICATIONS INTERFACE //
#define MAC_ADDRESS { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xEF }
/////////////////////////////////////////////////////////////////////////////////////`
Have you set your shield's MAC_ADDRESS
properly? It might be written on a sticker on the shield. DE:AD:BE:EF:FE:FE
is a sort of (joke) placeholder address.
Have you tested your Ethernet shield without DCC++ to make sure it works? There should be some examples in the IDE.