Well, as I mentioned here, I bought the Seeedstudio Electronic brick – Starter kit. It includes a handy shield for working with the various components included with the Starter kit.
One of the components is the 16×2 LCD display.
While this is kind of handy… it was a real nuisance to get sorted out and working with the Netduino. I think it’s a combination of many factors… 1 being that there aren’t a lot of libraries ready yet for the Netduino… and 2, I’m not that handy with all this stuff yet.
But… I finally did manage to make it work. After much poking, prodding, downloading of projects, tweaking of code, and fortunately, no burnt offerings (in the way of fried components). It works!
To make this work…
First, go here, and download the MicroLiquidCrystal_20100905.zip file. You can find it at the bottom of the post (from Szymon, a forum member here… Thanks!)
Then, load up your project. Use the GpioLiquidCrystalTransferProvider as your provider.
Finally, setup your provider code as follows:
GpioLiquidCrystalTransferProvider lcdProvider = new GpioLiquidCrystalTransferProvider(Pins.GPIO_PIN_D10,
Pins.GPIO_PIN_D11,
Pins.GPIO_PIN_D12,
Pins.GPIO_PIN_D13,
Pins.GPIO_PIN_A0,
Pins.GPIO_PIN_A1,
Pins.GPIO_PIN_A2
);
LiquidCrystal lcd = new LiquidCrystal(lcdProvider);
And, you’ll end up with a screen like the one above…
Please keep in mind. Due to the way this LCD works, you can’t control certain features. For instance, I don’t think you can control the Backlight, or the On/Off status of the LCD from code (there are hard switches on the LCD board).
And the library doesn’t have all the cool features yet of an aged library (scrolling text, or blinking text, etc). But… considering the Netduino has only been out for a short time… I’m happy for now!
7 responses so far ↓
1 Szymon // Sep 6, 2010 at 4:24 pm
Hi,
I’m glad that you found my library useful. Let me know if you run into any issues or have sugestions how to improve the library.
2 Bill // Sep 28, 2010 at 8:27 pm
Would it be possible for you to post your complete program.cs? I’ve purchased the same starter kit, and downloaded the library from Mr. Szymon. Unfortunately I do not see where exactly your snippet is supposed to go in the program. When I paste it into my main it is unable to resolve GpioLiquidCrystalTransferProvider even if I specify using MicroLiquidCrystal; Thanks for blazing the way on this. :)
3 Eric // Sep 28, 2010 at 8:34 pm
Sure… I’ll try to get it published later this week…
4 Bill // Oct 3, 2010 at 9:25 am
Never mind, I got it working. The library you link to changed the name of the LCD provider object, hence why it wasn’t working.
5 Eric // Oct 3, 2010 at 1:18 pm
Thanks for the update. I haven’t got to it yet… Still trying to finish up documenting another project (and waiting for the Netduino Plus to arrive).
6 Netduino, utiliser le LCD du starter kit | cyrilgrand // Nov 5, 2010 at 5:06 pm
[...] http://microliquidcrystal.codeplex.com/http://brick-labs.com/netduino/268/using-a-lcd-with-the-netduino/http://forums.netduino.com/index.php?/topic/281-seeeduino-lcd/ This entry was posted in Netduino [...]
7 Keith // Nov 5, 2010 at 6:26 pm
Eric,
First of all thanks for putting this posting this. I must be missing something because mine just doesn’t do anything! You plugged the shield that came with the brick kit directly into the Netduino correct? You didn’t wire each pin seperately? I am assuming after the code you have above you called lcd.begin(16,2) and lcd.write(….) is that correct?
Thanks,
Keith
Leave a Comment