How to make this project below work with an Arduino Yun instead of a Uno:
Any help please as I am very bad with code. I have it working through the serial monitor.
How to make this project below work with an Arduino Yun instead of a Uno:
Any help please as I am very bad with code. I have it working through the serial monitor.
That’s not what we do here… we try to help you learn about Blynk… not teach you how to program.
Well, if you are just trying to read Temperature and Humidity and display them on a widget in the BLYNK APP, then all you need to do is head over to the Sketch Builder. With the Sketch Builder you can select the board type (I see that Arduino Yun is supported), and select the DHT11 example.
In fact, here it is:
Arduino Yun DHT11 Example
Although, I would change this timer.setInterval(1000L, sendSensor);
to this timer.setInterval(5000L, sendSensor);
as the DHT11 is very slow and shouldn’t have reading intervals less than 2 seconds apart.
Don’t forget you will need to make sure you have all the libraries installed.
Thanks, I actually found that before I checked back here. The code runs and uploads to the Yun, but nothing on my app is showing up on the gauges. Not sure what I am doing wrong. It says online.
I have it now working, thanks for your help. I had the Virtual Pins wrong on the app. It was something I didn’t understand in the code.