Electronic – arduino – RGB control via website

arduinoethernet

I followed a simple tutorial on setting up an RGB LED. The LED uses pins 11, 12 and 13. Via the serial interface I can issue commands such as the following:

r5g7b9

The letters activate the color, and the number immediately after the letter specifies the brightness of the color.

That worked just fine. I then decided to find a way of controling my RGB project from a web interface.
To make the connection to the internet, I mounted my Ethernet shield on my Arduino Uno, included a MAC and server IP address etc.

In my setup function, when I call ethernet.begin(), I get very strange combined effects.

  • The red aspect of my LED is permanently on
  • My sketch no longer responds to my input

Can anyone offer any ideas why a call to ethernet.begin() would have such negative effects, please ?

Best Answer

As Olin said, the Arduino talks to the Ethernet shield using those pins - the SPI bus. See here. Try using different pins for the LEDs.