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.

Derek

Member Since 05 Aug 2010
Offline Last Active Mar 25 2011 04:36 PM
-----

Posts I've Made

In Topic: Sparkfun LCD

05 October 2010 - 11:53 PM

Hmmmm. I took a longish break from Netduino'ing as work got extremely busy but: My LCD still does nothing, this is my code: using System; using System.Threading; using Microsoft.SPOT; using Microsoft.SPOT.Hardware; using SecretLabs.NETMF.Hardware; using SecretLabs.NETMF.Hardware.Netduino; using MicroLiquidCrystal; namespace LCD_Works { public class Program { public static void Main() { // write your code here MicroLiquidCrystal.GpioLcdTransferProvider lcdProvider = new GpioLcdTransferProvider(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 ); Lcd lcd = new Lcd(lcdProvider); } } } Can anyone perhaps ID what I might be doing wrong?

In Topic: Sparkfun LCD

27 August 2010 - 01:11 AM

The only pot I have on hand is a 5k ohm...What happens if no pot?

In Topic: Sparkfun LCD

24 August 2010 - 02:22 PM

Thanks EdO! I was under the impression that the analog pins were "general purpose", as far as them being able to act as digital? Was I mistaken? The "brick shield" im using makes it pretty obvious that mapping the LCD pins to the analog ports pretty obvious. I'll check the "other" pins and try going all digital for the next round of testing.

In Topic: Sparkfun LCD

24 August 2010 - 12:24 AM

I went as far as continuity testing each pin on the LCD and matching it to its Netduino IO. Turns out the documentation was right, the pin mappings are correct. No go on the confounded LCD though. I understand my level of noobishness at this point is obscene but I would definitely appreciate any tips at this point.

In Topic: Sparkfun LCD

23 August 2010 - 02:40 AM

I am trying to send commands directly to the LCD taking queues from the Liquid Crystal.cpp/LiquidCrystal.h drivers found on the sparkfun page for this LCD. Assign IO Pins matching the seeduino brick chasis specs: LCD_RS = new OutputPort(Pins.GPIO_PIN_D10,false); LCD_E = new OutputPort(Pins.GPIO_PIN_D12,false); LCD_D4 = new OutputPort(Pins.GPIO_PIN_D13, false); LCD_D5 = new OutputPort(Pins.GPIO_PIN_A0, false); LCD_D6 = new OutputPort(Pins.GPIO_PIN_A1, false); LCD_D7 = new OutputPort(Pins.GPIO_PIN_A2, false); LCD_RS.Write(false); Send 0x28, function set: 4 bits, 1 line, 5x8 dots LCD_D7.Write(false); // 0 LCD_D6.Write(false); // 0 LCD_D5.Write(true); // 1 LCD_D4.Write(false); // 0 LCD_E.Write(true); LCD_E.Write(false); Thread.Sleep(50); LCD_D7.Write(true); // 1 LCD_D6.Write(false); // 0 LCD_D5.Write(false); // 0 LCD_D4.Write(false); // 0 LCD_E.Write(true); LCD_E.Write(false); Send 0x0C 0000 1100// display control: turn display on, cursor off, no blinking Thread.Sleep(50); LCD_D7.Write(false); //0 LCD_D6.Write(false); //0 LCD_D5.Write(false); //0 LCD_D4.Write(false); //0 LCD_E.Write(true); LCD_E.Write(false); Thread.Sleep(50); LCD_D7.Write(true); //1 LCD_D6.Write(true); //1 LCD_D5.Write(false); //0 LCD_D4.Write(false); //0 LCD_E.Write(true); LCD_E.Write(false); Then send CMD DISP_ON = 0x01 then send CMD CLR_DSP = 0x02. No cigar. Still shows the top row of LCD chars as solid blocks. Even when I blank out the Netduino code, the LCD displays these blocks on the first row. Is it possible that I have a bad LCD?

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.