Gunner
December 28, 2018, 12:39am
9
First, I fixed your post to properly show formatted code…
Hey, welcome to Blynk Community.
This is the best place to ask questions, leave feedback and share your ideas.
If this is the first time you hear about Blynk, check out our website www.blynk.cc and come back!
As the community is big (and growing), let’s agree on some basic rules.
Asking for help
Before creating a new topic and asking for help, please check if your question was already answered:
Use forum search function
You may want to check out:
Blynk Documentation
Blynk Wiki
Blynk Exa…
The way you are doing it now is incorrect… the Blynk code should only run on the Wemos, which then controls the Arduino (via Serial or i2c) which is what your hardware is connected too.
Dual MCU communication with EasyTransfer
And some simple, unrefined, demo code running Blynk on a ESP8266 that is sending control signals to an Arduino that is running a stepper motor.
Code for ESP8266 - Running Blynk and sending control info to Arduino over Serial
#include <BlynkSimpleEsp8266.h> // For Blynk
#include <ESP8266WiFi.h> // For Blynk & OTA
#include <ESP8266mDNS.h> // For OTA
#include <WiFiUdp.h> // For OTA
#include <ArduinoOTA.h> // For OTA
#include <EasyTransfer.h> // …