# Receive data In nodemcu 8266 from Arduino Uno

**URL:** <https://forum.arduino.cc/t/receive-data-in-nodemcu-8266-from-arduino-uno/1015660>\
**Category:** General Guidance\
**Created:** [July 24, 2022, 5:50pm UTC](https://forum.arduino.cc/t/receive-data-in-nodemcu-8266-from-arduino-uno/1015660 "2022-07-24T17:50:14Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![alaminrifat](https://avatars.discourse-cdn.com/v4/letter/a/74df32/32.png) [@alaminrifat](https://forum.arduino.cc/u/alaminrifat)\
**Post date:** [July 24, 2022, 5:50pm UTC](https://forum.arduino.cc/t/receive-data-in-nodemcu-8266-from-arduino-uno/1015660/1 "2022-07-24T17:50:14Z")

</div>

I want to do a project where **Arduino UNO** will receive data from **three sensors** and Uno will send the data to **NodeMCU 8266** , and NodeMCU 8266 will connect to Blynk. I am very beginner in Arduino World. Please suggest to me how I can do it. You can also provide me with some tutorials/Posts and your beautiful comment. **Thank You.**

---

<div class="post-metadata">

**Author:** ![er\_name\_not\_found](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/er_name_not_found/32/647693_2.png) [@er\_name\_not\_found](https://forum.arduino.cc/u/er_name_not_found)\
**Post date:** [July 24, 2022, 5:56pm UTC](https://forum.arduino.cc/t/receive-data-in-nodemcu-8266-from-arduino-uno/1015660/2 "2022-07-24T17:56:45Z")

</div>

What sensors?  
What have you tried so far?  
I think you'll find help more forthcoming if you make an attempt and post results for correction.

---

<div class="post-metadata">

**Author:** ![anon85221860](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@anon85221860](https://forum.arduino.cc/u/anon85221860)\
**Post date:** [July 24, 2022, 6:00pm UTC](https://forum.arduino.cc/t/receive-data-in-nodemcu-8266-from-arduino-uno/1015660/3 "2022-07-24T18:00:27Z")

</div>

[![](https://europe1.discourse-cdn.com/arduino/original/4X/f/5/9/f59763bc6b773764aa333d2ac4227d42dc1ed478.jpeg "Blynk IoT (Blynk 2.0) App w/Arduino Uno R3, ESP8266 ESP-01 Module, Blynk Cloud & 4 x LED [TUTORIAL]") ](https://www.youtube.com/watch?v=hZAX2d8qrbs)

---

<div class="post-metadata">

**Author:** ![GolamMostafa](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/golammostafa/32/239011_2.png) [@GolamMostafa](https://forum.arduino.cc/u/GolamMostafa)\
**Post date:** [July 24, 2022, 6:01pm UTC](https://forum.arduino.cc/t/receive-data-in-nodemcu-8266-from-arduino-uno/1015660/4 "2022-07-24T18:01:29Z")

</div>

**1.** Connect UNO and Node using Software UART (SUART) Port as per Fig-1 and leave the hardware UART P0rts aside for debugging purposes.

 ![uartNodeUno](https://europe1.discourse-cdn.com/arduino/original/4X/7/b/1/7b1cae43dfae567f8959317d540313b8b5ade7e9.png)  
Figure-1:

**2.** To test the functionality of the connection of Fig-1, upload the following sketches into UNO (Sender) and Node (Receiver). Check that A appears on SM2 at 1-sec interval.

**Sketch of UNO**

```cpp
#include<SoftwareSerial.h>
SoftwareSerial SUART(5, 6);//SRX = 5, STX = 6

void setup()
{
  Serial.begin(9600);
  SUART.begin(9600);
}

void loop()
{
  SUART.println('A');
  delay(1000);
}

```

**Sketch for Node:**

```cpp
#include<SoftwareSerial.h>
SoftwareSerial SUART(D2, D1);//SRX = D2, STX = D1

void setup()
{
  Serial.begin(9600);
  SUART.begin(9600);
}

void loop()
{
  byte n = SUART.available();
  if (n != 0)
  {
    char y = SUART.read();
    Serial.print(y);
  }
}

```

---

<div class="post-metadata">

**Author:** ![BitSeeker](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/bitseeker/32/1241632_2.png) [@BitSeeker](https://forum.arduino.cc/u/BitSeeker)\
**Post date:** [July 24, 2022, 6:01pm UTC](https://forum.arduino.cc/t/receive-data-in-nodemcu-8266-from-arduino-uno/1015660/5 "2022-07-24T18:01:45Z")

</div>

While you can have the sensors connected to a Uno and have the Uno talking to the ESP8266, why not have the sensors connected directly to the ESP8266? What you can do with a Uno you can do with the ESP8266 provided you have sufficient pins for the sensors. Once you install the ESP8266 library in your IDE, you will find plenty of examples under File-\>Examples. Make sure you select the ESP8266 board first.

There is an instructable here which might be a useful starting point for working with Blynk:

> **[Blynk With ESP8266](https://www.instructables.com/Blynk-With-ESP8266/)**
>
> Blynk With ESP8266: Blynk is an Internet of Things platform, which makes controlling hardware remotely and visualizing its data very easy. You can create your own interfaces using the free Blynk App. Every WiFi, Bluetooth/BLE, Ethernet and Serial...

---

<div class="post-metadata">

**Author:** ![Paul\_B](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/paul_b/32/216376_2.png) [@Paul\_B](https://forum.arduino.cc/u/Paul_B)\
**Post date:** [July 24, 2022, 10:23pm UTC](https://forum.arduino.cc/t/receive-data-in-nodemcu-8266-from-arduino-uno/1015660/6 "2022-07-24T22:23:13Z")

</div>

> [@alaminrifat](#):
>
> Arduino UNO will receive data from three sensors and Uno will send the data to NodeMCU 8266,

Waste of a UNO - which is inconvenient anyway. Why would you not simply connect the sensors to the NodeMCU?

**Far** easier and more efficient approach, as @BitSeeker points out.

---

<div class="post-metadata">

**Author:** ![GolamMostafa](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/golammostafa/32/239011_2.png) [@GolamMostafa](https://forum.arduino.cc/u/GolamMostafa)\
**Post date:** [July 25, 2022, 5:52am UTC](https://forum.arduino.cc/t/receive-data-in-nodemcu-8266-from-arduino-uno/1015660/7 "2022-07-25T05:52:37Z")

</div>

If the OP is a Learner and not a Developer, then connecting two Arduinos will offer him the opportunity of acquiring more knowledge and skills in Arduino Programming.

---

<div class="post-metadata">

**Author:** ![PaulRB](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/paulrb/32/216330_2.png) [@PaulRB](https://forum.arduino.cc/u/PaulRB)\
**Post date:** [July 25, 2022, 6:15am UTC](https://forum.arduino.cc/t/receive-data-in-nodemcu-8266-from-arduino-uno/1015660/8 "2022-07-25T06:15:37Z")

</div>

> [@alaminrifat](#):
>
> I want to do a project where **Arduino UNO** will receive data from **three sensors** and Uno will send the data to **NodeMCU 8266** ,

You might think you want to do that, but actually you don't. As a beginner, you won't realise how difficult that can get. You have to write 2 sketches, debug them, get communications working between them, debug that... There is an easier way, as several have already mentioned. Choose your sensors carefully and the smaller number of pins on the esp8266 won't be a problem.

I would recommend a wemos D1 mini rather than nodeMCU. It might appear to have fewer pins, but actually it has the same number of useful pins, the other pins on the nodeMCU are simply not useful. The D1 mini will take up much less space on your breadboard while you are building your prototype circuit.

---

<div class="post-metadata">

**Author:** ![GolamMostafa](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/golammostafa/32/239011_2.png) [@GolamMostafa](https://forum.arduino.cc/u/GolamMostafa)\
**Post date:** [July 25, 2022, 6:46am UTC](https://forum.arduino.cc/t/receive-data-in-nodemcu-8266-from-arduino-uno/1015660/9 "2022-07-25T06:46:49Z")

</div>

> [@alaminrifat](#):
>
> data from **three sensors**

Please, give the type numbers or links of your above three sensors.

---

<div class="post-metadata">

**Author:** ![Paul\_B](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/paul_b/32/216376_2.png) [@Paul\_B](https://forum.arduino.cc/u/Paul_B)\
**Post date:** [July 25, 2022, 10:31am UTC](https://forum.arduino.cc/t/receive-data-in-nodemcu-8266-from-arduino-uno/1015660/10 "2022-07-25T10:31:48Z")

</div>

> [@GolamMostafa](#):
>
> then connecting two Arduinos will offer him the opportunity of acquiring more knowledge and skills in Arduino Programming.

It certainly **will** , but deliberately doing things "the hard way", whilst I understand it is popular in the military, is not always effective. 🙄

---

<div class="post-metadata">

**Author:** ![alaminrifat](https://avatars.discourse-cdn.com/v4/letter/a/74df32/32.png) [@alaminrifat](https://forum.arduino.cc/u/alaminrifat)\
**Post date:** [July 25, 2022, 10:37am UTC](https://forum.arduino.cc/t/receive-data-in-nodemcu-8266-from-arduino-uno/1015660/11 "2022-07-25T10:37:05Z")

</div>

1. Ph sensor
2. DS18B20 Digital Temperature sensor
3. TDS Meter

---

<div class="post-metadata">

**Author:** ![GolamMostafa](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/golammostafa/32/239011_2.png) [@GolamMostafa](https://forum.arduino.cc/u/GolamMostafa)\
**Post date:** [July 25, 2022, 10:40am UTC](https://forum.arduino.cc/t/receive-data-in-nodemcu-8266-from-arduino-uno/1015660/12 "2022-07-25T10:40:38Z")

</div>

Right!

The OP may --

1. Connect one sensor with Node and see the result on SM.
2. Connect second sensor with Node and see result on SM.
3. Connect third sensor with Node and see result on SM.
4. Connect Node and UNO using SUART Port.
5. Send signal of sensor-1 from Node to UNO.
6. At UNO side collect sensor-1 signal from UART Port and show on SM.

---

<div class="post-metadata">

**Author:** ![alaminrifat](https://avatars.discourse-cdn.com/v4/letter/a/74df32/32.png) [@alaminrifat](https://forum.arduino.cc/u/alaminrifat)\
**Post date:** [July 25, 2022, 10:46am UTC](https://forum.arduino.cc/t/receive-data-in-nodemcu-8266-from-arduino-uno/1015660/13 "2022-07-25T10:46:10Z")

</div>

> [@alaminrifat](#):
>
> - Ph sensor
> - DS18B20 Digital Temperature sensor
> - TDS Meter

If it is possible to include all these three sensors in NodeMCU esp8266, would you please suggest the pin setup for these? If I can avoid UNO, there is no problem. Thank You

---

<div class="post-metadata">

**Author:** ![GolamMostafa](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/golammostafa/32/239011_2.png) [@GolamMostafa](https://forum.arduino.cc/u/GolamMostafa)\
**Post date:** [July 25, 2022, 10:46am UTC](https://forum.arduino.cc/t/receive-data-in-nodemcu-8266-from-arduino-uno/1015660/14 "2022-07-25T10:46:44Z")

</div>

> [@alaminrifat](#):
>
> - Ph sensor
> - DS18B20 Digital Temperature sensor
> - TDS Meter

Ph is analog or digital? Give the type number.  
TDS is analog or digital? Give the the number.

As @Paul_B has suggested, use only the Node and check the functionalities of all the sensors one by one.

---

<div class="post-metadata">

**Author:** ![Paul\_B](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/paul_b/32/216376_2.png) [@Paul\_B](https://forum.arduino.cc/u/Paul_B)\
**Post date:** [July 25, 2022, 10:47am UTC](https://forum.arduino.cc/t/receive-data-in-nodemcu-8266-from-arduino-uno/1015660/15 "2022-07-25T10:47:15Z")

</div>

> [@alaminrifat](#):
>
> If it is possible to include all these three sensors in NodeMCU esp8266, would you please suggest the pin setup for these?

Only when you provide the Web links to **each** of the sensors.

OK, the DS18B20 is not a problem, it is a common part. But the others are not.

---

<div class="post-metadata">

**Author:** ![alaminrifat](https://avatars.discourse-cdn.com/v4/letter/a/74df32/32.png) [@alaminrifat](https://forum.arduino.cc/u/alaminrifat)\
**Post date:** [July 25, 2022, 10:51am UTC](https://forum.arduino.cc/t/receive-data-in-nodemcu-8266-from-arduino-uno/1015660/16 "2022-07-25T10:51:58Z")

</div>

1. PH sensor  
[Analog pH Sensor / Meter Kit For Arduino Robotics Bangladesh](https://store.roboticsbd.com/sensors/523-analog-ph-sensor-meter-kit-for-arduino-robotics-bangladesh.html)

2. DS18B20 Digital Temperature sensor  
[Waterproof DS18B20 Digital Thermal Probe or Sensor Robotics Bangladesh](https://store.roboticsbd.com/robotics-parts/414-waterproof-ds18b20-digital-thermal-probe-or-sensor-robotics-bangladesh.html)

3. TDS Meter  
[TDS Meter V1.0 Module Water Quality Sensor for Arduino Robotics Bangladesh](https://store.roboticsbd.com/sensors/1717-tds-meter-v10-module-water-quality-sensor-for-arduino-robotics-bangladesh.html)

---

<div class="post-metadata">

**Author:** ![GolamMostafa](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/golammostafa/32/239011_2.png) [@GolamMostafa](https://forum.arduino.cc/u/GolamMostafa)\
**Post date:** [July 25, 2022, 11:00am UTC](https://forum.arduino.cc/t/receive-data-in-nodemcu-8266-from-arduino-uno/1015660/17 "2022-07-25T11:00:14Z")

</div>

You have two analog sensors - Ph and TDS. Node has only one ADC channel. So, leave aside the Node and use UNO which has 6 ADC channels.

But, you need Node to talk with Blynk; so, ultimately back to square; you need setup of Fig-1 of post #4.

---

<div class="post-metadata">

**Author:** ![anon85221860](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@anon85221860](https://forum.arduino.cc/u/anon85221860)\
**Post date:** [July 25, 2022, 11:48am UTC](https://forum.arduino.cc/t/receive-data-in-nodemcu-8266-from-arduino-uno/1015660/18 "2022-07-25T11:48:31Z")

</div>

@alaminrifat  
Do you have the Blynk part nailed down - or is that part on your to-do list?

---

<div class="post-metadata">

**Author:** ![PaulRB](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/paulrb/32/216330_2.png) [@PaulRB](https://forum.arduino.cc/u/PaulRB)\
**Post date:** [July 25, 2022, 12:11pm UTC](https://forum.arduino.cc/t/receive-data-in-nodemcu-8266-from-arduino-uno/1015660/19 "2022-07-25T12:11:41Z")

</div>

I would recommend an ads1115 or ads1015 module or similar to give the esp8266 some more analog inputs. This should avoid the need to use the Uno. However, the libraries for the pH and TDS sensors may not be compatible with the ads1115/1015 library, I am not sure. EDIT: a quick review of example code used with these sensors indicates no library is used, so there should be no problems using the ads1115/1015 library.

---

<div class="post-metadata">

**Author:** ![alaminrifat](https://avatars.discourse-cdn.com/v4/letter/a/74df32/32.png) [@alaminrifat](https://forum.arduino.cc/u/alaminrifat)\
**Post date:** [July 25, 2022, 12:41pm UTC](https://forum.arduino.cc/t/receive-data-in-nodemcu-8266-from-arduino-uno/1015660/20 "2022-07-25T12:41:59Z")

</div>

in todo list

[Next page](https://forum.arduino.cc/t/receive-data-in-nodemcu-8266-from-arduino-uno/1015660.md?page=2)
