Library updated to version 1.0.1, which corrects a minor initialization bug that should happend, added some additional comments to the code and verify before sending commands to the LCD that it has been initialised correctly. Available for download in its regular place https://bitbucket.org/fmalpartida/lcd_c0220biz-display-driver/wiki/Home.
The library has moved to version V1.1.0. It adds a new generic ST7036 driver class and each particular display can inherit or extend this class. Now the NHD-C0220BIZ is implemented as a sub-class of the ST7036 driver. The methods on the ST7036 methods are not virtual to minimise the RAM usage, careful if using pointers to the class.
It also has an LCD API 1.0 pure abstract class to simplify development of other LCDs. It should only be used for development and to check LCD API compliance, if not it will consume about 100 bytes of RAM. When deploying a new driver class derived from the LCD API class, remove inheritance from it.
Hi Malpartida,
i found your online shop and it is verywell
i tring to use your library on an ST7032i display, but whit no success.
i read in you documentation that this controller "should" be compatible.
May you help me on it ?
The i2c address respond to 12c_Scanner on 0x3E, i changed it in your temperature demo sketch.
On the ide serial monitor i receive the temperature and the Ram value also (1538), but the lcd are always black, the yellow backlight led are on, the display also i think are on, because it is black (it is a N-negative lcd, the background is black)
I tryed with BoosterON and 2 capacitor, and with booster off (in this case i use +5V on VOut)
Try to shiftright the address when initialising the LCD, i.e. Use address (0x3E >> 1), if I remember corectly, sytronix specifies the address with the read bit included. Have you tried in the arduino SDK to write to the LCD on that address and go an ACK?
If there is no joy, I will take a look at the library and datasheet tomorrow and get back.
i found a sketch that work,
tomorrow i check your library compared to this sketch.
i post the link, so it may help other person
if we understand the difference may update your library and Officially insert the ST7032i support
p.s. in your comment in the library you write that the display xxx.xxxx 3V3, means a 3,3V diplay.
This is not correct. All the diplay that you mention are 3V, the other "3" means 3V led backlight
3V= 3V lcd no backlight
3V3= 3V lcd with 3(fV) led backlight
yes, you are right, but if you look the NHD-C0216CiZ-FSW-FBW-3V3 model, I'm right
the name is the same 3V3 and the datasheet is different, no problem. I use it on 5V and work
the controller itself support 2.7 to 5.5V (for logic part)
I was looking briefly at the datasheet and if you initialize the library with the base I2C address 7C, it may work since the library internally converts what's in the datasheet to the internal AVR I2C address scheme.
Have you looked at the code in the link you posted?
i made other test also, i removed the bitshift right operator from all libraries, and directly specified 0x3E (this is my real address) but no work
i will continue.
p.s. often, like in my case, the lcd do not have datasheet or it is not simple found it.
so the only way for found the address is scanning the i2c bus.
Whit your bitshif tecnique will be difficult use the library.
i think it is better do not use it, and found the real i2c address for every lcd.
If this is supposed to be LCD initialization code you should be aware that its sequence does not follow the recommendations put forth in the data sheet. It doesn't matter how many libraries do it this way, it is still incorrect. No matter how many times it 'works', do not be surprised if you come across a situation where it fails.
the init process are the entire void that i posted:
void ST7036::init ()
not only the part that you post.
I add your 3 lines for test, because on the japanease sketch my display work, and the difference from it and the original fm library are this 3 lines.
I am trying to Pull the data that is being sent to from a furnace control board to a new haven display via the serial RX pin and get a nice clean output that is sent to a computer via the serial TX on the USB. Does anyone have any suggestions?
After a struggle i have managed to get this library working with a newhaven COG LCD NHD-C0216CiZ-FSW-FBW-3V3
the only part i am now struggling with is the Contrast setting.
The specified command
lcd.setContrast(14);
seems to do nothing. Supposedly it has a range between 0-15 but there is no change.
I do not understand the implementation in the data sheet of the follower circuit as this seems to be tied to the follower settings.
Has anyone got any experience using this library successfully that may have an answer?
I try to use the japanease sketch and Testato library but my project don't run.
I have the problem when I send the buffer for i2c, the program take a break in the line Wire.endTransmission(); only when I turn off my LCD the loop run.
PLEASE HELP!! I change the pull up resistor (2,2 Kohm and 10 Kohm) and double check my diagram wiring, but the problem persist.
#include <Wire.h>
void setup(){
pinMode(2, OUTPUT);
pinMode(13, OUTPUT);
//Select device
digitalWrite(2, HIGH);
delay(10);
digitalWrite(2, LOW);
delay(50);
//start i2c
Wire.begin();
delay(10);
Wire.beginTransmission(0x7c);
Wire.write(0x00);
Wire.write(0x38);
Wire.endTransmission();// I have problem in this line the project wait here, only when I turn off my LCD the program run
}
void loop(){
digitalWrite(13, HIGH);
delay(500);
digitalWrite(13, LOW);
delay(500);
}