I have done my research, but it is limited based on my knowledge (and very basic understanding) and I have been at this for “too long” with out any results.
I will gladly help you understand what “Volumetric efficiency” is as it relates to an internal combustion engine, naturally aspirated or forced induction if you can help me (LOL)
This is a code that I pieced together… I removed most of my Blynk statements because they would not work.
I am simply trying to figure out this whole “virtual PIN” deal and I am losing my mind! The wording is “confusing” especially when you know very little programming…
I can see all my data on the serial port… but I am having trouble getting them to show up on my Blynk app.
I am a “car” guy that is trying to learn the basic programming stuff just to “tinker”…
I am attempting to monitor my environment and see the data just to get an idea of how all this IOT stuff works…
Please edit your original post (little pencil at bottom of post) - add three “backtick” character before and after your code (```cpp) - this will format the code and make it MUCH easier to read.
billd
It’s promising that you have your BME280 working to Serial.print. Good.
Now you simply Write the same data to a Virtual pin, on a widget, on your Blynk App.
I assume you have made a basic Blynk Project (on the APP); with a number of display widgets? Each of these widgets should be assigned a unique Virtual PIn.
In your ESP32 code, you then write the value yo need to the allocated Virtual Pin.
eg: Blynk.virtualWrite(V5, bme.readHumidity());
Things to check in your Blynk Project:
That you have selected the correct device in Project Settings (ESP32)
That you have assigned Virtual pins for each widget.
hehe NP, I remember when I start with Blynk . . . once you “get” it it’s actually very straightforward. get the first couple of widgets working and you’re away!
billd
@James007Moore despite Bill asking you nicely (twice), you still have not formatted your code correctly.
You have commas at the beginning and end, not backticks.
Please edit your code and use the correct symbols. They look like this, and if you’re struggling to fine the correct character in your keyboard (its probably above the tab key) the just copy and paste these characters:
```
Note that the triple backticks need to be on a line of their own, above and below the block of code.
As far as sensors are concerned, I like the BME280, It’s certainly much better than the DHT range.
Hopefully you’ve worked-out that (when you’re displaying data) its best to treat the Blynk widgets like the serial monitor. You do your data collection and analysis in your code running on the ESP, then write it out to the widget(s) via a virtual pin. Don’t try to do more than 10 virtual writes per second, but if you’re measuring temperature and humidity then taking a reading every 5-10 seconds is usually more than adequate. Obviously, using a timer to call the routine that takes the reading and writes that to Blynk and/or the serial monitor is the way to structure the code.