-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LCD garble after a while on ATTINY1614 #20
Comments
After further testing, it seems to be caused by lcd.clear(). Eg. loop with
fails after a while, but loop with
doesn't fail |
Interesting. First, nice to know that the code is "working" on that platform. Given it appears to only happen when clear() is used, it appears to be an issue related to the clear / home instruction timing.
While there could be a hd44780 library issue in how the timing is handled, given the code has been run and tested on so many different platforms and LCDs, my suspicion at this point is a micros() issue on that platform. It is possible there is a i2c clock speed issue. In the mean time can you try a few things.
Next after doing those tests, is to increase the clear / home timing by adding this to your test code before your loop testing. If that works, then we'll have to look closer as to why the default clr/home timing only fails on the 1614 If that doesn't work, then increase the second parameter from 38 to say 50 and see what happens. |
Sorry, forgot to mention, SpenceKonde's megaTinyCore https://github.com/SpenceKonde/megaTinyCore I'll test some more tomorrow. AFAIK micros() is working correctly, tho I'm using internal oscillator and haven't exactly tested its performance yet. |
Any update on this? |
Hi, Thank you for an awesome library, many time user, first time poster :)
I was sort of stress testing some chinese i2c 16x2 lcd-s for an upcoming project and ran into an issue now well over my head..
It seems like I'm losing some byte nibbles. Would guess a noise issue, but I can't find any noteworthy noise.
Test env: AtTiny1614 on a breadboard in a relatively noise free enviroment. Powered from quiet 5v linear psu and decoupling caps on the chip and lcd. I2C ran as a 20cm twisted pair separate from power. I2C pullups standard 4k7 on lcd backpack verified.
I2C backpack IC is PCF8574T.
Repro: Run unmodified LCDiSpeed400, unmodified LCDCharset and simple:
No repro: LCDCustomChars, I2CexpDiag
quick video: https://www.youtube.com/watch?v=DFSSwByl3JQ
Edit: no repro on Atmega328 and Attiny85 under similar test conditions.
I2CexpDiag output:
The text was updated successfully, but these errors were encountered: