Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Paul_B

Pages: 1 ... 14 15 [16] 17 18 ... 20
226
OLEDs / Re: NHD-0420CW With PIC32MX Controller
« on: May 12, 2015, 09:37:32 AM »
Excellent, thank you for the clean wiring diagram  ;)

The good news is that your wiring is correct, the issue must be within your code.

Your initialization appears to be correct, I suspect the problem is how your SPI is configured.

SPI Example:

Code: [Select]
case 2:   
              temp = 0xF8;
              for(i=0;i<8;i++)
              {
                digitalWrite(SCLK, LOW);
                if((temp&0x80)>>7==1)
                {
                  digitalWrite(SDIN, HIGH);
                }
                else
                {
                  digitalWrite(SDIN, LOW);
                }
                temp = temp << 1;
                digitalWrite(SCLK, HIGH);
              }
 
              for(i=0;i<4;i++)
              {
                digitalWrite(SCLK, LOW);
                if((c&0x01)==1)
                {
                  digitalWrite(SDIN, HIGH);
                }
                else
                {
                  digitalWrite(SDIN, LOW);
                }
                c = c >> 1;
                digitalWrite(SCLK, HIGH);
              }
              for(i=0;i<4;i++)
              {
                digitalWrite(SCLK, LOW);
                digitalWrite(SDIN, LOW);
                digitalWrite(SCLK, HIGH);
              }
              for(i=0;i<4;i++)
              {
                digitalWrite(SCLK, LOW);
                if((c&0x01)==1)
                {
                  digitalWrite(SDIN, HIGH);
                }
                else
                {
                  digitalWrite(SDIN, LOW);
                }
                c = c >> 1;
                digitalWrite(SCLK, HIGH);
              }
              for(i=0;i<4;i++)
              {
                digitalWrite(SCLK, LOW);
                digitalWrite(SDIN, LOW);
                digitalWrite(SCLK, HIGH);
              }
              break;
  }

If you have an oscilloscope on hand I highly recommend checking your data lines and posting some screen shots.

227
TFTs / Re: Enabling Built In Self Test - BIST
« on: May 12, 2015, 09:08:29 AM »
Hello,

I'm sorry, the BIST (Built In Self Test) pin is not accessible through the FPC cable.

228
OLEDs / Re: NHD-0420CW With PIC32MX Controller
« on: May 12, 2015, 08:05:22 AM »
Hello Docmur,

Thank you for reaching out, can you please post your full pin-out.

Based on the configuration you listed below it would appear that you have forgotten to Gnd BS0-BS2 (MPU interface pin selection).

Next, your LCD init function does not appear to be complete. I recommend taking a look the the following example Arduino code for that particular display.

https://github.com/NewhavenDisplay/NHD_US2066

Hope this helps!



229
Vacuum Fluorescent Displays / Re: "C-20-503F" vfd NEWHAVEN
« on: May 12, 2015, 07:49:14 AM »
Hello,

Thank you for reaching out! I'm sorry, unfortunately we do not sell that particle VF-Display. However if you link the datasheet I might be able to find a comparable replacement.


230
OLEDs / Re: OLED dark horizontal bands
« on: May 08, 2015, 02:14:30 PM »
Hello Edwin,

Thank you for reaching out, a quick way to verify is to move the location of the 'balls'. If the dark horizontal bands appear in the new location there is an issue with your code.

Please post the updated pictures once the changes have been made, we can then debug further  ;)

231
Character LCDs / Re: NHD-C0220Biz and Arduino/Teensy3.1
« on: May 08, 2015, 08:19:17 AM »
Hello,

There are no discrepancies between the mechanical drawing pin connection (page 3) and pin description / wiring diagram (page 4).

Below is some example code for that display written for the Arduino:

Code: [Select]
#include <Wire.h>

int RES = 22;
int ASDA = 20;
int ASCL = 21;

unsigned char text1[]={"  Newhaven Display  "};
unsigned char text2[]={" Clear Display Test "};
unsigned char text3[]={"    COG  Display    "};
unsigned char text4[]={"  2x20  Characters  "};

const char slave2w = 0x3C;  //3E for CiZ (0x7C shifted over 1 bit)  //3C for BiZ (0x78 shifted over 1 bit)
const char comsend = 0x00;
const char datasend = 0x40;
const char line2 = 0xC0;

void show(unsigned char *text)
{
  int n, d;
  d=0x00;
  Wire.beginTransmission(slave2w);
  Wire.write(datasend);
  for(n=0;n<20;n++)
  {
    Wire.write(*text);
    ++text;
  }
  Wire.endTransmission();
}

void nextline(void)
{
  Wire.beginTransmission(slave2w);
  Wire.write(comsend);
  Wire.write(line2);
  Wire.endTransmission();
}

void cleardisplay(void)
{
  Wire.beginTransmission(slave2w);
  Wire.write(comsend);
  Wire.write(0x01);
  Wire.endTransmission();
}

void CiZ_init()
{
  Wire.beginTransmission(slave2w);
  Wire.write(comsend);
  Wire.write(0x39);
  delay(1);
  Wire.write(0x14);
  Wire.write(0x70);
  Wire.write(0x5E);
  Wire.write(0x6D);
  Wire.write(0x0C);
  Wire.write(0x01);
  Wire.write(0x06);
  Wire.endTransmission();
}

void setup()
{
  pinMode(RES, OUTPUT);
  pinMode(ASCL, OUTPUT);
  pinMode(ASDA, OUTPUT);
  digitalWrite(RES, HIGH);
  //delay(10);
  //digitalWrite(ASCL, LOW);
  //digitalWrite(ASDA, LOW);
  //delay(10);
  Wire.begin();
  delay(10);
  CiZ_init();
  delay(5);
}

