Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Running a HD44780 without a shift reg


  • Please log in to reply
3 replies to this topic

#1 AJB2K3

AJB2K3

    Advanced Member

  • Members
  • PipPipPip
  • 46 posts

Posted 18 July 2011 - 05:08 PM

I'm trying to run a 20X4 HD44780 lcd without a shift reg but I'm going no ware fast.
I've downloaded the latest version from codeplex and extracted to a new folder but this is where I epic Fail.
I've wired it up as http://arduino.cc/en...l/LiquidCrystal

What do I do now ?


What I want to do is the netduino version of
#include <LiquidCrystal.h>
LiquidCrystal lcd(2, 4, 7, 8, 9, 12);

void setup() {
  // set up the LCD's number of columns and rows: 
  lcd.begin(20, 4);
  // Print a message to the LCD.
  lcd.print("=== Intergate 1 ====");
}

void loop() {
  // set the cursor to column 0, line 1
  // (note: line 1 is the second row, since counting begins with 0):
  lcd.setCursor(0, 1);
  // print the number of seconds since reset:
  lcd.print(millis()/1000);
    lcd.setCursor(0, 2);
  lcd.print("Lighting controller");
  lcd.setCursor(0, 3);
  lcd.print("Node 198.165.0.255");
}

"Maybe it's because you're a crap programmer"


#2 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 18 July 2011 - 05:14 PM

AJB2K3, could you upload your solution (Visual Studio Project) so we can see something, and perhaps also explain how you've connected stuff? This way it's kinda hard to help, not knowing what's wrong ;) -edit- ah you posted some code. going to bake you a sample
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#3 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 18 July 2011 - 05:53 PM

try the attached solution. Still, like I said on chat, this method requires 6 pins of your Netduino which can't be used for any other purpose. If you use SPI (with the bitshift register) you use only 3 wires, of which 1 can't be used for other purposes. If you use I2C, you can even do it with only 2 wires, without locking out pins for other purposes.

Attached Files


"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#4 AJB2K3

AJB2K3

    Advanced Member

  • Members
  • PipPipPip
  • 46 posts

Posted 18 July 2011 - 06:18 PM

Thank you very much.

"Maybe it's because you're a crap programmer"





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.