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

Netduino Plus 2 and LCD 20x4

LCD

  • Please log in to reply
17 replies to this topic

#1 eschneider999

eschneider999

    New Member

  • Members
  • Pip
  • 3 posts

Posted 17 January 2013 - 11:16 PM

I'm trying to get my LCD display working.

 

Using:

http://www.amazon.co...ils_o00_s00_i02

 

 

Wiring:

http://www.dfrobot.c...ect_DFR0154.png

 

Also looking for .NET code to run this....

 

Thanks,

Eric



#2 tim c

tim c

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

Posted 18 January 2013 - 02:24 PM

Are you connecting directly to the LCD or using something in between? I have these working on a N+2: 
 
https://www.adafruit.com/products/292
https://www.adafruit.com/products/198
 
I2C to a 20x4 LCD and it works great.

 

I think it is the same LCD. I will be posting a code sample this weekend and will up date you as to were you can find it.

 

Also - if you are using I2C as your hookup diagram shows you need to go into the N+2 ports SC and SD. 



#3 supra

supra

    Advanced Member

  • Members
  • PipPipPip
  • 210 posts
  • LocationOntario, Canada

Posted 18 January 2013 - 03:03 PM

Wiring:

http://www.dfrobot.c...ect_DFR0154.png

 

 

You are connecting wrong input (yellow and green). Try digital pins



#4 JerseyTechGuy

JerseyTechGuy

    Advanced Member

  • Members
  • PipPipPip
  • 870 posts

Posted 18 January 2013 - 04:03 PM

Hi eschneider999 and welcome to the forums.

 

First, with the ND+2 you need to use the SDA and SCL pins instead of A4 & A5 pins for I2C, so you cannot use the diagram, it will not work.

 

One of the best libraries I've found for LCDs is the Microliquidcrystal library at CodePlex.  There are good examples in the download for using I2C.  If you are still stumped, let us know and we'll get you some example.

 

Good Luck and Happy Coding.



#5 eschneider888

eschneider888

    New Member

  • Members
  • Pip
  • 1 posts

Posted 18 January 2013 - 05:01 PM

Thanks guys, I will review all this and give it a try.

 

FYI: I'm a Software Engineer, but seems everything is broke for Netdruino plus 2. Seems I have to fix alot of things, and still can't get some things to build.

 

 

Also why didn't my posts show-up yesterday? Very frustrating...



#6 JerseyTechGuy

JerseyTechGuy

    Advanced Member

  • Members
  • PipPipPip
  • 870 posts

Posted 18 January 2013 - 10:23 PM

Thanks guys, I will review all this and give it a try.

 

FYI: I'm a Software Engineer, but seems everything is broke for Netdruino plus 2. Seems I have to fix alot of things, and still can't get some things to build.

 

 

Also why didn't my posts show-up yesterday? Very frustrating...

 

Not sure about the posts.  Never had a problem posting here so far and I've posted some 566 times.

 

What do you mean by "everything is broke for Netduino Plus 2".  Most ND+2 stuff is working now.  If you describe what you feel is broken perhaps we can point you in the right direction or if it is a real issue with the ND+2, perhaps this will help Chris fix the issues knowing more of your details.



#7 AxelG

AxelG

    Advanced Member

  • Members
  • PipPipPip
  • 52 posts

Posted 19 January 2013 - 01:27 AM

I used the same exact hardware on the ND and ND+ (version 1) and posed an article with light-weight driver here.



#8 eschneider999

eschneider999

    New Member

  • Members
  • Pip
  • 3 posts

Posted 19 January 2013 - 03:03 AM

Can anyone give me a wiring diagram?

 

Also; my version is 4.2

 

All the code points to 4.1 and changing to 4.2 seems to be an issue. Some classes are missing in 4.2 (SecretLabs)



#9 JerseyTechGuy

JerseyTechGuy

    Advanced Member

  • Members
  • PipPipPip
  • 870 posts

Posted 19 January 2013 - 03:21 AM

Can anyone give me a wiring diagram?

 

Also; my version is 4.2

 

All the code points to 4.1 and changing to 4.2 seems to be an issue. Some classes are missing in 4.2 (SecretLabs)

 

Wiring isn't that hard.  5V goes to 5V, GND to GND, SDA to SD and SCL to SC.



#10 Gutworks

Gutworks

    Advanced Member

  • Members
  • PipPipPip
  • 363 posts
  • LocationOttawa, Ontario

Posted 19 January 2013 - 05:11 AM

Also why didn't my posts show-up yesterday? Very frustrating...

 

