How to read any sensor using only Arduino and Python

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 มิ.ย. 2024
  • Hello everyone!
    In this video, I'll show how you can control your Arduino board and any sensor connected to it using only Python and Arduino. We are going to use Serial Communication to do it. First, we'll see how we can control any device connected to the Arduino Board such as LED's, motors, and so on. After this, we're gonna see how we can read the data from any sensor connected to the Arduino Board.
    CODE and CIRCUIT: github.com/Amajo0209/How-To-R...
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 44

  • @josephdreamz
    @josephdreamz  2 ปีที่แล้ว +1

    Hello Guys!!! I am sorry for the delay, so here you have the code link. github.com/Amajo0209/How-To-Read-Sensor-Data-Using-Python-and-Arduino

  • @jonathaniskandar8817
    @jonathaniskandar8817 ปีที่แล้ว +1

    Thank you JOSEPH, GOD Bless you🙏

  • @priyanshukumar4181
    @priyanshukumar4181 ปีที่แล้ว

    Thank You SIr, Your Video Really Help me in My College Project.😄😄😄

  • @IMHVideos108
    @IMHVideos108 2 ปีที่แล้ว +4

    Good job Joseph! Keep doing magic!

    • @josephdreamz
      @josephdreamz  2 ปีที่แล้ว

      you can check out my blog page. th-cam.com/users/redirect?event=video_description&redir_token=QUFFLUhqbDVzUWtOV0VUM1dSN1hQQUFaa0oxTHJ5MFdJZ3xBQ3Jtc0tsdjl0Y0NRdXgzaEc4R1M4c2VMcUE4cDBSR3VDZnctSDBac2lmVWRIbDVkYi1RRnoxbk02Q3IyNHRieXR6SElFazA2aFZIZzZtcEVrSm1qaWxVeXNlMXA1ZW5RTnlxc3g0UHNzcWtzWmJJZ2RDQnNfSQ&q=http%3A%2F%2Fblog.josephdream.tech%2Fblogdream%2Findex.php%2F2021%2F08%2F06%2Fcontrol-your-sensors-using-python-and-arduino%2F

  • @praisekelechi3463
    @praisekelechi3463 ปีที่แล้ว

    Thanks for the knowledge bro

  • @vpnvpn5267
    @vpnvpn5267 2 ปีที่แล้ว

    thank you JOSEPH

  • @ecpython7141
    @ecpython7141 2 ปีที่แล้ว +1

    Hi Joseph, thanks for your great sharing. I am trying to get the current from the Adafruit INA219 current sensor. I can do it successfully in Arduino sketch but not in python. Could you kindly advise how to do it in python?

  • @bwirepatrick
    @bwirepatrick 2 ปีที่แล้ว +1

    I really appreciate the work bro Thanks so much but all your blog links don't work yet would like to reach out on you

  • @prathmesh5743
    @prathmesh5743 ปีที่แล้ว

    Great work!!!!

  • @ThatGrimBoy
    @ThatGrimBoy ปีที่แล้ว

    This guy is truly underrated...

  • @kychemclass5850
    @kychemclass5850 2 ปีที่แล้ว

    Hi Joseph. Any idea how to get Libreoffice Calc to receive the data from the arduino so the data can tap into Calc's powerful charting and spreadsheet data manipulation features?. P.S. Libreoffice Calc supports python script embedding.

  • @RandomGuy-df1oy
    @RandomGuy-df1oy ปีที่แล้ว

    Great video! How to run it without USB cable with wi-fi connection?

  • @ashokshrestha7427
    @ashokshrestha7427 2 ปีที่แล้ว +2

    Hey Joseph It is a very helpful video. Thank for sharing. It helped me a lot. I am trying to write some code to do a little different. Can you please help me out.
    Here is what I am trying do.
    1. I have written some code in python using pyautogui and it does some magic. Then after that I want it to send command in Arduino to blink led to indicate that the first job has been done.
    2. After couple of blinks again python has to run its second part of script and again after completing it has to send command in Arduino to blink led.
    Can you please help me out to find the right way to do this? Please please please.

  • @jobnogemane6870
    @jobnogemane6870 ปีที่แล้ว

    Write some code to de-serialise TCP data from 4different scales (different IP address) to be visualise
    as digital LED object. The value that is being read is weight. Use python. Could u plz assist in this question

  • @Mtupo
    @Mtupo 2 ปีที่แล้ว

    Hi. Good job. There are no links for the source on your blog. I can only see adds

    • @josephdreamz
      @josephdreamz  2 ปีที่แล้ว

      github.com/Amajo0209/How-To-Read-Sensor-Data-Using-Python-and-Arduino

  • @durgeshballa6454
    @durgeshballa6454 2 ปีที่แล้ว +1

    really nice video but i really need help in how to get the data of the distance sensor in integer format and add/subtract another integer from it.
    can you please provide me code for that

    • @jacoboneill3735
      @jacoboneill3735 2 ปีที่แล้ว +1

      Would need to test it but all I can imagine you need to do is convert the input into a string, split it around just the data and then convert that string into a float:
      myData = Arduino.readline()
      stringData = str(myData)
      formatData = stringData.split(": ")[1].split("c")[0]
      floatData = float(formatData)
      Don't know if this 100% works but I hope it helps

    • @josephdreamz
      @josephdreamz  2 ปีที่แล้ว

      github.com/Amajo0209/How-To-Read-Sensor-Data-Using-Python-and-Arduino

  • @ibrahimahmedabderemane9976
    @ibrahimahmedabderemane9976 2 ปีที่แล้ว

    I can’t access the code and circuit link...can you help me please

  • @waleedaiad3411
    @waleedaiad3411 2 ปีที่แล้ว

    How can i use hc-12 with arduino using python language???

  • @thabisomaisela7497
    @thabisomaisela7497 2 ปีที่แล้ว +1

    good video, it helped me with my project a lot however I must say I am deeply saddened at the fact that the code is not provided

    • @josephdreamz
      @josephdreamz  2 ปีที่แล้ว

      blog.josephdream.tech/blogdream/index.php/2021/08/06/control-your-sensors-using-python-and-arduino/

    • @josephdreamz
      @josephdreamz  2 ปีที่แล้ว

      you can check out the link above

    • @vamshikrishnareddybomminen1739
      @vamshikrishnareddybomminen1739 2 ปีที่แล้ว

      @@josephdreamz link is not working man

  • @akhilani5610
    @akhilani5610 2 ปีที่แล้ว

    Ur website isn't loading....if there is any alternate way

  • @superbcutter16
    @superbcutter16 ปีที่แล้ว

    I am using jupyter notebook and its not working for me

  • @vlogreactionpg
    @vlogreactionpg ปีที่แล้ว

    I am not able to upload code in ardunio please help me
    I got error ::=== Sketch uses 20760 bytes (64%) of program storage space. Maximum is 32256 bytes.
    Global variables use 1574 bytes (76%) of dynamic memory, leaving 474 bytes for local variables. Maximum is 2048 bytes.
    avrdude: ser_open(): can't set com-state for "\\.\COM5"
    Failed uploading: uploading error: exit status 1

  • @muhammadkhalis9051
    @muhammadkhalis9051 2 ปีที่แล้ว

    hi the link is not working

  • @prathmesh5743
    @prathmesh5743 ปีที่แล้ว

    I want to get data from sensor to flask project.

  • @robertschemmel50
    @robertschemmel50 2 ปีที่แล้ว

    Your PIP is covering up the python code

  • @tihon4979
    @tihon4979 2 ปีที่แล้ว +1

    Couldn't see a part of code :(

    • @josephdreamz
      @josephdreamz  2 ปีที่แล้ว

      which part?

    • @jacoboneill3735
      @jacoboneill3735 2 ปีที่แล้ว +1

      I'm assuming its Arduino.readline() but idk

  • @robertschemmel50
    @robertschemmel50 2 ปีที่แล้ว

    Why did you cover up the code with the image of the arduino ? That makes no sense

  • @user-ph2mr2ki5t
    @user-ph2mr2ki5t ปีที่แล้ว

    You not showing the code completely, and hiding behind Altra-Sonic sensor..

    • @josephdreamz
      @josephdreamz  ปีที่แล้ว

      The link for the code is in the comment section

  • @ethantong6270
    @ethantong6270 2 ปีที่แล้ว

    Hey Joseph, i couldnt see part of the code, which it bothers me so much. Can you please put the codes in the comment. Thankyou

    • @rgragulraj
      @rgragulraj 2 ปีที่แล้ว +2

      import serial
      Arduino = serial.Serial('COM3',9600)
      while True:
      if (Arduino.inWaiting()>0):
      myData = Arduino.readline(10)
      print(myData)

  • @rohitsingh-ds2wv
    @rohitsingh-ds2wv ปีที่แล้ว

    𝒾𝓉'𝓈 𝒶𝓌𝑒𝓈𝑜𝓂𝑒