void loop()
{
  show(text1);
  nextline();
  show(text2);
  delay(1500);
  cleardisplay();
  delay(2);

  show(text3);
  nextline();
  show(text4);
  delay(1500);
  cleardisplay();
  delay(2);
}

Please triple check your wiring and follow along with the code listed above.

Thanks!

[attachment deleted by admin]

232
Customer Projects / Re: Custom Call Blocker
« on: May 08, 2015, 07:36:23 AM »
Brilliant, thank you for sharing Mark!

233
Character LCDs / Re: NHD-C0220BiZ-FSW-FBW-3V3M I2C not working.
« on: May 06, 2015, 10:32:35 AM »
Hello Fraryb,

Below is some example code for that display written for the Arduino  ;)

Code: [Select]
#include <Wire.h>

int RES = 22;
int ASDA = 20;
int ASCL = 21;

unsigned char text1[]={"  Newhaven Display  "};
unsigned char text2[]={" Clear Display Test "};
unsigned char text3[]={"   March 27, 2014   "};
unsigned char text4[]={"   Michael LaVine   "};

const char slave2w = 0x3C;  //3E for CiZ (0x7C shifted over 1 bit)  //3C for BiZ (0x78 shifted over 1 bit)
const char comsend = 0x00;
const char datasend = 0x40;
const char line2 = 0xC0;

void show(unsigned char *text)
{
  int n, d;
  d=0x00;
  Wire.beginTransmission(slave2w);
  Wire.write(datasend);
  for(n=0;n<20;n++)
  {
    Wire.write(*text);
    ++text;
  }
  Wire.endTransmission();
}

void nextline(void)
{
  Wire.beginTransmission(slave2w);
  Wire.write(comsend);
  Wire.write(line2);
  Wire.endTransmission();
}

void cleardisplay(void)
{
  Wire.beginTransmission(slave2w);
  Wire.write(comsend);
  Wire.write(0x01);
  Wire.endTransmission();
}

void CiZ_init()
{
  Wire.beginTransmission(slave2w);
  Wire.write(comsend);
  Wire.write(0x39);
  delay(1);
  Wire.write(0x14);
  Wire.write(0x70);
  Wire.write(0x5E);
  Wire.write(0x6D);
  Wire.write(0x0C);
  Wire.write(0x01);
  Wire.write(0x06);
  Wire.endTransmission();
}

void setup()
{
  pinMode(RES, OUTPUT);
  pinMode(ASCL, OUTPUT);
  pinMode(ASDA, OUTPUT);
  digitalWrite(RES, HIGH);
  //delay(10);
  //digitalWrite(ASCL, LOW);
  //digitalWrite(ASDA, LOW);
  //delay(10);
  Wire.begin();
  delay(10);
  CiZ_init();
  delay(5);
}

void loop()
{
  show(text1);
  nextline();
  show(text2);
  delay(1500);
  cleardisplay();
  delay(2);

  show(text3);
  nextline();
  show(text4);
  delay(1500);
  cleardisplay();
  delay(2);
}

Finally double check that your connections are correct, see page 4 in the displays datasheet.

http://www.newhavendisplay.com/specs/NHD-C0220BiZ-FSW-FBW-3V3M.pdf

Please keep us posted on your progress!

234
Character LCDs / Re: NHD-0216SZ-FSW-FWB incorrect connection
« on: May 01, 2015, 09:50:04 AM »
Hello,

If you have an oscilloscope handy that will do the trick  ;)

Since the display was operating normally before you misaligned the connector unfortunately it would appear that your microcontroller is at fault.

235
Character LCDs / Re: NHD-0216SZ-FSW-FWB incorrect connection
« on: May 01, 2015, 08:32:06 AM »
Hello,

It is definitely a possibility, how long did you have the misaligned connector on your PIC microcontroller?

Thanks!

236
Character LCDs / Re: NHD-0216SZ-FSW-FWB incorrect connection
« on: April 30, 2015, 07:54:15 AM »
Hello,

I recommend testing the continuity of your display and connector using a DMM.

Please let me know the results of your test  :)

237
Customer Projects / Re: Parallax Bs2P serial LCD code
« on: April 28, 2015, 12:35:35 PM »
Hello Chris,

Thank you so much for sharing! I'm sure your sample code will come in handy for Parallax users  8)

238
OLEDs / Re: Continuation Bit SSD1305
« on: April 28, 2015, 08:33:27 AM »
Hello,

The CO (Continuation) signal is just telling the display that there is going to be continuous I2C transmission. Rather than sending a start condition before each byte.
 
You can think of CO as a short cut,  e.g. instead of sending a start condition every time you wish to send continuous data you just set CO.  8)




239
Graphic LCDs / Re: Backlight current limiting resistor
« on: April 28, 2015, 08:20:38 AM »
Hello,

NHD-C12864A1Z-FS(RGB)-FBW-HT1 is a COG display, however the glass is attached to a pcb which contains current limiting resistors, please see page 3 in the displays datasheet.

http://www.newhavendisplay.com/specs/NHD-C12864A1Z-FSRGB-FBW-HT1.pdf




240
Graphic LCDs / Re: NHD-C12864A1Z-FS(RGB)-FBW-HT1 heater
« on: April 28, 2015, 08:03:48 AM »
Hello,

Thanks for reaching out. There are multiple ways to control the displays heater.

1. The simplest method is to apply +12V to pin 14 and Gnd to pin 1.

2. Second you can use an external circuit to control the heater (see page 5), using a heater circuit can be energy efficent and can be configured to accommodate a variety of energy requirements.

Hope this helps!

Pages: 1 ... 14 15 [16] 17 18 ... 20