Sending Data from an Arduino to Python | Pyserial | DHT11

Поделиться
HTML-код
  • Опубликовано: 5 янв 2025

Комментарии • 40

  • @alecabuan6674
    @alecabuan6674 2 года назад +4

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

  • @coreydufeal2778
    @coreydufeal2778 2 года назад

    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.

  • @brunosm0
    @brunosm0 4 года назад +2

    you are genious explaining this things to others, thank you

  • @bijonmathew1001
    @bijonmathew1001 3 года назад

    Thanks, I was just looking for this .

  • @cometmace
    @cometmace 4 года назад

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

  • @sitinuruliman7789
    @sitinuruliman7789 3 года назад +1

    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?

  • @victormungai
    @victormungai 3 года назад

    This person just saved my degree🤣🤣🤣

  • @electricalcoder3025
    @electricalcoder3025 4 года назад

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

  • @mauliadianti
    @mauliadianti 4 года назад +1

    thankyou for the tutorial

  • @NitrojamREC
    @NitrojamREC Год назад

    Thank you!

  • @edgaromarreynatorres3940
    @edgaromarreynatorres3940 3 года назад

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

  • @kacper925
    @kacper925 4 года назад

    very helpful, thanks!

  • @bogdanapachitei3284
    @bogdanapachitei3284 4 года назад +1

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

  • @prasadvaidya9563
    @prasadvaidya9563 4 года назад

    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????

  • @rverm1000
    @rverm1000 3 года назад

    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

  • @mayureshkulkarni4534
    @mayureshkulkarni4534 3 года назад

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

  • @cometmace
    @cometmace 4 года назад

    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?

  • @omereroglu6772
    @omereroglu6772 3 года назад

    good job
    thank you

  • @saianishmalla2646
    @saianishmalla2646 4 года назад

    good video mate :)

  • @Slayer-ft6tl
    @Slayer-ft6tl 2 года назад

    why should the connection be re-established everytime as shown here?

  • @Manuelol
    @Manuelol 3 года назад

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

  • @kimatong1166
    @kimatong1166 3 года назад

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

  • @TykeBread
    @TykeBread 3 года назад

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

  • @akshatpande1649
    @akshatpande1649 4 года назад

    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

    • @thatsengineering5235
      @thatsengineering5235  4 года назад +1

      Yes, you can try the arduino.write (variable_name) attribute of the Pyserial lib

  • @027_lakshaynegi6
    @027_lakshaynegi6 3 года назад

    Can we send data from pc to MCU?

  • @sreekantha4025
    @sreekantha4025 3 года назад

    I am getting empty data while reading the lines from serial like empty b ' ' could any one help me on this

  • @ravishah8176
    @ravishah8176 4 года назад

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

  • @mariopadilla1524
    @mariopadilla1524 4 года назад

    can it be done if i want to send data via bluetooth?

    • @behnammobaraki5091
      @behnammobaraki5091 3 года назад

      Hey. Have you found any solution for bluetooth connection between Arduino and Raspberry Pi then saving the data?!! I have the same problem!!!!

  • @ilkeraykut7064
    @ilkeraykut7064 4 года назад

    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?

    • @Manuelol
      @Manuelol 3 года назад

      You could use a wireless USB cable, but the computer must be connected to the arduino via an USB cable in order to get the data from the python code.

  • @achmadarifmunaji3320
    @achmadarifmunaji3320 4 года назад

    then what if we want to send data from Arduino via the internet, please explain how, thank you

    • @thatsengineering5235
      @thatsengineering5235  4 года назад

      You would need a WiFi module to connect the Arduino to the internet. You can use an ESP8266 module or a NodeMCU (ESP 12) to do this.

  • @-scieng-6592
    @-scieng-6592 4 года назад

    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.

  • @ademguler8931
    @ademguler8931 3 года назад

    i have a error in your arduino code and i cant fixed.

  • @leonhs1476
    @leonhs1476 4 года назад

    why does my python look so different im confused

  • @henkoegema6390
    @henkoegema6390 3 года назад

    Thanks for interesting video.
    However, this line in my program: "arduinoData=serial.Serial('/dev/ttyACM0',115200)" gives me
    error: arduinoData=serial.Serial('/dev/ttyACM0',115200) AttributeError: module 'serial' has no attribute 'Serial'
    I am running my program in a virtual environment (venv) an have imported module pyserial3.5.

    • @bijonmathew1001
      @bijonmathew1001 3 года назад

      have you installed pyserial. If yes and still you have problem then I believe you might have named your python file as serial.py . If that is the case change the name .