Hot answers tagged

5

The problem is: for (int x = 0; x > 10; x++) { That can be rewritten, in pseudo code, as: X is zero While X is greater than 10: Increment X You see the problem? X is zero. It's not greater than 10, so it never increments. I assume you actually wanted: for (int x = 0; x < 10; x++) { Also be aware that your for loop will be run over and over again, ...


2

The DevKit is a development board by ESP32 manufacturer Espressif to demonstrate ESP32 usage and to support prototyping. The NodeMcu is a board by NodeMcu intended for the NodeMcu Lua language firmware. There is no standard pinout. The labels on the DevKit are io pin numbers of the MCU. You can use both development boards with the ESP32 "Arduino boards ...


2

I had the same issue. After entering command that Majenko suggested: stty -F /dev/ttyUSB0 -hupcl I still wasn't able to send commands to Arduino nano. Strangely, when I open Arduino IDE Serial Monitor and send command it works. When I close it, I can send commands in terminal to Arduino for some time. Then it stops working again :/


2

Can anyone just try to upload this code to their node MCU with changing the WiFi credentials and the blynk Auth token to one of your own project by following the blynk guide and check if it is connecting to blynk and it's only a problem with my module or there is some problem in my code This might be necessary to see more problems. But it isn't necessary ...


1

I am assuming after you start watering you want to set V10 to 0 after 3 seconds. First, you will have to set waterNow to 0 after you start watring. Otherwise waterNowrun() will keep executing. Second, you need to keep track of the 'watering' state so that you know that you have to start tracking the time. Third, save the time when the watering started so ...


Only top voted, non community-wiki answers of a minimum length are eligible