Recent Posts

Pages: [1] 2 3 ... 10
OLEDs / Re: Too much current in sleep mode
« Last post by Saurabh_B on Today at 04:58:04 PM »

Unfortunately the datasheet needs to be updated to account for the DC/DC converter.
This does not shut down when the display enters sleep mode so the voltage is constantly being stepped up.
Character LCDs / NHD-0216K1Z
« Last post by lakin on Today at 09:05:58 AM »
I can display one letter, but debugging my program I'm sending more characters than aren't displayed.  Using PIC16F886.  I'm using code close to what I read on this forum.  I've enclosed the code, doing something wrong.
The initialization is copied from code on the forum.  Also I don't understand the newline command 0xC0 ?
The program will also be used later for AD converter.  But right now I want to get the display to work.  Plus it gives me some LCD display experience.

char const text1[] = {"Roger Lakin     " };
void main(void) {
    TRISC = 0x00; //  this port is set for outputs
    TRISB = 0xF8; //  all are set to inputs except the lower three
    TRISA3 = 0; //AN3 +VREF
    TRISA5 = 1; // AN4   bit 5 set as input
    TRISB0 = 0; // enable signal output
    TRISB1 = 0; // read/write signal
    TRISB2 = 0; // register select signal
    //ADCON0 = 0x11;  //  00 0100 0 1
    //ADCON1 = 0x80;  // ADFM = 1
    //ADRESH = 0x00;  // ADC 8 & 9 off
    //ADRESL = 0x10; //  ADC 4 turned on pin 7  RA5  ADC rest off
    x = 0;
//    Init();
    PORTC = 0x00;
void DisplayInfo(){   //disp_pic
  int i;
    for (i=0;i<8;i++){
        y = 0;  // debug breakpoint
void Write(unsigned char Dat){
     PORTB = 0X00;
     PORTC = Dat;
    RSLO; // RB2=0
    RWLO;//RB1=0; //write
    EHI; // RB0
    RSHI; //RB2  data
    EHI;    //RB0=1;//EHI; //RB0
    ELO; //RB0
    //PORTC = 0x01;

void Home(){
    PORTC = 0x02;
void NextLine(){
    PORTC = 0xC0;
// write controls

void WriteCtl(){
    RWLO; //RB1
    EHI; //RB0
    ELO; //RB0
    //RWHI; //RB1
    //RSHI; //RB2

// AorD = 0 for address and 1 for data

void WriteAN(int AorD) {  // wrtAdr = 0; wrtNum = 1;

    PORTB = 0X00;
    RWLO;//RB1=0; //write
    ELO; // RB0
    if (AorD == 0) {
        RSLO; //RB2  address
    } else {
        RSHI; //RB2  data
    EHI;    //RB0=1;//EHI; //RB0
    ELO; //RB0
    //RB1=1;//RWHI; //RB1
    //RB2=1;//RSHI; //RB2

void WriteInt(unsigned char charNum){
    PORTC = charNum;
    RB2 = 0;//RSLO; // RB2
    RB1 = 0; // RWLO;  // RB1
    RB0 = 1; //EHI; // RB0
    RB0 = 0; // ELO; // RB0
    y=0; // breakpoint

void Init(){
 delay(50);    //Wait >40 msec after power is applied       
 WriteInt(0x30);  //command 0x30 = Wake up       
 delay(100);      //must wait 5ms, busy flag not available       
 WriteInt(0x30);  //command 0x30 = Wake up #2       
 delay(100);      //must wait 160us, busy flag not available       
 WriteInt(0x30);  //command 0x30 = Wake up #3       
 delay(100);      //must wait 160us, busy flag not available       
 WriteInt(0x38);  //Function set: 8-bit/1-line       
 WriteInt(0x14);//Set cursor to rightAC+1     
 WriteInt(0x0C);  //Display ON; Cursor ON       
 WriteInt(0x02);  //Entry mode set   cursor right DDRAM + 1
OLEDs / Re: Too much current in sleep mode
« Last post by luisvalseca on July 17, 2017, 09:38:23 AM »
Hi Saurabh_B,
I do not understand what you mind with "It often draws more current when its not being powered.", in my aplication, i need to sleep the microcontroller and spend the minimum possible current
while it is sleeping, but the display spend 750 uA after 0xAE command and i do not what to do , because that current is a lot when the microcontroller is sleeping.
What can i do to reduce this consumption?.

Luis Valseca

OLEDs / Re: Too much current in sleep mode
« Last post by Saurabh_B on July 17, 2017, 08:24:41 AM »

The current is being drawing by the DC/DC convertor.
It often draws more current when its not being powered.
Character LCDs / Re: Problems with a NHD‐0420H1Z‐FL‐GBW‐3V3
« Last post by Saurabh_B on July 17, 2017, 08:17:45 AM »

Can you tell me what the voltage you have going to VDD and V0 are for this display?

OLEDs / Too much current in sleep mode
« Last post by luisvalseca on July 17, 2017, 05:20:25 AM »
I am using  " NHD‐2.23‐12832UCB3 Graphic OLED Display Module ",  and it is configured as I2C, but in sleep mode, the current is about 750 uA and in the documentation of this module
must be between 3 and 15 uA. Could  someone help me to know why this happens.
Waiting for an answer, best regards

Luis Valscea

Character LCDs / Re: Problems with a NHD‐0420H1Z‐FL‐GBW‐3V3
« Last post by sask_ben on July 16, 2017, 04:10:19 PM »
I just got this display as well. I have used the 2 line NHD-0216BZ-FL-YBW display. Everything looks exactly the same and have wired it all the same but nothing is coming up on the NHD‐0420H1Z‐FL‐GBW‐3V3. Any suggestions?
Customer Projects / Re: Clock and weather display
« Last post by Paul_B on July 11, 2017, 10:50:04 AM »
Brilliant, thank you for sharing Dave! Did you spin your own PCB? I would be interested in seeing a picture of the back of the weather station  ;)
Customer Projects / Clock and weather display
« Last post by v8dave on July 11, 2017, 09:47:40 AM »
Using 2 of the 4.3" sunlight readable displays I built a display to show time and weather data.

The processors on both boards are GHI Electronics G120 with native LCD interface direct to the Newhaven LCD modules. Using .NET Microframework and C#, code for the clock and the weather was done in 1 app. The weather side has a WiFi module so this is used to auto detect which board is running and setup the display.

Additional to the weather screen is power and fridge/freezer temperatures.  ;)

The data itself is transmitted onto the network using MQTT protocol from a number of ESP8266 modules so the display simply listens for this data from the MQTT server.

Additional to the weather side is the local weather forecast from Weather Underground.

The enclosure was designed with 3D CAD software and then all front, rear and side panels made via the Front Panel Express service from Schaeffer-AG in Germany. Top quality for 1 off or small run projects. Not the cheapest option but the finished design is really good.

OLEDs / Smooth Scrolling on NHD-1.69-160128UGC3 with SEPS525
« Last post by pixel on July 06, 2017, 08:35:54 PM »
I'm working with the NHD-1.69-160128UGC3, and was hoping there may be some examples available on how to use the screen saver functionality for smooth scrolling of text and images on the display.  I would like to provide a continuing stream of text, and allow new lines to smoothly scroll on from the bottom of the screen.

I'm using the Adafruit GFX library for NHD_SEPS525 running on an Arduino Uno. 

I've been able to achieve a weak scrolling affect by re-writing all of the text on the display, but the overall affect is poor with noticed refresh lag.

Pages: [1] 2 3 ... 10