Using Sharp IR GP2Y0A51SK0F Distance Sensor with Arduino (2cm to 15cm)

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

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

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

    hello ahmad, i have been watching your videos for a few weeks now and you help me so so much with my learning!!
    thanks a lot, greetings from switzerland :D

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

      Hello @KryptekSR, You are welcome. I am glad it helped. Stay safe.

  • @Chieh-AnLiao
    @Chieh-AnLiao 4 месяца назад +1

    Thank you teacher, this video and code helped me a lot in my current project.

    • @robojax
      @robojax  4 месяца назад

      That's great!

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

    I am very tensed as I have to make an arduino coin operated water dispenser and I think you can only make it as you are the only youtuber who explains very nicely

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

      And Ahmad I you will help me it would be a great feeling for me

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

      use raspberry pi. Read my previous comments.

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

      @@robojax can I use arduino

  • @astro7267
    @astro7267 7 месяцев назад +1

    I’m using this sensor for an esp32, but although I changed the mcu voltage to 3.3 and resolution to 12bit it’s not accurate. What would I need to change in order for it work properly.

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

    Very helpful video 👍

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

      Glad you think so!

  • @muhammadrizkyakbarhazaki5785
    @muhammadrizkyakbarhazaki5785 5 месяцев назад

    Sorry ,can you tell me how to get the Vout of sensor and the curve as well sir

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

    Thank You Robojax

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

      you are welcome.

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

    Nice video... 😍

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

    Sir does this work in the presence of sunlight?

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

      I have not tested. But definitely it should be affected by sun rays as they contain infrared.

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

    hey great video! i had a few questions. if the sensor works on reflected light intensity does that mean that if you use it on a surface that absorbs IR light that it might give false readings? (im assuming that it would register a very low voltage output even if the surface is very close). on the data sheet its has a note that mentions that the reflectivity of the surface will not be a consideration because it uses the "triangulation method" can you explain how this compensates for a material that absorbs IR light? sorry if these are silly questions, im new to all of this and know very little.

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

    Writing to see if anyone has performed any tests with reflective adhesive tape for objects that are particularly troublesome for the Sharp IR Distance sensor. Thank You!

  • @aldilukmansyahp.y3011
    @aldilukmansyahp.y3011 Год назад

    can i use this formula from fitting curve for sharp 4-30cm??

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

      the datasheet is provided. Yes you can use.

    • @aldilukmansyahp.y3011
      @aldilukmansyahp.y3011 Год назад

      @@robojax so i can use 33.9 + -69.5x + 62.3x^2 + -25.4x^3 + 3.83x^4 this fitting curve equation for the Sharp IR GP2Y0A41SK0F 4-30cm??? or i need make another fitting curve?

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

    Theoretically could this sensor detect distances through water?

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

      have no tested and not sure if infrared reflect from surface of water or not.

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

    Hello sir, can you tell whether can we take input from digital pins, if no then why not? thnk u sir

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

      have you watched the video? this is outputting voltage proportional to the distance. it does not have any chip or register to record it inside. we use Arduino to do it.

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

      @@robojax thank u for time sir..,yeah we are taking analog input from the Arduino...but y it is not taking digital input...as we r measuring Ur sensor with digital pins..?...

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

    Sir i want high speed switching solid state relay to off and on the DC-load , that means the relay will operate high switching speed for example - i will give the delay (10)or, this relay will able to on off the load more than hundred times in 30 seconds are more, please🙏 tell me the the good solid state MOSFET relay

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

      My load is (DC)solenoid I will operate four solenoids one by one with I switching speed using relays route to give the good suggestion for using the good solid state relay using MOSFET are any other I switching speed components

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

      Hi, why posted your comment under distance sensor? Your question is not related to this and anything we say will not benefit other. The whole purpose of RUclips is so everyone can benefit and learn for free. Please post your question under the relevant video and I will see it. I have ONE page where I see all comments and I NEVER miss any comment.

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

    Very good, tks

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

      Thank you too!

  • @أيادالدليمي-ك6ظ
    @أيادالدليمي-ك6ظ 4 года назад

    عمل رائع جداً 👍

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

      من الجيد سماع ذلك.

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

    I have problem with measuring distance, in real life distance between sensor and box is 10 Cm but the measuring distance form sensor is 9 Cm. Can you solve this? Thank you

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

      I have provided the formula and spreadsheet data so you can see and fix it. change your reference pint. May be it is accurate and you look at wrong point. Chose another point and measure different objects. when I say reference point I mean from the sensor to the object.

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

      @@robojax Thank You. Your solution is work on my Project :)

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

    Hey i try it with esp32 unfortunately i only get 8cm out and really no change

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

      of course it will not work. we are reading voltage that represented as distance. Reading voltage with ESP32 is totally different. I have videos on how to read voltage using ESP32 or reading potentionmeter search for it. Here is how to find Specific RUclips Video in a channel bit.ly/findRUclipsVideo

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

    how do i make ur code work for my sharp ir 2y0a710 F ?

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

      I don't remember the specific model but I have more videos. Search for the keyword sharp. Here is how to find Specific RUclips Video in a channel bit.ly/findRUclipsVideo

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

      @@robojax ok thank u

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

    Hey Ahmad please design an arduino coin operated water dispenser for me please

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

      You posted 6 or 7 messages. you can always edit. just click on the 3 dots and edit your post.

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

      Here see it snipboard.io/eawCtO.jpg

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

    Please sir make a arduino coin operated water dispenser

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

      very complicated. Specially to recognize the value of coin. Thermal imaging and infrared is needed. not easy. Raspberry Pi should be best tool for that.

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

    And I also want a Vending Machine that would be designed by you and If you will help me it would be great

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

      😊very complex project. it needs Raspberry Pi and may be 10 people need it.