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

LCD BC1602AYPLEH - problem


  • Please log in to reply
8 replies to this topic

#1 javer

javer

    New Member

  • Members
  • Pip
  • 3 posts

Posted 03 August 2011 - 07:23 AM

Hi,

I have this LCD display http://www.soselectr...71&artnum=52951 and I cant get it working. I tried to connect it according this tutorial http://10rem.net/blo...th-the-netduino (pin order on lcd seems to be same as in tutorial) and then I tried to program it with MicroLiquidCrystal library (http://microliquidcr...l.codeplex.com/) but it did nothing, only backlight works.
using System.Threading;
using MicroLiquidCrystal;
using Microsoft.SPOT.Hardware;
using SecretLabs.NETMF.Hardware.Netduino;

namespace HelloWorld
{
    public class Program
    {
        public static void Main()
        {


            var lcdProvider = new GpioLcdTransferProvider(
                              Pins.GPIO_PIN_D12,  // RS
                              Pins.GPIO_NONE,     // RW
                              Pins.GPIO_PIN_D11,  // enable
                              Pins.GPIO_PIN_D9,   // d0
                              Pins.GPIO_PIN_D8,   // d1
                              Pins.GPIO_PIN_D7,   // d2
                              Pins.GPIO_PIN_D6,   // d3
                              Pins.GPIO_PIN_D5,   // d4
                              Pins.GPIO_PIN_D4,   // d5
                              Pins.GPIO_PIN_D3,   // d6
                              Pins.GPIO_PIN_D2    // d7
                              );  

            

            // create the LCD interface
            var lcd = new Lcd(lcdProvider);
            lcd.Backlight = true;
            


            // set up the LCD's number of columns and rows: 
            lcd.Begin(16, 2);

            // Print a message to the LCD.
            lcd.Write("hello, world!");

            while (true)
            {
                // set the cursor to column 0, line 1
                lcd.SetCursorPosition(0, 1);

                // print the number of seconds since reset:
                lcd.Write((Utility.GetMachineTime().Ticks / 10000).ToString());

                Thread.Sleep(100);
            }
        }
    }
}

Thank you for help

#2 Mario Vernari

Mario Vernari

    Advanced Member

  • Members
  • PipPipPip
  • 1768 posts
  • LocationVenezia, Italia

Posted 03 August 2011 - 11:40 AM

Javer, welcome in the forum. Are you sure about the wiring? The first thing is to check every wire once again. Cheers
Biggest fault of Netduino? It runs by electricity.

#3 javer

javer

    New Member

  • Members
  • Pip
  • 3 posts

Posted 07 August 2011 - 06:02 PM

Javer, welcome in the forum.
Are you sure about the wiring? The first thing is to check every wire once again.
Cheers


Hi,

I think that wiring is ok, I checked that twice but its still not working. Im afraid that I have destroyed LCD by connecting 5V on GND and GND to 5V. Do you think it can be destroyed by wrong wiring ?

Here is picture of my wiring
Posted Image

Thanks

#4 Mario Vernari

Mario Vernari

    Advanced Member

  • Members
  • PipPipPip
  • 1768 posts
  • LocationVenezia, Italia

Posted 08 August 2011 - 03:37 AM

Surely the LCD module was not happy to feel its power supply inverted. Oh, well...the power inversion is one way to damage a circuit, but it could be still okay. Anyway, if the wiring is correct and the display does not show anything, probably means that it's blown off. By turning left-right the trimpot, don't you see any row made by dark blocks? Cheers
Biggest fault of Netduino? It runs by electricity.

#5 Slaven

Slaven

    New Member

  • Members
  • Pip
  • 1 posts

Posted 08 August 2011 - 08:02 PM

Surely the LCD module was not happy to feel its power supply inverted.
Oh, well...the power inversion is one way to damage a circuit, but it could be still okay.
Anyway, if the wiring is correct and the display does not show anything, probably means that it's blown off.
By turning left-right the trimpot, don't you see any row made by dark blocks?
Cheers


Hi, I have the same problem! The pins are connected according to the datasheet, the backlight works but I can't get the black squares to appear. Just to make sure, the Vss, Vdd and contrast are connected to GND and 5V ports and there should be some response on the screen regardless of the DB pins?

And I'm almost certain I didn't invert the power supply. :rolleyes:

Any ideas? Momentarily I don't have the 10K pot but instead using 4.7K resistor that should do the trick.

#6 Mario Vernari

Mario Vernari

    Advanced Member

  • Members
  • PipPipPip
  • 1768 posts
  • LocationVenezia, Italia

Posted 09 August 2011 - 03:12 AM

Uh-oh!...Your (javer) circuit is not using the 74HC595 chip!
In this case the circuit will probably does not work because the Netduino outputs swing from 0 to 3.3V, but the LCD needs up to 5V.
If you follow the Szymon example that uses the 74HC595 shift register, the same chip acts as level shifter.
Try it and probably the module is not blown off!
Cheers
Biggest fault of Netduino? It runs by electricity.

#7 Nevyn

Nevyn

    Advanced Member

  • Members
  • PipPipPip
  • 1072 posts
  • LocationNorth Yorkshire, UK

Posted 09 August 2011 - 07:08 AM

Uh-oh!...Your (javer) circuit is not using the 74HC595 chip!
In this case the circuit will probably does not work because the Netduino outputs swing from 0 to 3.3V, but the LCD needs up to 5V.

Is this correct? I read Page 12 as stating VIH should be in the range 2.2V to VDD making 3.3V acceptable for logic 1 even if the supply voltage was 5V. Have I misunderstood this?

The data sheet states the controller is S6A0069 or equivalent. Is this equivalent to the HD44780 controller?

You can use this library without the 74HC595 although it uses more pins. Peter Brown used 8 pins for data and I used the library a while ago using 4 pins for data.

If I have misunderstood the data sheet then I'd go with the 74HC595 as it acts as a level shifter for you.

Regards,
Mark

To be or not to be = 0xFF

 

Blogging about Netduino, .NET, STM8S and STM32 and generally waffling on about life

Follow @nevynuk on Twitter


#8 ninoq

ninoq

    Member

  • Members
  • PipPip
  • 15 posts

Posted 09 September 2011 - 12:12 AM

It seems I have a very similar problem to that of Slaven above. I have a 10K pot connected (Pin 3, GDM1602K from SFE) but can't elicit a row of rectangles when varying the voltage from 0 to +5V. BTW the backlight works. This thread appears to have run out - was the problem solved without using a shift register? ninoq

#9 Mario Vernari

Mario Vernari

    Advanced Member

  • Members
  • PipPipPip
  • 1768 posts
  • LocationVenezia, Italia

Posted 09 September 2011 - 04:09 AM

Well guys, I don't know what's up. BTW, the datasheets say there are two models available: 5V and 3V supply. The first one should work as usual, while the second must have a different circuit for the LCD voltage. I would check the printed mark on your module. However, I assume that all of you have checked again the wiring. Cheers
Biggest fault of Netduino? It runs by electricity.




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.