I will let you know, thanks for support
I get these messages:
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xe0
When my port in the Arduino IDE is pointing to a non-existant USB port. This probably means your code didnāt get uploaded to the Arduino.
@flopes that error means your Nano is not taking the upload. You need to disconnect the jumper pin going to RX0 on the Nano from the ESP between uploads. Once your new sketch is uploaded reconnect the jumper wire.
Hi you are right @Costas this what I done and now Iām back in businessā¦ too bad I cannot get this Virtual pin to work. Would be cool to test it.
Have you guys used LCD before? I want to make an exact copy of what I have on my physical LCD into Blynk virtual LCD. Is it possible to do thaT?
PS. I had to wait 18 hours untill I could post this.
Sure you can. Just add the LCD widget in your code and on the app. It works basically the same as a physical LCD. There is a good example bundled with the library. So everywhere where you display on your physical LCD, add another line for your Blynk LCD.
A tip for getting organized code, use another routine to display all messages, that way your code gets easier to read when troubleshooting
@flopes ideally what you want is a NC miniature momentary switch on the RX0 line so you can push for open during sketch uploads. Actually even after years of using the Arduino IDE I still get caught out from time to time with the getsync message as it ends with the regular thank you message and if the bottom window in the IDE is small you think the sketch has uploaded and scratch your head when the Arduino fails to respond to your coding.
@zeeko put up a nice post about Arduino and ESP recently at Esp-01 + Mega... Can't get hard serial working / newb esp questions. I thought it was this thread that warned about having the ESP wired up when you upload sketches to the Arduino but I canāt see it now. Ideally you should disconnect everything but I guess we are all reluctant to do this when we have a working system.
With just the RX0 on the Nanoās disconnected my ESPās receive the TX signal when I upload sketches (to the Nano) but it doesnāt seem to do any harm. That said I currently only have 2 ESPās (6 more due in a few days) and one of them has locked up. I would say bricked but I think it is the one that got very hot recently when I mixed up the VCC and GND. After a few days it came back as good as new and I have read that leaving them āfor some timeā will bring them back to life.
Yes I use Blynkās virtual LCD and it works. I do have a couple of physical LCDās but I find them big and bulky so I donāt use them in my projects. As you already use an LCD you are probably aware of what @Lichtsignaal means about ensuring you have well organised code for the menus.
I recently went through and cleaned up my main code but the LCD menu code is dreadful. My project is similar in a way to yours and I have 4 or 5 virtual buttons that bring something up on the LCD.
2 buttons for plus and minus time or temperature, one for stopping and starting the main code and another for choosing the operating mode. I need to sit down and write up a proper menu system without just adding extra lines of code almost on a whim to fix a particular menu ābugā.
The screenshot below is my LCD from a few days ago. There are 5 variables shown on the LCD (top row
device on or off, operating mode, current temperature bottom row number of operating minutes and random text). I have several timers that refresh the LCD at different times with various variables and really that is NOT the way to do it. I went this way because I found the Blynk server will sometimes disconnect if I press a virtual button and immediately refresh the LCD. A time delay (with SimpleTimer not delay(x)) of just 100 milliseconds fixed the disconnect problems and they only occurred with the ESP (not USB) and also only with virtual buttons not digital buttons. Still not got to the bottom of this.
I will redesign my LCD menu as soon as I have time with perhaps just one timer rather than two or three.
Iām starting to ramble but just to recap spend time designing a structured LCD menu and be prepared to use SimpleTimer for the periodic writes to the LCD.
Hi guys,
thanks for the help. Things are going slowly here.
One basic question, my lcd is 16x4, is it possible to configure a 16x4 lcd on blynk? because the one I have is only 16x2.
Thanks again.
You would need two 16 X 2ās in Blynk.