@PeteKnight
ok, sorry for the delay, I decided to study a little about everything that was mentioned and I came to the following problem
/ Include the AccelStepper Library
#include <AccelStepper.h>
// Creates an instance
// Pins entered in sequence IN1-IN3-IN2-IN4 for proper step sequence
AccelStepper myStepper(AccelStepper::FULL4WIRE, 4, 6, 5, 7);
/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial
#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>
int pinValue;
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "xxxxxxxxxxxx";
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "xxxxxx";
char pass[] = "xxxxxx";
// Hardware Serial on Mega, Leonardo, Micro...
#define EspSerial Serial1
// or Software Serial on Uno, Nano...
//#include <SoftwareSerial.h>
//SoftwareSerial EspSerial(2, 3); // RX, TX
// Your ESP8266 baud rate:
#define ESP8266_BAUD 9600
ESP8266 wifi(&EspSerial);
void setup()
{
Serial.begin(9600);
BLYNK_WRITE(V0) {
pinValue = param.asInt(); // assigning incoming value from pin V0 to a variable
pinMode(V0, OUTPUT);
}
// set the maximum speed, acceleration factor,
// initial speed and the target position
myStepper.setMaxSpeed(1000.0);
myStepper.setAcceleration(100.0);
myStepper.setSpeed(900.0);
myStepper.moveTo(pinValue * 2038ul);
// aqui serve para setar o numero de voltas que o motor
// vai dar, então no caso é melhor que marcar o tempo
// em minutos 1 volta=2038
// Set ESP8266 baud rate
EspSerial.begin(ESP8266_BAUD);
delay(10);
Blynk.begin(auth, wifi, ssid, pass);
// You can also specify server:
//Blynk.begin(auth, wifi, ssid, pass, "blynk-cloud.com", 80);
//Blynk.begin(auth, wifi, ssid, pass, IPAddress(192,168,1,100), 8080);
}
I have this code, in short it can connect the esp to the internet and any value that I throw there to multiply with the 2038, it means the number of turns that the engine will take, but my doubt is the following, as I should to add the value of a slider to be multiplied by 2038? I wanted the value that came out to be what determined the number of turns and although I understood how it works for me to say what pin the slider is on, I was not able to make this part work
including forgiveness but the instruction said it was to use the back to paste the codes when in fact it was to use the serious accent
I think that’s it, I hope it’s okay to take so long to post and thank you for your attention now