• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

How exchange data between Arduino and ESP32

Q&A Forum › Category: ESP32 › How exchange data between Arduino and ESP32
0 Vote Up Vote Down
Daniele Gozzi asked 5 years ago

 I realized an almost complex device based on Arduino Uno where the data of several sensors are stored on a data logger shield.

Question Tags: ESP32
8 Answers
0 Vote Up Vote Down
Rui Santos Staff answered 5 years ago

Hello, unfortunately we don’t have any tutorials on that exact subject. We’re considering adding/writing a tutorial about that subject in the next couple of weeks. Can you describe which sensors would your like to use and the project behavior?

0 Vote Up Vote Down
Rui Santos Staff answered 5 years ago

In summary, to establish a communication between an Arduino and an ESP32, you can connect the Arduino TX and RX cables to the ESP32 RX and TX. Then, in your code you can establish a serial communication at the same baud rate to exchange data between the two devices.

0 Vote Up Vote Down
Daniele Gozzi answered 5 years ago

Hello Rui, Thank you for your message. I wait for your next tutorial dealing with exchange data between ESP32 and Arduino and manage them via internet. Concerning with my project, in summary, it is based on acquiring the solar light spectrum around the whole day with particular interest at sunrise and sunset. The device acquires data from 4 LDR, UV and DHT-22 and other two parameters to control the operation behaviour. Three of 4 LDRs are filtered respectively with blue, green and red shield. Datalogger shield is utilised to store data on a memory card by building a 9 columns (time, temperature and humidity included) x n rows matrix. The use of the datalogger shield implies using only 4 of the six analog inputs of Arduino. 4 relays are selectively driven to acquire each signal. A 12 V lead acid battery supplies the device through 2 DC-DC converters set at different output voltages to supply Arduino and other circuits.

0 Vote Up Vote Down
Rui Santos Staff answered 5 years ago

I don’t know exactly when I’ll have time to publish the “serial data exchange” tutorial, but I’ll definitely write something on that subject in the next couple of weeks.

I’ll probably post a project like this: 1 Arduino reading LDR+DHT22 and sending that data to the ESP32 via serial to display/publish it on a web server.

Thanks for the project suggestion.

0 Vote Up Vote Down
Rafael Cordova Uvidia answered 3 years ago

Hey Rui, in the end, did you create this project??

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi Rafael.
We still haven’t created this tutorial.
Do you need any help?
Regards,
Sara

0 Vote Up Vote Down
Rafael Cordova Uvidia answered 3 years ago

Hello Sara, 
Yes, I have this problem: I am building an AC power meter using AC712 and ZMPT101B sensors. Everything works okay when I use the Arduino analog pins, but it doesn’t work when I use the ESP32 or ESP8266 ADC pins.
My goal is to upload the sensor data to some cloud platform such as ThingSpeak; therefore, I thought that I could use an Arduino board for making the measurements and then make a serial connection with ESP32 or ESP8266 for sending the data to the cloud.
I have tried to connect the boards without success, could you please give me some guidance?
Kindest regards,
Rafael! 

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi Rafael.
When you say that it doesn’t work with the ESP32 and ESP8266 analog pins, what happens exactly?
Do you have the sample code that you use for serial communication between arduino and ESP32?
Otherwise, it is very difficult to figure out what might be wrong.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] SMART HOME with RPi, ESP32, and ESP8266 (version 1.2) March 8, 2023
  • [eBook Updated] ESP32-CAM Projects (version 1.3) January 7, 2023

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2023 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.