When I connect the esp8266-01 to the arduino, I choose generic esp8266 on the board and choose ardui
When I connect the esp8266-01 to the arduino, I choose generic esp8266 on the board and choose arduino uno from the port. Is this correct or what should I do?
16 Replies
I use is arduino IDE.
Since you're uploading code in Arduino Uno. I suggest select in Arduino IDE (top menu) Tools --> Board --> Arduino AVR Boards--> Arduino Uno and then compile and check if issue persists. The job of ESP8266 is to receive AT commands from aruduino and provide Wifi connectivity so that hw will connect to Blynk server. Please share a picture of your hardware setup so we'll get exact idea about how you've connected ESP8266 and Arduino Uno.
I have now used arduino mega 2560 with esp8266-01 and entered this code and it gave this error what did I do?
C:\Users\lenovo\AppData\Local\Temp.arduinoIDE-unsaved2024826-8432-ezh1xl.222yp\sketch_sep26b\sketch_sep26b.ino:41:25: error: conflicting declaration 'SoftwareSerial Serial1'
SoftwareSerial EspSerial(2, 3); // RX, TX
^
In file included from C:\Users\lenovo\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/Arduino.h:233:0,
from C:\Users\lenovo\AppData\Local\Temp\arduino\sketches\C249638E9FC157C382366AAF3B7AEEEB\sketch\sketch_sep26b.ino.cpp:1:
C:\Users\lenovo\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6\cores\arduino/HardwareSerial.h:147:25: note: previous declaration as 'HardwareSerial Serial1'
extern HardwareSerial Serial1;
^~~
exit status 1
Compilation error: conflicting declaration 'SoftwareSerial Serial1'
This is my error
Please share picture of your hardware connection. I'd like to know if you're connecting ESP8266 Arduino Shield or ESP-01 Module (ESP8266 MCU)



Should I send the code as well? Maybe the error is from it.
Ok cool. This is ESp-01 Module uses ESP8266Ex. To make this work you first have to make sure your ESP-01 responds to AT commands https://youtu.be/MPyShmRcgD0 and then using Tx, Rx on Arduino you can make it talk to IoT Server. Have you tested AT commands with your module to ensure its working? It's advisable ensure module works before you connect ESP-01 to Arduino or any board.
Yes, I tried it. I sent it AT and it sent me OK. I connected it to the Internet via AT+CWJAP and it connected to the Internet.
Great, are you planning to make an arduino to talk to blynk using ESP-01's Wi-Fi connectivity? I have once tested normal webserver hosted on Arduino using ESP-01. I suggest to stay with Arduino Uno to keep things simple than Mega. I remeber i spent countless hours in connections. These serial connections and power will drive crazy because you may need to add some additional passive components to make it work otherwise even code is right it will make ur life difficult. But for sure there are several videos on YT to help.
Yes I am planning to connect the project to the phone via blynk app with esp-01. Ok I have an Arduino Uno and I tried esp-01 on it and it worked. Now what should I do?
what else then not working? you just said it working with arduino uno? if your goal is to port with Mega then just change serial and try it will work for sure as it worked with Uno. Create Blynk account --> Create Template --> maybe you'll get some device credentials from cloud that you've to insert in code. Please read docs. Best wishes!
š¢ Our Tech Tips on License Compliance & Vulnerability Management in Yocto starts now!
@here
What you will learn:
* License overviews (GPL v2, v3, MIT, Apache, etc.)
* Ensuring license compliance
* Collecting licenses in Yocto
* Automating CVE checks
* Helpful tools for managing licenses and vulnerabilities
Bring your questions and join us!
š Link: https://app.livestorm.co/devheads-community/devheads-weekly-office-hours-1/
Is there a board, method or IC that allows me to connect to Wi-Fi via the web or an application without having to write the network name and password in the code?
So I can install the project in a place and connect it to Wi-Fi via the web or an application without changing the code or writing the network name and password in the code
You could make the wifi board to act as a AP mode, host a webpage, using that scan the network, onces selected, change to STA moded, which will let it connect to the wifi network
Is there a video or article about this? I want to read more, knowing that I only know how to program ESP32, ESP8266, and Arduino boards.
need to look it up
but this is possible in ESP32