[Fully Explained]--Multiple Data--Serial Communication between Arduino and NodeMCU (ESP8266)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] welcome to my BTA projects Nortec in this series we are going to see how to establish serial communication between or anon norm Co this is the example to here we are going to send multiple data between our in on Odom Co to send a single data billion or anonymous you check the link at the top of this video the comments you store already know you know an Odom Co and coming to the connections the ping 504 in know is connected to pin DFA of notum Co and pin 6 or 40 know is trying to to pin d6 of NorAm Co on coming to the working of the core no time series program such as Earth it senses a control character to the Audino and once the control character is received the ordinal since the data back and for sending multiple data we are going to use the JSON format JSON stands for JavaScript object notation and it is a lightweight data interchange format for structuring data it is basically used in non SQL databases JSON is based on key value pairs and the key is always of this type stream and the value may be of an integer or a string or an array and here is a basic example of a JSON here we are going to send to data from the ordinal to the note MCO so I have created two keys data one and data - and I am assigned the values 50 and 40 and coming to the ordinal part make sure that you are connected to already know you know in the boards and make sure that you are connected to the port hungry here we are using the software serial library software serial library which is used to create a custom serial port here the pin file is the aurochs pin and six is the TX pin and we are using the audio json library for creating and pausing the json to ensure the library we should go to sketch include library and manage libraries [Music] then search for organization make sure that you install any five point X versions because the six point X versions are in beta stages here I have installed five point thirteen point three in setup I'm initializing the serial communication that is the serial port with 9,600 bits per second and here we have created a json buffer json buffer is the memory management library for to store the json objects here we have created a static json buffer of size chosen here we have created a JSON object named root and we have stored two values you dataone is the key 100 is the value data 2 is another key and 200 is the value and if there is any control character received in the serial port it sends the data back to the NOTAM ship and now we can upload the code into the already know [Music] then coming to the NOTAM c-pod make sure you have selected the NOTAM suing the boards and make sure that you have selected the comm port here same as we used in already know a serial port is created and the pin d6 is make made a saw or X and D Phi is made a sortie X and we have imported the organizational library and here we have initialized the default serial communication in 9,600 bits per second on the custom serial port yes with 9,600 bits per second and we have created the json buffer and the json object is created and the data is retrieved from the serial port json buffer dot pause object obvious so the json data received in the serial 40's will be parsed and it will be stored in the json object route so here we are retrieving the data from the serial port and we are storing it in the JSON object route and here you are checking whether the json is in the value format or not [Music] if the data is not in the well from it we return out of the loop and here we are accessing the data on printing it in the serial monitor we can access the data like with the key value pairs root of data one returns the value in it root of data two returns the value in it to see the data we can open the serial monitor [Applause] now we should upload the code into the northern Co [Music] [Applause] [Applause] now the code has been uploaded successfully to see the output we can open the serial monitor thank you for watching this video you a doctor if you so this just some interesting projects in the comment section and the next video will be used subscribe our channel for more videos do like and share it with difference [Music]
Info
Channel: Learnorz
Views: 47,120
Rating: undefined out of 5
Keywords: serial communication, arduino uno, nodemcu, arduino, circuit diagram, code, mybtech, mybtechprojects, mybtechprojects.tech, between arduino and nodemcu, free project, cheap, best project, serial commu
Id: IS7kpna9-sg
Channel Id: undefined
Length: 9min 8sec (548 seconds)
Published: Tue Feb 05 2019
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.