Pages: [1]   Go Down
Author Topic: ethershield and LiquidCrystal HD44780 not working  (Read 440 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 23
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,
I have an Arduino with ethershield working, and the same Arduino with an HD44780 display working.
When I put those together on one Arduino, the display doesn't show anything. The ethershield is working fine.

The code only contains a "Hello World" in the display, and an IP address for the ethershield, so it's pingable.

I've read about the pin's the ethershield uses: 10, 11, 12, and 13 (SPI)
http://arduino.cc/en/Main/ArduinoEthernetShield
Default LiquidCrystal uses pin 11 and 12 also, but I've changed that and tested it separately with success.

Now I'm stuck  :-/

Does anybody have the same setup managed to get it working?
Logged

0
Offline Offline
Sr. Member
****
Karma: 5
Posts: 476
what?
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Boomy
Code:
#include <LiquidCrystal.h>
char buffer[20];

LiquidCrystal lcd(8, 9, 4, 5, 6, 7); // <--- This is the important Line
                                //        that defines the LCD Pins

void setup()
{
  lcd.begin(16, 2);
}

void loop() {

  lcd.setCursor(0, 0);
  sprintf(buffer,"Analog 0 = %d   ",1023-analogRead(0)); // Which Button??
  lcd.print(buffer);
  delay(10);
}

I have the lcd shield and ethernet shield working together, my lcd uses the lower digi pins though
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 23
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you for sharing your sollution P18F4550.
I've also managed now to work both the display and ethernet together.

I also found out (at least I think I did smiley-wink why it was not working for me.
I changed the ports 11 and 12 to unused ports, as the ethernet board uses 10, 11, 12 and 13.
But the problem was in the lower port range.
I can't use port 3 when the ethernet board is connected.

Strange, as it's an original arduino ethershield board and the documentation doesn't mention pin3 being used.

Logged

Pages: [1]   Go Up
Jump to: