I was trying to control the stepper motor with two switches in blynk app one for moving it clockwise and other for counter clockwise but I was finding difficulty in stopping the motor in both cases.i am new in blynk app so can one help me to come out from this problem it would be a great help
Gunner
February 1, 2019, 6:38am
2
Steppers and Blynk can be tricky due the timing needs of both, but try searching this forum for examples.
I have one here…
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> // …
And one here…
#23 - Basic Stepper Motor Control
Who says Blynk can’t control Stepper motors… well, OK, I have said it may require fancy non-blocking timing… so here it is (disclaimer, not all that fancy after all )
Yes, it is using the old and decrepit Stepper.h library… only because I was too lazy to learn simple accelStepper commands at this moment
I am also controlling a 4.29v 1.8deg NEMA 17 stepper with an equally old L298D motor controller… Hey, I works with what…