It is important for me to say that i tried 3 diffrent ones… all got the same error.
I also wanted to say that it worked. It worked fine. And then became unstable and stopped.
Arduino UNO with Esp01s
Blynk Library version 1.10
Connections:
esp01s arduino
tx---------------->pin2
rx---------------->pin3
3.3v------------->3.3v power supply arduino/external will detail ahead
ground--------->ground / external grouns
ch enable ----->3.3v
tried both arduino power source and external one.
will post the details of the one I found. wondering if it fitts.
baud rate both at 9600.
still getting the error message as you can see in the details ahead.
will add a the firmware of at version and also baud rate for proof.
/*************************************************************
WARNING!
It's very tricky to get it working. Please read this article:
http://help.blynk.cc/hardware-and-libraries/arduino/esp8266-with-at-firmware
You’ll need:
- Blynk IoT app (download from App Store or Google Play)
- Arduino Uno board
- Decide how to connect to Blynk
(USB, Ethernet, Wi-Fi, Bluetooth, ...)
There is a bunch of great example sketches included to show you how to get
started. Think of them as LEGO bricks and combine them as you wish.
For example, take the Ethernet Shield sketch and combine it with the
Servo example, or choose a USB sketch and add a code from SendData
example.
*************************************************************/
/* Fill-in information from Blynk Device Info here */
#define BLYNK_TEMPLATE_ID "TMPLRVCXnAPS"
#define BLYNK_TEMPLATE_NAME "BALASH”
/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial
//// libraries included!
#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>
#include <AFMotor.h>
////WIFI STUFFFFFF
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "”
char pass[] = "”
// 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);
// This function will be called every time Slider Widget
///////END OF WIFI STUFFF
////THINGS WE CONTROL
const int RELAY_PIN = 13; // the Arduino pin, which connects to the IN pin of relay
// Number of steps per output rotation
// Change this as per your motor's specification
const int stepsPerRevolution = 48;
// connect motor to port #2 (M3 and M4)
AF_Stepper motor(stepsPerRevolution, 1);
// in Blynk app writes values to the Virtual Pin V1
BLYNK_WRITE(V1)
{
pinMode(RELAY_PIN, OUTPUT);
int pinValue1 = param.asInt(); // assigning incoming value from pin V1 to a variable
Serial.print(pinValue1);
if (pinValue1 ==1){
digitalWrite(RELAY_PIN, HIGH);
}
else{
digitalWrite(RELAY_PIN, LOW);
}
}
BLYNK_WRITE(V0)
{
int pinValue0 = param.asInt(); // assigning incoming value from pin V1 to a variable
if (pinValue0 ==1){
motor.step(100, FORWARD, INTERLEAVE);
}
}
BLYNK_WRITE(V2)
{
int pinValue2 = param.asInt(); // assigning incoming value from pin V1 to a variable
if (pinValue2 ==1){
motor.step(100, BACKWARD, INTERLEAVE);
}
}
void setup()
{
// Debug console
Serial.begin(9600);
// Set ESP8266 baud rate
EspSerial.begin(ESP8266_BAUD);
delay(10);
motor.setSpeed(10);
//Blynk.begin(BLYNK_AUTH_TOKEN, wifi, ssid, pass);
// You can also specify server:
Blynk.begin(BLYNK_AUTH_TOKEN, wifi, ssid, pass, "blynk.cloud", 80);
//Blynk.begin(BLYNK_AUTH_TOKEN, wifi, ssid, pass, IPAddress(192,168,1,100), 8080);
}
void loop()
{
Blynk.run();
// You can inject your own code or combine it with other sketches.
// Check other examples on how to communicate with Blynk. Remember
// to avoid delay() function!
}
details of the power supply:
MODEL:PH0301
INPUT:AC110-250V 50/60HZ
OUTPUT:DC3V-1A
my AT setup:
23:08:13.401 -> AT+UART_DEF=9600,8,1,0,0
23:08:13.401 ->
23:08:13.401 -> OK
23:08:23.180 -> AT+GMR
23:08:23.180 -> AT version:1.2.0.0(Jul 1 2016 20:04:45)
23:08:23.227 -> SDK version:1.5.4.1(39cb9a32)
23:08:23.274 -> v1.0.0
23:08:23.274 -> Mar 11 2018 18:27:31
23:08:23.274 -> OK
23:08:25.643 -> AT
23:08:25.643 ->
23:08:25.643 -> OK
and also i wanted to show the message i got:
22:58:53.398 -> ___ __ __
22:58:53.398 -> / _ )/ /_ _____ / /__
22:58:53.398 -> / _ / / // / _ \/ '_/
22:58:53.446 -> /____/_/\_, /_//_/_/\_\
22:58:53.492 -> /___/ v1.1.0 on Arduino Uno
22:58:53.492 ->
22:58:53.492 -> #StandWithUkraine https://bit.ly/swua
22:58:53.539 ->
22:58:53.539 ->
22:58:54.008 -> [647] Connecting to Eden Hamesucan
22:58:55.049 -> [1661] ESP is not responding