Sending Data from an Arduino to Python | Pyserial | DHT11

preview_player
Показать описание
Sending Data from an Arduino to Python Tutorial | Pyserial | DHT11

This video will look at how sensor data can be transmitted from an Arduino to Python via the serial port. The Pyserial and Schedule python libraries will be used, along with a DHT11 sensor.

--------------------------------------------------------------------------------------------------------------------
Arduino and Python scripts

Arduino code:

Python code:

Circuit diagram:

---------------------------------------------------------------------------------------------------------------------
DHT11 Sensor:

---------------------------------------------------------------------------------------------------------------------
Intro music:
Happy Rock

----------------------------------------------------------------------------------------------------------------------
Thumbs up and Subscribe Icons are made by

-----------------------------------------------------------------------------------------------------------------------
Hope this video helps.

If you have any questions, please leave a comment, and don't forget to like and subscribe.

Cheers!
Рекомендации по теме
Комментарии
Автор

Solved all my problems in such a short video. Amazing!

alecabuan
Автор

you are genious explaining this things to others, thank you

brunosm
Автор

Very clear and precise video. I appreciate it. In all the videos I have watch on how to send data from Arduino to Python this one actually clearly defined the steps and why we do what we do.

coreydufeal
Автор

Thanks, I was just looking for this .

bijonmathew
Автор

Up and running reading data from the Arduino in less than 10 minutes. Thanks.

cometmace
Автор

Superb..work I subscribed..too...I will encourage..to my extreme...as we have the same...passion..and the very Best from Electrical Coder 👍

electricalcoder
Автор

I want to use a 16 to 1 mux chip with an arduino to read 16 voltages continously. This video will help in accomplishing that

rverm
Автор

In python codes, what if I want to split multiple data values, for example I have 3 sensors reading. So what codes need to be done? it is the same?

sitinuruliman
Автор

Thanks for help you . It doesn't work for Atmega 2560,
receives erroneous information from serial . Do you have a solution please?

bogdanapachitei
Автор

I’m setting the timeout to 2 while creating the serial object. When I’m reading from serial port I’m checking wether data is present in input buffer by :
if(obj.inWaiting>0) :

If the data packets are interrupted it hangs in there.... I have given timeout value as 2 still it’s waiting indefinitely... why it’s not considering timeout value????

prasadvaidya
Автор

Can we add a counter to the values that are being read from arduino?

mayureshkulkarni
Автор

thanks, tried this but was only able to get it working by using

arduino_data = arduino.read()

instead of

arduino_data = arduino.readline()

Also, I do not get the exact values, decimals, just rounded to the nearest value.

-scieng-
Автор

So the values sensor are in
list_variables [1]
list_variables [2]
???

edgaromarreynatorres
Автор

Why open and close the serial port in a loop? Why not open, enter a loop, close when loop finishes? Is there some disadvange to keeping a quiet serial port open?

cometmace
Автор

can we do the reverse?? like send a string of data to arduino because i wanted to send my x and y stepper values to the arduino from python

akshatpande
Автор

Thanks for the video.I have question.How can we do this without Arduino USB cable? How can we communicate python and arduino without cable?

ilkeraykut
Автор

Why your (-) of HDT11 is connected to 3.3V?

kimatong
Автор

is there a way to constantly read the arduino without it pausing everytime it reads

TykeBread
Автор

How can i write in the serial port of the arduino tho?

Manuelol
Автор

Greeting
How can i transfer data from Arduino serial monitor to website automatically.

ravishah