I have a VirtualPin attached to a Superchart. In my IDE scketch, the value of the variable, which is float type, is converted to int when is sent to Blynk:
Blynk.virtualWrite(V1, int(PotenciaFV));
The value of the Variable (PotenciaFV) is limited to 30000 in the arduino IDE, son no higher values could be stored in it.
Well, from time to time, I have spikes in my superchart, always with the same value (357920000). Any idea why I’m having these spikes?
Here is the code related to that variable calculation. I added the fourth line when I had the spikes for the first time,. thinking that it could be a problem with the modbus reading, but I got the spike again yesterday, so not solved.
Your chart shows the spike at 3000… or I guess that is the max range you have? So, where are you seeing this rather large number? is that variable only used in this little code snippet you have shown?
3000 is the maximum range of the chart. I can check the value of the spike just exploring the data when continues pressing the screen.
The whole code is quite large, but I don’t manipulate that data in the rest of the code, for sure. In any case, I will double check and come back.
@Jomugu I don’t know what the exact problem is…it may very well be signal strength. It’s worth trying if you have an AP or even if you have an old wifi modem/router around you can put into bridge mode and connect it to your existing network as a wifi extender. Oh…and yes it has solved my problem. I haven’t had a spike since.
Guys… the chart is pulling hard digital data from the server, even a poor WiFi signal will not cause a ‘spike’ … this is not a noisy analog scope here
@Jomugu Did you find any further references to that variable or even the V1 and for that matter, do yu have anything on the App itself, like Eventor that might be triggering the V1 pin? It is possible to have shared vPins with a chart.