tag:blogger.com,1999:blog-7549705215513488945.post6968852995729321149..comments2024-03-28T01:49:56.146-07:00Comments on IoT Sharing: Demo 4: How to use Arduino ESP32 to display information on I2C LCDTech It Yourselfhttp://www.blogger.com/profile/00459942306964625402noreply@blogger.comBlogger14125tag:blogger.com,1999:blog-7549705215513488945.post-18902795935507559122023-11-12T01:48:06.796-08:002023-11-12T01:48:06.796-08:00Compilation error: invalid conversion from 'in...Compilation error: invalid conversion from 'int' to 't_backlighPol' [-fpermissive]<br />Even after use right adress with scanner.<br />Even verify gives errordigitonhttps://www.blogger.com/profile/07518173615831662717noreply@blogger.comtag:blogger.com,1999:blog-7549705215513488945.post-39501364633852512792022-12-08T13:25:32.250-08:002022-12-08T13:25:32.250-08:00Hi, someone has tryied to print a message on the L...Hi, someone has tryied to print a message on the LCD from both cores of the ESP32? I am, but...i have to reinit inside the task funcion of second core, if not, the screen just... clear and then start to print aleatory characters. But... if i print from the 0 core again no work. Someone know why both cores dont share the same instance?Unknownhttps://www.blogger.com/profile/15445422605490327513noreply@blogger.comtag:blogger.com,1999:blog-7549705215513488945.post-37453897674190971052018-04-22T15:01:49.719-07:002018-04-22T15:01:49.719-07:00Hi. Great blog.
Just a one concern:
Does not the 5...Hi. Great blog.<br />Just a one concern:<br />Does not the 5V from VCC kill the ESP32 by SCL and SCA lines? Should not the voltage converters be used on SCL and SCA lines?<br />I am still a noob. If it is safe please explain why.Rafal Magdahttps://www.blogger.com/profile/01811426456144242886noreply@blogger.comtag:blogger.com,1999:blog-7549705215513488945.post-38713891910468986322018-04-08T05:44:19.745-07:002018-04-08T05:44:19.745-07:00I had problems with this script as written, gettin...I had problems with this script as written, getting errors "A fatal error occurred: Timed out waiting for packet content". Some digging showed that the cause is using PIN 12 for I2C: pin 12 is one of the strapping pins, so if this pin is pulled high at boot time, it interferes with booting. Since I2C pins are normally pulled high, it is a problem.<br /><br />Changing the script to use another pin as SDA (I used 27) fixed the issue. Shurikhttps://www.blogger.com/profile/15784602326877130208noreply@blogger.comtag:blogger.com,1999:blog-7549705215513488945.post-18931870936698350142018-02-24T20:36:47.493-08:002018-02-24T20:36:47.493-08:00Hi
I think it needs a small delay instead of upda...Hi<br /><br />I think it needs a small delay instead of updating continuously in loop like LED 7segs.<br /><br />ANW thanks friend.<br /><br />RegardsTech It Yourselfhttps://www.blogger.com/profile/00459942306964625402noreply@blogger.comtag:blogger.com,1999:blog-7549705215513488945.post-37014254013155946062018-02-22T05:06:14.759-08:002018-02-22T05:06:14.759-08:00perturbation => disturbanceperturbation => disturbanceBubble innovationhttps://www.blogger.com/profile/08238774972601027108noreply@blogger.comtag:blogger.com,1999:blog-7549705215513488945.post-8342138092084142212018-02-21T14:59:21.168-08:002018-02-21T14:59:21.168-08:00Look like EMC perturbation...Look like EMC perturbation...Bubble innovationhttps://www.blogger.com/profile/08238774972601027108noreply@blogger.comtag:blogger.com,1999:blog-7549705215513488945.post-82641551212945091372018-02-21T04:39:36.257-08:002018-02-21T04:39:36.257-08:00Strange, I've made some test with LCD+OLED on ...Strange, I've made some test with LCD+OLED on the same I2C network, base on my previous code and it is working!!!!<br />I've to investigate now to understand where is the issue!<br />I let you informBubble innovationhttps://www.blogger.com/profile/08238774972601027108noreply@blogger.comtag:blogger.com,1999:blog-7549705215513488945.post-23133590180875195262018-02-17T04:36:49.561-08:002018-02-17T04:36:49.561-08:00OMG, thank you so much. I lost my LCD and waiting ...OMG, thank you so much. I lost my LCD and waiting for new one. But I think we should only update the LCD whenever data has been changed. I made a demo that using LCD:<br />http://www.iotsharing.com/2017/05/how-to-build-system-to-update-price-tag.html<br />In this demo i only update LCD when I got request and it works well. Could you please try this.<br />Best reards,Tech It Yourselfhttps://www.blogger.com/profile/00459942306964625402noreply@blogger.comtag:blogger.com,1999:blog-7549705215513488945.post-28739319689509378252018-02-09T04:53:27.895-08:002018-02-09T04:53:27.895-08:00I've run it a while and the LCD freeze after 5...I've run it a while and the LCD freeze after 5 to 15 min anymay. I didn't find resource on internet showing ESP32 running LCM1602 dynamically. It would require a deeper investigation.<br /><br />@iotsharing dotcom => Yes please keep us inform of your investigation. On my side, I'll work on another subject and suspend THE VERY CHEAP LCM1602 for the moment...Bubbleiohttp://www.bubbleio.frnoreply@blogger.comtag:blogger.com,1999:blog-7549705215513488945.post-35590338280616541722018-02-09T01:02:39.811-08:002018-02-09T01:02:39.811-08:00thanks for ur comment. I will check it soon :)thanks for ur comment. I will check it soon :)Tech It Yourselfhttps://www.blogger.com/profile/00459942306964625402noreply@blogger.comtag:blogger.com,1999:blog-7549705215513488945.post-75464182324878911652018-02-08T16:17:41.797-08:002018-02-08T16:17:41.797-08:00Hi,
I've tested the code with ESP32. it work o...Hi,<br />I've tested the code with ESP32. it work one time but not in loop. Send need time to refresh and ESP is too quick, screen stop to run. My proposition is to add 120ms on each send command:<br />void LiquidCrystal_I2C::send(uint8_t value, uint8_t mode) {<br /> uint8_t highnib=value&0xf0;<br /> uint8_t lownib=(value<<4)&0xf0;<br /> write4bits((highnib)|mode);<br /> write4bits((lownib)|mode);<br /> delay(120);<br />}<br /><br />After 2-3 min the LCD "crash" anyway. I restart it after a while:<br />MAX6675 ktc(KTC_CLK, KTC_CS, KTC_SO);<br />LiquidCrystal_I2C lcd(0x27, 16, 2);//set the LCD address to 0x27 for a 16 chars and 2 line display<br /><br />void setup() {<br /> Serial.begin(115200);<br /> Init_LCD();<br /> delay(1000);<br />}<br /><br />void loop() {<br /> // Reinit every 30x2 secondes<br /> if (++n_Cpt > 30)<br /> {<br /> n_Cpt = 0;<br /> Init_LCD();<br /> delay(1000);<br /> }<br /> Processing();<br /> delay(2000);<br />}<br /><br />void Init_LCD() {<br /> // Init LCD.<br /> Serial.println("----------------");<br /> Serial.println("----INIT LCD----");<br /> Serial.println("----------------");<br /> Serial.println("");<br /> lcd.begin(LCD_SDA, LCD_SCL);<br /> lcd.backlight();<br /><br /> //Init message<br /> lcd.setCursor(0, 0);<br /> lcd.print("Temperature");<br /> lcd.setCursor(0, 1);<br /> lcd.print("xx.xx Celsius");<br />}<br /><br /><br />void Processing() {<br /> f_DC = ktc.readCelsius();<br /><br /> // Debug<br /> Serial.printf("Temp = %.2f Celsuis\n", f_DC);<br /> Serial.println("--------------------");<br /><br /><br /> //lcd.setCursor(0, 0);<br /> //lcd.print("Temperature");<br /> lcd.setCursor(0, 1);<br /> // Upadte Temp<br /> lcd.printf("%.2f Celsius", f_DC);<br /> //lcd.printf("%.2f", f_DC); => After a while Celsius is eratically erase with random char !<br />}<br /><br /><br /><br />Bubbleiohttp://www.bubbleio.frnoreply@blogger.comtag:blogger.com,1999:blog-7549705215513488945.post-71157633075629094032018-02-08T15:19:48.349-08:002018-02-08T15:19:48.349-08:00What is your code ? It look like you try to use se...What is your code ? It look like you try to use setCursor with char rather than int?Bubble innovationhttps://www.blogger.com/profile/08238774972601027108noreply@blogger.comtag:blogger.com,1999:blog-7549705215513488945.post-50819688124763203842017-12-30T07:46:12.243-08:002017-12-30T07:46:12.243-08:00I have used the modified ESP32-Master you provided...<br />I have used the modified ESP32-Master you provided.I am wrestling with the following compilation errors:<br />I have studied LiquidCrystal_I2C.h and see your define: void setCursor(uint8_t, uint8_t);<br />but get errors such as:<br /><br />undefined reference to `LiquidCrystal_I2C::setCursor(unsigned char, unsigned char)'<br /><br />Any help?<br /><br /><br /><br />Anonymoushttps://www.blogger.com/profile/05031472775535044149noreply@blogger.com