Serial Port Communication between PC and Arduino using Python 3 and PySerial Tutorial for Beginners

Поділитися
Вставка
  • Опубліковано 10 вер 2024

КОМЕНТАРІ • 39

  • @XanthiumIndustries
    @XanthiumIndustries  2 роки тому +4

    👋Please Subscribe 👈

  • @qozia1370
    @qozia1370 10 місяців тому +4

    This is wonderful! The only tutorial on UA-cam that shows the whole process!
    Thank you.
    I like how calm your voice is btw! Most channels try to be too active and shout!
    I almost never subscribe but subscribed to you.
    Cheers.

  • @batuhanisktas553
    @batuhanisktas553 9 місяців тому +1

    I was trying to send 130 integer data from Python to Arduino for days. I had used just serial.Serial('COM4' , 9600) . I had not used as you used. Now, I did the same thing as you and it worked.

  • @omodolapojaiyesinmi8515
    @omodolapojaiyesinmi8515 2 роки тому +3

    good work expecting pserial exception video soon expecially how to clear the memory after serial communication without ending serial which makes the arduino or esp32 respond faster

  • @rahul_sreedharan
    @rahul_sreedharan 2 роки тому +1

    Hey nice tutorial,well done.it was quite helpful

  • @nguyenninh2094
    @nguyenninh2094 9 місяців тому +1

    can I send data from arduino to py and vice versa in a same program ? Like datas from sensors

  • @ahmadhafiz2916
    @ahmadhafiz2916 4 місяці тому

    I have this error
    Traceback (most recent call last):
    File "E:\Downloads\peoplecounteryolov8-main\peoplecounteryolov8-main\test 26april buzzer.py", line 39, in
    arduino = serial.Serial(arduino_port, baud_rate, timeout=1)
    AttributeError: module 'serial' has no attribute 'Serial'

    • @XanthiumIndustries
      @XanthiumIndustries  4 місяці тому

      have you installed pyserial using pip.pyserial is not installed by default.check the spelling of your pyserial function also?

  • @pekorabestgirl543
    @pekorabestgirl543 Рік тому +1

    Hello, I have a question.
    Since I don't have Arduino uno, is it possible if I just connect two PC with usb to RS-232 converter and have 1 pc send signal to the other using serial.write() and use serial.readline() to receive?

  • @balakishore1274
    @balakishore1274 Рік тому +2

    I canot find a port section in device manager

    • @XanthiumIndustries
      @XanthiumIndustries  Рік тому +1

      you need to connect some device to your USB port that will act as a Virtual COM port for Eg Arduino UNO,Arduino Mega,USB to serial converter chips like FT232 or CP210x and the drivers for those chips installed.
      Then check the device manager or refresh it

  • @mr_tpk
    @mr_tpk 9 місяців тому

    Thank you 🎉

  • @aboubakarmohamadou3152
    @aboubakarmohamadou3152 6 місяців тому

    Thank you, but i have some issues : SerialException: could not open port 'COM6': PermissionError(13, 'Accès refusé.', None, 5)
    No specific suggestions for this error (yet).

    • @XanthiumIndustries
      @XanthiumIndustries  6 місяців тому

      is your com port number com6?check that first,go to device manager find the com port number and substitute in for com6

  • @user-ol1ic3mt9u
    @user-ol1ic3mt9u 9 місяців тому +1

    How do we send sensor data from Arduino to the pc directly?

    • @XanthiumIndustries
      @XanthiumIndustries  8 місяців тому

      we are sending data directly from Arduino to PC and vice versa here. Could you be more specific

  • @mashrishi
    @mashrishi Рік тому +2

    Great tutorial. Is it possible to listen to the a COM port continuously and capture a string upon arrival with out over loading the winXP PC? I suppose using some kind of COM wake up on interrupt or similar concept.

    • @XanthiumIndustries
      @XanthiumIndustries  Рік тому

      I dont think that is possible on a Windows XP or a Windows 10 system. That would require access to the underlying hardware directly
      and most of the time on x86 PC the serial port is virtual and runs on the USB hardware.
      You may be able to do it in some embedded linux systems that would allow you direct access to the hardware.
      I think you can do a network wakeup where the whole PC starts up on receiving a network packet through the LAN cable
      Hope this helps

    • @XanthiumIndustries
      @XanthiumIndustries  Рік тому

      Do Subscribe to our channel if you are interested in learning about embedded systems ,electronics or programming.

  • @marodfmaro5912
    @marodfmaro5912 Рік тому +1

    great

  • @muzamilabbaskhakwani7271
    @muzamilabbaskhakwani7271 4 місяці тому

    No pyvenv.cfg file
    this appears if I check my python version. please help

    • @XanthiumIndustries
      @XanthiumIndustries  4 місяці тому

      Are you trying to create a virtual environment using env

  • @vthelagan2198
    @vthelagan2198 4 місяці тому +1

    can we do the same with esp32 wroom 32 board

    • @XanthiumIndustries
      @XanthiumIndustries  4 місяці тому +1

      Our code deals with the PC side of things,Yes you can use it to communicate with the ESP32

  • @pranav6528
    @pranav6528 5 місяців тому +1

    I can't find the cs file generated

  • @grindhawg31
    @grindhawg31 Рік тому

    I was referred from Twitter

  • @XanthiumIndustries
    @XanthiumIndustries  4 місяці тому

    added subtitles for the video

  • @Trade_Studs
    @Trade_Studs Рік тому +1

    Hello sir com4 not showing

    • @XanthiumIndustries
      @XanthiumIndustries  Рік тому +1

      COM4 is what the arduino is assigned in my system, In your system COM number will be different, do change it.
      Plug your Arduino to PC and check the device manager for the correct COM number.
      Or you can check it in the arduino ide Menu settings,Tools-> Port

  • @user-kx8lm3oi1k
    @user-kx8lm3oi1k Рік тому

    Thanks you