Hi eschneider888 and welcome to the community! I'm sorry to hear you were having some troubles posting. Unfortunately our forums have been hit in the past with a lot of spam bots and so now before anyone can post, their membership has to be approved by a moderator. I suspect that your account was just in the process of being verified and I highly doubt you'll have any future troubles posting. 

 

Cheers,

Steve



#11 Gutworks

Gutworks

    Advanced Member

  • Members
  • PipPipPip
  • 363 posts
  • LocationOttawa, Ontario

Posted 19 January 2013 - 05:19 AM

Can anyone give me a wiring diagram?

 

Also; my version is 4.2

 

All the code points to 4.1 and changing to 4.2 seems to be an issue. Some classes are missing in 4.2 (SecretLabs)

Yes there have been some changes with the jump from 4.1 to 4.2 but with some small changes you should be able to get your 4.1 examples working after converting them to the 4.2 framework. There was a lot of work done with latest firmware (4.2.2.0) to make the Secret Labs classes more consistent and backwards compatible. If you can provide some examples where you're having some troubles, we'd be more than willing to give you hand and getting your code working again. 

 

Cheers,

Steve



#12 eschneider999

eschneider999

    New Member

  • Members
  • Pip
  • 3 posts

Posted 19 January 2013 - 05:40 AM

Sounds like I have it wired correctly.

 

Keep getting errors when starting:

 

A first chance exception of type 'System.IO.IOException' occurred in MicroLiquidCrystal.dll



#13 tim c

tim c

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

Posted 22 January 2013 - 01:49 PM

Sounds like I have it wired correctly.

 

Keep getting errors when starting:

 

A first chance exception of type 'System.IO.IOException' occurred in MicroLiquidCrystal.dll

What using statements do you have and what is in your references?

 

Also, I have found it best to NOT use a compiled DLL, but instead to use the source and include it as part of my solution. That way the DLL gets compiled for MY specific project. So, maybe try using the source for  MicroLiquidCrystal.dll instead of referencing it directly.



#14 kash

kash

    New Member

  • Members
  • Pip
  • 6 posts

Posted 31 May 2013 - 09:14 AM

Hello All,

I get the IO exception error on N+ with 4.2 update. Has anyone tried the code on N+ only?.

TIA



#15 d_rotter

d_rotter

    New Member

  • Members
  • Pip
  • 1 posts

Posted 12 June 2013 - 08:08 PM

Hello All,

 

I had the same error. The compiled DLL has also worked with my N+1, but not on the N+2. I have tried a few things, but now my 16x2-Display is working with both boards. I've simply Re-Compiled the DLL under Micro Framework 4.2 (Change it in the Project-Properties). The Code is available at Codeplex.

 

Hope it helps.



#16 Guest_jessesteinen_*

Guest_jessesteinen_*
  • Guests

Posted 15 June 2013 - 09:51 PM

I keep on struggling getting an 16x2 LCD working myself. Been doing a lot of googling and stuff, but not really getting anywhere other than having 2 lines of blocks on the display and an exception thrown.

 

My setup:

 - Netduino Plus 2 (4.2.2.2)

 - a 20x4 LCD + I2C backpack with a PCF8574T (http://cgi.ebay.nl/w...d=1015602892008)

 - display connected via 2k2 pull up resistors to the SDA/SCL pins on the Netduino.

 - MicroLiquidCrystal library with some additional PCF8574 code obtained here http://forums.netdui...-and-a-pcf8574/

 

I have tried changing the I2C address to various values (back at 0x38 now) but to no avail. I keep getting an "An unhandled exception of type 'System.IO.IOException' occurred in MicroLiquidCrystal.dll" in I2Cbus.cs here:

                int byteCount = this.Device.Execute(xacts, TimeOut);                if(byteCount < WriteBuffer.Length)                    throw new System.IO.IOException();

Any help would be much appreciated!!



#17 Guest_jessesteinen_*

Guest_jessesteinen_*
  • Guests

Posted 16 June 2013 - 07:11 AM

Meh having written the above, I just stumbled upon Bi Qin's post here http://forums.netdui...plus-2/?p=50321

Although it's for 16x2 it does work, I just need to find out how to modify it for 20x4.



#18 alesbedac

alesbedac

    Advanced Member

  • Members
  • PipPipPip
  • 63 posts

Posted 15 October 2013 - 07:22 PM

Has anybody working example code for PCF8574A and 20x4 Display ?

 

Above is description above resistor on netduinos I2c port ...but i hvae wired it directly to netduino.

 

is it correct ?

 

Thanks lot of for all your help







Also tagged with one or more of these keywords: LCD

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.