Skip to main content
Arduino

Timeline for Can't send Data to LCD1602 with I2C

Current License: CC BY-SA 3.0

11 events
when toggle format what by license comment
Oct 12, 2017 at 9:44 history bumped Community Bot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Sep 12, 2017 at 5:03 history bumped Community Bot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Aug 13, 2017 at 4:17 history bumped Community Bot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Jul 14, 2017 at 3:30 history bumped Community Bot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Jun 13, 2017 at 10:26 history bumped Community Bot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
May 14, 2017 at 9:17 answer added R1S8K timeline score: 1
May 14, 2017 at 9:11 comment added R1S8K Hello friends :) I discovered the problem!! One member told me about. Which is that I override the bitmask for the RS in data function, so it would still work as a command function, he solved that for me by adding the RS bitmask with I2C_tx(bitmask = (data<<4) & 0xF0 | 0x08 |= (1<<RS));
May 13, 2017 at 23:20 comment added Majenko You might like to try attaching a logic analyser to examine precisely what is being sent from the Arduino to the LCD.
May 13, 2017 at 14:35 comment added R1S8K Yes, I used a very good Arduino library which works fine, the problem is in my code. And specifically in the sendData function because it works as sendCMD the same, so if I changed the function calls in LCD_init function from sendCMD to sendData, then it works the same, even I set the RS in sendData to 1 !!? But I don't know where is the problem.
May 13, 2017 at 13:49 comment added st2000 You might want to try a more specific / complete Arduino library specifically for LCDs and, perhaps, specifically for the LCD1602. That way, if that works, you can eliminate hardware problems. Then return to your raw i2c code and feel more assured the problem is in the code. Also, you can check the library solutions against your own and see if there is anything you might have missed. The i2c protocol allows for some flexibility and, unfortunately, that leads to some confusion from time to time.
May 13, 2017 at 12:21 history asked R1S8K CC BY-SA 3.0

AltStyle によって変換されたページ (->オリジナル) /