How to control Servo motor with proximity sensor with Arduino Uno

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

КОМЕНТАРІ • 164

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

    Gracias,por fin encontre una buena explicacion,un abrazo.

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

    Thank you, I finally found a good explanation, a hug.

  • @Jayzy1322
    @Jayzy1322 7 місяців тому +1

    Thank you so much for this wonderful work! Helps a lot!

  • @MereyAbdulla-u4x
    @MereyAbdulla-u4x 2 місяці тому +1

    Good work buddy!!!!!But do you have schedule of it?I really need it,hope for your answer!!!!!❤❤❤

    • @passiontechklm
      @passiontechklm  2 місяці тому +1

      @@MereyAbdulla-u4x Thanks bro... means what kinds of schedule?🤗

  • @charmellegalacio9703
    @charmellegalacio9703 8 місяців тому +1

    hello, can i use arduino uno r3 board for that?
    did u use DC female adapter cables and 12V DC power supply adapter where the wire of the inductive is connected?

  • @Hallo_fromliam
    @Hallo_fromliam 8 місяців тому +1

    Hello there, where should we put the wires of the capacitive proximity sensor and inductive proximity sensor? The object passes through both an inductive sensor and a capacitive sensor, and it will detect plastic only.

    • @passiontechklm
      @passiontechklm  8 місяців тому +1

      As long as the same voltage than You can use as the same wiring and link out put together as well

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

    Have same project but use capacitive proximity sensor. It said it needs 24 volts for it to sense plastic. If i connect it to arduino, is it possible to burn the Arduino? So i should use resistor about 100 ohms since sensor capacity is 300mA

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

      You can use this wiring connection its safe because 24v to supply is only for Sensor but you can not supply 24v to Arduino just use separate power supply or dc to dc step down converter for Arduino

  • @ficchi6756
    @ficchi6756 8 місяців тому +1

    Is the 12V power supply u use the same as laptop charger?

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

      The same look but different voltage because mostly laptop charger are 19v.

  • @ficchi6756
    @ficchi6756 8 місяців тому +1

    What's the thing you connected to the wire connector called? The one with two red wires?

    • @passiontechklm
      @passiontechklm  8 місяців тому +1

      That is just connetor only you can you any connetor

  • @Hélène-r6g
    @Hélène-r6g 7 місяців тому +1

    is the sensor compatible with Raspberry pi 4? Also it's challenging for me to differentiate inductive and capacitive proximity sensors. can you advice, please? I want to detect metallic and plastic objects for my project.

    • @passiontechklm
      @passiontechklm  7 місяців тому +1

      Yes, this sensor is compatible with both raspberry and Arduino.Inductive is only detect metal and capacitive proximity is for both metal and plastic,

    • @Hélène-r6g
      @Hélène-r6g 7 місяців тому

      @@passiontechklm thank you I think I have both inductive and capacitive but when i try to use them it seem that both are inductive. LJ12A3-4-Z/BY and LJC18A3-B-Z/BX.

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

    This sensor can be used by replacing an ultrasonic without changing the code. my project is smart dustbin?

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

      This code can not use for smart dustbin project.Here is Smart dustbin project with code and diagram bro...ua-cam.com/video/Hn6w1s2tcno/v-deo.html

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

      internet have million project ready to use whit code arduino ultrasonic sensor, detect object or measure dimension or many many project have.

  • @peekachoo3985
    @peekachoo3985 8 місяців тому +1

    Thank you❤

  • @nujnujkun
    @nujnujkun 6 місяців тому +1

    can i directly put 12v dc to dc jack arduino and not using wire connector for proximity sensor?

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

      Yes, you can use directly to DC jack.

    • @nujnujkun
      @nujnujkun 6 місяців тому +1

      @@passiontechklm the arduino won't burn?

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

      @@nujnujkun Arduino can give power via DC jack up to 12vdc,so won't fry it out.

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

      @@passiontechklm is it possible to have capacitive and inductive proximity?

  • @nashjavier8312
    @nashjavier8312 11 місяців тому +1

    What power supply did you use for capacitive proximity sensor?

    • @passiontechklm
      @passiontechklm  11 місяців тому

      I use 12VDC Adaptor

    • @nashjavier8312
      @nashjavier8312 11 місяців тому +1

      Where i can buy it?

    • @nashjavier8312
      @nashjavier8312 11 місяців тому +1

      And what kind of 12 volt adopter?

    • @passiontechklm
      @passiontechklm  11 місяців тому

      @@nashjavier8312 You can use 12V 2A for this project shp.ee/vmn4hp4

  • @casibangkennethreygabriels4741
    @casibangkennethreygabriels4741 6 місяців тому +1

    Can I ask what type of power supply can I use to supply the power in capacitive proximity sensor that have a 6-36 VDC, can I use charger like charger of laptop or other charger that has a 12 V

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

      Yes you can use laptop charger or anything between 6-36vdc

    • @casibangkennethreygabriels4741
      @casibangkennethreygabriels4741 6 місяців тому +1

      @@passiontechklm do I need to use other electronic component to connect the wire of capacitive sensor on the laptop charger or charger

    • @passiontechklm
      @passiontechklm  6 місяців тому +1

      You don't need anything components,you just need 12VDC 2 Amp power supply or use your laptop charger, just make sure to connect positive and negative wire correctly to sensor is fine

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

      @@passiontechklm what type of voltage do I need output or input that need a 12V

  • @ficchi6756
    @ficchi6756 7 місяців тому +2

    I tried it and it work. However, i tested it again later just to make sure and the servo motor is not spinning. But when i take off the d5 and d4 pin the servo motor spins a bit. Any solution to this?

    • @passiontechklm
      @passiontechklm  7 місяців тому

      This happen when Servo currently is not enough from Arduino output voltage so I suggest you give extra 5vdc to Servo motor it will solve.

    • @ficchi6756
      @ficchi6756 7 місяців тому

      @@passiontechklm how do you add voltage to servo? Sorry new to this.

    • @ficchi6756
      @ficchi6756 7 місяців тому +1

      Can you make the same video with how to add voltage to servo motor?

    • @passiontechklm
      @passiontechklm  7 місяців тому

      @@ficchi6756 coming soon I will make it

    • @ficchi6756
      @ficchi6756 7 місяців тому

      @@passiontechklm Thank you! Can you please do it this week? My project deadline is near😭

  • @charmellegalacio9703
    @charmellegalacio9703 8 місяців тому +1

    can i also use LJ12A3-4-Z/BX New Inductive Proximity Sensor

  • @savagedragon283
    @savagedragon283 Місяць тому +1

    can i use microsonic sensor instead of proximity sensor? plz reply :)

    • @passiontechklm
      @passiontechklm  Місяць тому

      @@savagedragon283 You must check your sensor voltage either is 12v or not for not to burn out the Sensor .If yes than should be fine.

    • @savagedragon283
      @savagedragon283 Місяць тому

      @@passiontechklm thank you for the information♥️

    • @savagedragon283
      @savagedragon283 Місяць тому +1

      @@passiontechklm i was also considering tfmini LiDAR is that any good?

    • @passiontechklm
      @passiontechklm  Місяць тому

      @@savagedragon283 As i mention in above the sensor voltage is always important for safety. Second is the sensor need to be 3 wire mean 2 for positive and negative 1 for Signal out put.It will work perfectly

    • @savagedragon283
      @savagedragon283 Місяць тому +1

      @@passiontechklm thank you soo much for the information ♥️♥️

  • @MichaelGuarte
    @MichaelGuarte 7 місяців тому +1

    Can I change the sensor with Infrared Sensor to make it detect plastic bottles while using the same code???

  • @casibangkennethreygabriels4741
    @casibangkennethreygabriels4741 8 місяців тому +1

    Can I ask if I'm going to use Capacitive Proximity Sensor 6-36 DC how can I connect that in Arduino, what battery I need to used for this type of voltage

    • @passiontechklm
      @passiontechklm  8 місяців тому +1

      You can use exactly this method because I am use 6-36vdc inductive proximity sensor so I use 12vdc power supply here

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

      @@passiontechklm thank you for your answer

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

      ​@@passiontechklmlast questions can you give me a specific example of 12vdc power supply, because I'm new be in electronics and I don't have enough knowledge

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

    hello what is the red and black wire outside where it is connected ?

  • @ficchi6756
    @ficchi6756 8 місяців тому +1

    Can I use female jack adapter as a substitute for the wire connector?

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

      Yes, you can use that it just connetor only

    • @MerianSmith-tq3rk
      @MerianSmith-tq3rk 6 місяців тому +1

      @@passiontechklm what is the name of white materials you used to connect wire

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

      @@MerianSmith-tq3rk that is just connetor, you can use any type of connector

    • @MerianSmith-tq3rk
      @MerianSmith-tq3rk 6 місяців тому

      @@passiontechklm like what?

    • @MerianSmith-tq3rk
      @MerianSmith-tq3rk 6 місяців тому +1

      @@passiontechklm thanks,,,i have a question again, is it ok if we use a 11 voltage battery as a power supply?

  • @mhmdaniq
    @mhmdaniq 8 місяців тому +1

    hello can i ask how about to connect 2 supply…1 at sensor 1 to jack

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

    hello, is it safe to connect the 12v to arduino or did you use a relay? Thank you

    • @passiontechklm
      @passiontechklm  11 місяців тому

      It's safe to use 12VDC to Arduino via DC jact or VCC In ,because it's has built in 5V Requlator.

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

    Good day sir! I am working on a project wherein I uses capacitive sensor to detect plastic, there is also a servo motor attached. But I have a problem, if I try to detect the plastic using capacitive sensor the servo motor doesn't move but if it doesn't detect anything it just move. Can you please help me with this? Thank you so much in advance

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

      I'm also trying to detect paper using capacitive proximity sensor. Badly needed your help. Thanksss

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

      Actually you dont have to change anything from this code.You can direct use it for that project.Just follow Step by step it will no issue. If not just check your wire because some time bad wire can cause unstable signal.

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

      @@passiontechklm thank you so much sir!

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

      I'm sorry to ask again sir, have you any idea how to code the capacitive sensor using arduino to detect paper?

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

      @@ourbunnyjaeminie9745 i not has used capasitive sensor but i think have analog value output and need make code read analog pin and test what value detect different materials and add code this value trick output to do something, code read analog value and serialprint value to arduino serial display first.

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

    you can also use a pepperl and fuchs asf021PD

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

    i use mg995 servo, use same coding or not?

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

      The same code nothing to change it

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

      i use mg 996r servo motor and inductive proximity sensor but why the sensor not function when sensor detect

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

      @@afiqmarzuki9731 check it back wire connection or sensor voltage,this code should work

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

    Hello! I connected the sensor to a 9V battery on the breadboard and it works but the servo keeps twitching and it rotates even if the sensor is not detecting anything.

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

      Maybe your Servo error,to be sure you can try just only Servo first so that you can identify the Servo error or not.otherwire you need to edit the code of Servo singnal pin.

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

      ​@@passiontechklm What do you mean by editing the code of the servo signal pin? The servo was working normally when I coded it by itself.

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

      set the delay to a higher value, also the sensor might not be able to get the sufficient voltage. check your sensor's specifications

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

    sensor output is directly connected to arduino GFIP pin, it can burn arduino. can you share a practical circuit diagram like with opto coupler etc etc using internal PULLUP resistor ???

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

      It's safe .... won't burn Arduino Uno.Becaus it's just transformers the signal only which will make Arduino High or Low

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

      ı dont understand@@passiontechklm

  • @aruhagaitano7971
    @aruhagaitano7971 11 місяців тому +1

    is the code compatible with a capacitive proximity sensor?

    • @passiontechklm
      @passiontechklm  11 місяців тому +1

      Yes, you can use this code with capacitive proximity sensor too.

  • @kanetagay5031
    @kanetagay5031 11 місяців тому +1

    Hello, what are the tools you use?

    • @passiontechklm
      @passiontechklm  11 місяців тому +1

      Arduino Uno
      Inductive proximity sensor
      Sg90 servo motor
      12VDC power supply for inductive sensor
      Some jumper wire
      Connectors

    • @kanetagay5031
      @kanetagay5031 11 місяців тому

      ​@@passiontechklm thank u

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

    It didn't fry the arduino?
    im confused now, why others use PC817 optocoupler or voltage divider to protect arduino from using this high voltage Proximity sensor?

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

      It's safe to use...not fry it up ☺️

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

      @@passiontechklm appa chukka kedayatha???

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

    Is there any code where capacitive sensor only can sense plastic not metal or paper

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

      This is not the code issue you still can apply this code but the sensor, you need to find sensor which only detect plastic.

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

    how can connect 12V to arduino not burn input, normal used optocoupler keep high volt out of arduino 5 volt pin, and not use resistor limit sensor input current burn input port,

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

      Arduino can be power 5-12vdc via DC jack or Vcc In , it's safe because it's has automatic Requlator in on board.so wouldn't burn it.

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

      @@passiontechklm ok,thanks i not know thats before i think can only 5V make input, and orden today morning optocoupler module 12-24 volt in and 5V out module to arduino 0,68$/pcs. i build arduino nano board spindle RPM gauge promixity sensor sense spindle chuck tricker and nano show oled display spindle speed my cnc machine.

  • @daniella9886
    @daniella9886 5 місяців тому

    how to change the servo motor if the sensor detects another material other than metal? can i have the code for it?

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

    Can i get delay coding for servo motor after metal is detected from 180° to 0° .

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

      Just edit the delay time inside the code will done.

  • @markjaysonalabazo1569
    @markjaysonalabazo1569 Місяць тому +1

    why my peoximity sensor is not lighting? or cant detect what do i do?

    • @markjaysonalabazo1569
      @markjaysonalabazo1569 Місяць тому +1

      i have used 12 power supply

    • @passiontechklm
      @passiontechklm  Місяць тому

      @@markjaysonalabazo1569 what is your sensor voltage? is it 12v? Be make sure the sensor voltage otherwise the Sensor can be burn out and will not have light.Secondly make sure wire polarity also.

    • @markjaysonalabazo1569
      @markjaysonalabazo1569 Місяць тому

      @@passiontechklm it worked, thanks! 🤝

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

    how can i calibrate it like the capacitive sensor that can detect plastics or others objects? can you make a step by step video about that?

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

      You can apply this code to detect plastic or other objects but you need to change the sensor which is call capacitive proximity sensor.

    • @kentdagacan4828
      @kentdagacan4828 10 місяців тому +1

      ​@@passiontechklmDo I still need to change something on the code? Or can I just copy and paste it while I use capacitive proximity sensor?

    • @passiontechklm
      @passiontechklm  10 місяців тому

      @@kentdagacan4828 no need to change the code ,just copy and paste it ok.

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

      Can I ask if I'm going to use Capacitive Proximity Sensor 6-36 DC how can I connect that in Arduino, what battery I need to used for this type of voltage

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

    hi, how about controlling the servomotor with a capacitive proximity sensor which detects plastic materials, are they the same process?

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

      Same concept... you can use this code as well

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

      @@passiontechklm thank you so much

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

      @@passiontechklm another question, is relay module needed to this concept?

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

      @@malitaiti6291 relay module wil be different code

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

      For relay control here is the link....ua-cam.com/video/8nuNzZMCXpA/v-deo.html

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

    Can you name that white material used to connect 12 v wire

  • @morphews3304
    @morphews3304 6 місяців тому +1

    Why having this type of connection for proximity sensor

  • @esmadejacinthvana.3185
    @esmadejacinthvana.3185 11 місяців тому

    Will this burn my pin port in my arduino uno?

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

    hi but i need to rotate the motor so it turns a conveyor belt what changes di i have to make in the code

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

      You are using servo motor or DC motor.? If DC motor you can't use this code.

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

      @@passiontechklm and will the code change if i am using a capacitive proximity sensor

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

      simple need relay run conveyor belt motor, on/off. and code only need digitalwrite, pin number output to relay, high or low, code need only if sensor high write output high,

    • @voiceforever1534
      @voiceforever1534 11 місяців тому

      ​@@passiontechklmcan i have contact details I have a project proposal for you.?

  • @bil.2258
    @bil.2258 Рік тому

    Why my servo not move when i direct supply to esp32 board?

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

    Can you specify the materials being used, please one by one

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

    Can you show ne the 12 volt power supply DC

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

    i followed this tutorial but why i have not get same output

    • @passiontechklm
      @passiontechklm  2 роки тому

      You means the sensor is not detected?

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

      athu accent naala thaanaa vaela seiuthu

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

    Good work

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

    how can the capacitive sensor detect paper?is it possible?

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

    جزاك الله خيرا

  • @m-perezshannmikhailt.4151
    @m-perezshannmikhailt.4151 Рік тому

    how to put delay on the servo motor?

  • @acaprzimi8370
    @acaprzimi8370 11 місяців тому

    can i get the schematic circuit diagram

  • @guruunki-st2zm
    @guruunki-st2zm Рік тому

    Hi sir can get water vending machine coin acceptor circuit diagram

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

    can i have the coding for this please

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

    thala morattu accent

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

    Hello there, where should we put the wires of the capacitive proximity sensor and inductive proximity sensor? The object passes through both an inductive sensor and a capacitive sensor, and it will detect plastic only.

    • @Hélène-r6g
      @Hélène-r6g 7 місяців тому

      Same issue here. I'm wondering if I haven't by inductive sensors instead of inductive and capacitive.

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

    What do you call that white connector?

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

      That is just pvc press type connector you can use any connector