Ethernet Shield on UNO

cyber7 Apr 3, 2018

  1. cyber7

    cyber7 TrainBoard Member

    20
    8
    7
    Hi Guys
    I am trying to understand why the Arduino Uno can not use the Ethernet Shield. Is there anything documented on the reasoning?
     
  2. Jimbo20

    Jimbo20 TrainBoard Member

    274
    178
    11
    Hi,

    Presumably you mean that the ethernet shield is not supported on the Uno when using DCC++?

    Looking at the pinouts it seems that the Ethernet shield uses pin 10 to enable the ethernet chip.

    DCC++ uses the Arduino internal timer 0C1B (also pin 10) for an output to the motor drvr bd and the timer pin cannot be changed.

    I guess it may be possible to cut/bend the Ethernet shield pin 10 and link it to a spare pin on the Uno, and change the code appropriately? I'm not sure....

    Jim
     
  3. Jimbo20

    Jimbo20 TrainBoard Member

    274
    178
    11
    .....What seems to complicate things further is that a second timer is used on DCC++; and because of another conflict with the ethernet shield (pin 4), on the Mega the timer used is 0C3B (pin 2), but on the Uno it is 0C0B (pin 5 Uno / pin 4 Mega). So you may need to change the code in this area as well as the pin 10 issue mentioned in my last post. (The Uno doesn't have timer 0C3B)

    Jim
     

Share This Page