Forum >I2C 1602 LCD not working
I2C 1602 LCD not working
pavgud 2011-05-08 02:57:13 14008 Views19 Replies I have problem making this I2C LCD (http://www.dfrobot.c...&product_id=135) to work with netduino. I attached two photos to show the wiring (http://forums.netduino.com/index.php?/topic/1795-i2c-lcd-not-working/). I use the following code:
I2CDevice lcd = new I2CDevice(new I2CDevice.Configuration(0x27, 400));
int bytesTransferred = 0;
string hellow = "hellow";
System.Text.UTF8Encoding encoder = new System.Text.UTF8Encoding();
byte[] bytesToSend = encoder.GetBytes(hellow);
I2CDevice.I2CTransaction[] writeCommandAction = new I2CDevice.I2CTransaction[] {I2CDevice.CreateWriteTransaction(bytesToSend) };
bytesTransferred = lcd.Execute(writeCommandAction, 1000);
Debug.Print("TRANSF> " + bytesTransferred.ToString());
Debug.Print("TOSEND> " + bytesToSend.Length.ToString());
I tried this code (http://code.tinyclr....lcd1602-module/) as well but without success.
When I connect USB to netduino, display's light powers on and the first line can be seen (Powered.jpg). Beyond that nothing happens.
I2CDevice lcd = new I2CDevice(new I2CDevice.Configuration(0x27, 400));
int bytesTransferred = 0;
string hellow = "hellow";
System.Text.UTF8Encoding encoder = new System.Text.UTF8Encoding();
byte[] bytesToSend = encoder.GetBytes(hellow);
I2CDevice.I2CTransaction[] writeCommandAction = new I2CDevice.I2CTransaction[] {I2CDevice.CreateWriteTransaction(bytesToSend) };
bytesTransferred = lcd.Execute(writeCommandAction, 1000);
Debug.Print("TRANSF> " + bytesTransferred.ToString());
Debug.Print("TOSEND> " + bytesToSend.Length.ToString());
I tried this code (http://code.tinyclr....lcd1602-module/) as well but without success.
When I connect USB to netduino, display's light powers on and the first line can be seen (Powered.jpg). Beyond that nothing happens.
2013-07-06 02:22:54 Hi.
I'm not familiar with Netduino.but i want to try it.
And you can give me more information about your board.
I probably need some days to try.Would you mind?
L_JESSIE
I'm not familiar with Netduino.but i want to try it.
And you can give me more information about your board.
I probably need some days to try.Would you mind?
L_JESSIE 2013-07-06 02:22:54 Hi.
I'm not familiar with Netduino.but i want to try it.
And you can give me more information about your board.
I probably need some days to try.Would you mind?
L_JESSIE
I'm not familiar with Netduino.but i want to try it.
And you can give me more information about your board.
I probably need some days to try.Would you mind?
L_JESSIE 2013-07-05 23:13:24 Hey,
thanks for your answers!
The pontimeter are not the Problem :( i have try it..
On my Arduino it works fine but i wont to run it on my Netduino like pavgud.
Thats actually my problem :(
bi0s
thanks for your answers!
The pontimeter are not the Problem :( i have try it..
On my Arduino it works fine but i wont to run it on my Netduino like pavgud.
Thats actually my problem :(
bi0s 2013-07-05 23:13:24 Hey,
thanks for your answers!
The pontimeter are not the Problem :( i have try it..
On my Arduino it works fine but i wont to run it on my Netduino like pavgud.
Thats actually my problem :(
bi0s
thanks for your answers!
The pontimeter are not the Problem :( i have try it..
On my Arduino it works fine but i wont to run it on my Netduino like pavgud.
Thats actually my problem :(
bi0s 2013-07-05 20:15:37 [quote="bi0s"]
I have the same Problem :( Can you please make a Screen and publish a litte example code ?
[/quote]
Hi,you can try this code.
[url=https://www.dfrobot.com/wiki/index.php/I2C/TWI_LCD1602_Module_(Gadgeteer_Compatible)_(SKU:_DFR0063)]https://www.dfrobot.com/wiki/index.php/I2C/TWI_LCD1602_Module_(Gadgeteer_Compatible)_(SKU:_DFR0063)[/url]
And not forget download The Arduino I2C LCD library.You can download it on this page.
[url=http://wiki.dfrobot.com.cn/index.php/(SKU:DFR0063)IIC_LCD1602_display_module_%E5%85%BC%E5%AE%B9Gadgeteer]http://wiki.dfrobot.com.cn/index.php/(SKU:DFR0063)IIC_LCD1602_display_module_%E5%85%BC%E5%AE%B9Gadgeteer[/url]
Hope you can succeed.
L_JESSIE
I have the same Problem :( Can you please make a Screen and publish a litte example code ?
[/quote]
Hi,you can try this code.
[url=https://www.dfrobot.com/wiki/index.php/I2C/TWI_LCD1602_Module_(Gadgeteer_Compatible)_(SKU:_DFR0063)]https://www.dfrobot.com/wiki/index.php/I2C/TWI_LCD1602_Module_(Gadgeteer_Compatible)_(SKU:_DFR0063)[/url]
And not forget download The Arduino I2C LCD library.You can download it on this page.
[url=http://wiki.dfrobot.com.cn/index.php/(SKU:DFR0063)IIC_LCD1602_display_module_%E5%85%BC%E5%AE%B9Gadgeteer]http://wiki.dfrobot.com.cn/index.php/(SKU:DFR0063)IIC_LCD1602_display_module_%E5%85%BC%E5%AE%B9Gadgeteer[/url]
Hope you can succeed.
L_JESSIE 2013-07-05 20:15:37 [quote="bi0s"]
I have the same Problem :( Can you please make a Screen and publish a litte example code ?
[/quote]
Hi,you can try this code.
[url=https://www.dfrobot.com/wiki/index.php/I2C/TWI_LCD1602_Module_(Gadgeteer_Compatible)_(SKU:_DFR0063)]https://www.dfrobot.com/wiki/index.php/I2C/TWI_LCD1602_Module_(Gadgeteer_Compatible)_(SKU:_DFR0063)[/url]
And not forget download The Arduino I2C LCD library.You can download it on this page.
[url=http://wiki.dfrobot.com.cn/index.php/(SKU:DFR0063)IIC_LCD1602_display_module_%E5%85%BC%E5%AE%B9Gadgeteer]http://wiki.dfrobot.com.cn/index.php/(SKU:DFR0063)IIC_LCD1602_display_module_%E5%85%BC%E5%AE%B9Gadgeteer[/url]
Hope you can succeed.
L_JESSIE
I have the same Problem :( Can you please make a Screen and publish a litte example code ?
[/quote]
Hi,you can try this code.
[url=https://www.dfrobot.com/wiki/index.php/I2C/TWI_LCD1602_Module_(Gadgeteer_Compatible)_(SKU:_DFR0063)]https://www.dfrobot.com/wiki/index.php/I2C/TWI_LCD1602_Module_(Gadgeteer_Compatible)_(SKU:_DFR0063)[/url]
And not forget download The Arduino I2C LCD library.You can download it on this page.
[url=http://wiki.dfrobot.com.cn/index.php/(SKU:DFR0063)IIC_LCD1602_display_module_%E5%85%BC%E5%AE%B9Gadgeteer]http://wiki.dfrobot.com.cn/index.php/(SKU:DFR0063)IIC_LCD1602_display_module_%E5%85%BC%E5%AE%B9Gadgeteer[/url]
Hope you can succeed.
L_JESSIE 2013-07-05 19:54:20 i agree with alnath, try adjusting it with the potentiometer (blue box) on the back of the LCD. and see if it works better.
If it is I2C problem, I suggest you try some I2C scanner script to see if it is found. I'm not familiar with Netduino, but it would be good to check if is still not working, wether or not the LCD is on the same I2C bus
Jose
If it is I2C problem, I suggest you try some I2C scanner script to see if it is found. I'm not familiar with Netduino, but it would be good to check if is still not working, wether or not the LCD is on the same I2C bus
Jose 2013-07-05 19:54:20 i agree with alnath, try adjusting it with the potentiometer (blue box) on the back of the LCD. and see if it works better.
If it is I2C problem, I suggest you try some I2C scanner script to see if it is found. I'm not familiar with Netduino, but it would be good to check if is still not working, wether or not the LCD is on the same I2C bus
Jose
If it is I2C problem, I suggest you try some I2C scanner script to see if it is found. I'm not familiar with Netduino, but it would be good to check if is still not working, wether or not the LCD is on the same I2C bus
Jose 2013-07-03 23:52:44 I have the same Problem :( Can you please make a Screen and publish a litte example code ?
bi0s
bi0s 2013-07-03 23:52:44 I have the same Problem :( Can you please make a Screen and publish a litte example code ?
bi0s
bi0s 2012-10-16 12:04:35 Hi, how did you solved your problem with the 1602 I2C LCD display? I have the same problem and don't know the solution. The same problem even after connecting GND and VCC. Even without SCL and SDA.
looserko
looserko 2012-10-16 12:04:35 Hi, how did you solved your problem with the 1602 I2C LCD display? I have the same problem and don't know the solution. The same problem even after connecting GND and VCC. Even without SCL and SDA.
looserko
looserko 2011-05-08 02:57:13 I have problem making this I2C LCD (http://www.dfrobot.c...&product_id=135) to work with netduino. I attached two photos to show the wiring (http://forums.netduino.com/index.php?/topic/1795-i2c-lcd-not-working/). I use the following code:
I2CDevice lcd = new I2CDevice(new I2CDevice.Configuration(0x27, 400));
int bytesTransferred = 0;
string hellow = "hellow";
System.Text.UTF8Encoding encoder = new System.Text.UTF8Encoding();
byte[] bytesToSend = encoder.GetBytes(hellow);
I2CDevice.I2CTransaction[] writeCommandAction = new I2CDevice.I2CTransaction[] {I2CDevice.CreateWriteTransaction(bytesToSend) };
bytesTransferred = lcd.Execute(writeCommandAction, 1000);
Debug.Print("TRANSF> " + bytesTransferred.ToString());
Debug.Print("TOSEND> " + bytesToSend.Length.ToString());
I tried this code (http://code.tinyclr....lcd1602-module/) as well but without success.
When I connect USB to netduino, display's light powers on and the first line can be seen (Powered.jpg). Beyond that nothing happens.
pavgud
I2CDevice lcd = new I2CDevice(new I2CDevice.Configuration(0x27, 400));
int bytesTransferred = 0;
string hellow = "hellow";
System.Text.UTF8Encoding encoder = new System.Text.UTF8Encoding();
byte[] bytesToSend = encoder.GetBytes(hellow);
I2CDevice.I2CTransaction[] writeCommandAction = new I2CDevice.I2CTransaction[] {I2CDevice.CreateWriteTransaction(bytesToSend) };
bytesTransferred = lcd.Execute(writeCommandAction, 1000);
Debug.Print("TRANSF> " + bytesTransferred.ToString());
Debug.Print("TOSEND> " + bytesToSend.Length.ToString());
I tried this code (http://code.tinyclr....lcd1602-module/) as well but without success.
When I connect USB to netduino, display's light powers on and the first line can be seen (Powered.jpg). Beyond that nothing happens.
pavgud 
