How to make connection between ESP32 and ESP8266

themadcap
Posts: 1
Joined: Mon Oct 15, 2018 3:06 pm

How to make connection between ESP32 and ESP8266

Postby themadcap » Mon Oct 15, 2018 3:13 pm

I'm trying to send some information from ESP8266 to ESP32, but I'm stuck in the beginning. I don't want to connect them to internet, I only want a connection between those two. I have Lolin32 board and nodemcu 1.0, trying to program it with arduino ide. I tried to follow some sample codes but I am lost. I am trying to connect via WiFi but should I try bluetooth instead? Could you suggest me something to follow?

wan420
Posts: 11
Joined: Mon Nov 12, 2018 8:49 am

Re: How to make connection between ESP32 and ESP8266

Postby wan420 » Sun Nov 18, 2018 10:15 pm

i am currently trying the same thing, have you been successfull? I am trying to make it happen using SDA and SCL

cepics
Posts: 14
Joined: Sat Dec 08, 2018 10:13 am

Re: How to make connection between ESP32 and ESP8266

Postby cepics » Wed Dec 12, 2018 3:08 pm

I'm trying the same thing with ESPNOW... but no joy right now....

wan420
Posts: 11
Joined: Mon Nov 12, 2018 8:49 am

Re: How to make connection between ESP32 and ESP8266

Postby wan420 » Fri Dec 14, 2018 1:05 pm

sda scl was no luck, try using serial communication using hardware serial library. use gpio 16 17, rx and tx. Those once worked for me, if you can make others work do tell me how you did it.

DrDoom
Posts: 5
Joined: Thu Dec 20, 2018 10:16 am

Re: How to make connection between ESP32 and ESP8266

Postby DrDoom » Thu Dec 20, 2018 11:22 am

in my opinion the answer is related to the requirements:

how much data do you want to send (bandwidth)? how important is a stable connection to you (all bytes arrive correctly)? do you want to have a radio or wire connection?

There are e.g. SPI, I2C, Serial, Bluetooth, Radio. The fastest and safest thing in my opinion is SPI.

wan420
Posts: 11
Joined: Mon Nov 12, 2018 8:49 am

Re: How to make connection between ESP32 and ESP8266

Postby wan420 » Thu Jun 27, 2019 8:00 am

DrDoom wrote:
Thu Dec 20, 2018 11:22 am
in my opinion the answer is related to the requirements:

how much data do you want to send (bandwidth)? how important is a stable connection to you (all bytes arrive correctly)? do you want to have a radio or wire connection?

There are e.g. SPI, I2C, Serial, Bluetooth, Radio. The fastest and safest thing in my opinion is SPI.
SPI communication between 8266 and esp32, Can you please share any links or any documentation referering this communication between these 2 boards?
Serial Connection using rx and tx is having a small problem with data loss, using flush and readline() I am trying to cover up those errors but they are there nonetheless ..
Thank you

Who is online

Users browsing this forum: No registered users and 48 guests