Wifi controlled car, arduino freezes, how to fix

True… however I only intended it to be used as a reference for the Blynk.config() and reconnection option… the OP apparently just loaded the whole thing :slight_smile: My mistake for not being clearer on which part of the code I was referring too :innocent:

@vektobus

Instead of Blynk.begin()

Blynk.config(auth, server, port);
Blynk.connect();

See here: https://docs.blynk.cc/#blynk-firmware-configuration-blynkconfig

And then the bare minimum “check test” in the void loop()

  if (Blynk.connected()) {  // If connected run as normal
    Blynk.run();
  }

@vektobus Here is another sketch (which could have been found with some searching :wink: ) that I use for an old RC car conversion… Running on an UNO and ESP-01.

Note: there is NO “keep running without connection” code in this one (no need for my uses), so you would need to add that. But it does show a (very rudimentary) “fail safe” timer solution to shut off the motors.

1 Like