How To Make A DIY Arduino Joystick Control Car At Home

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ก.ค. 2019
  • JLCPCB Prototype for $2(Any Color): jlcpcb.com
    Hello Guys, In this tutorial, I am going to show you how to make a DIY Arduino Joystick Controlled Car At Home. So let's get started :)
    Subscribe It's Free bit.ly/2WlyA8Y
    Parts List:
    (Banggood.in)
    1) Arduino Nano (2x) - bit.ly/2RdpIo4
    2) NRF24L01 Radio Module (2x) - bit.ly/2YOEP7j
    3) L298N Motor Driver - bit.ly/2LTqEMh
    4) Joystick Module - bit.ly/30wfHmc
    5) TT Gear Motor(4x) - bit.ly/2XZFLZv
    6) Rubber Wheels(4x) - bit.ly/2XIaDOQ
    7) Pref Board (2x) -
    8) 18650 Battery (4x) - (Local Store, Old powerbank or laptop battery)
    9) Battery Holder (4x) - bit.ly/2sulLwu
    10) 5mm Acrylic Sheet(14x9cm) - (Local Store)
    (Amazon.in)
    1) Arduino Nano (2x) - amzn.to/2nIuInc
    2) NRF24L01 Radio Module (2x) -amzn.to/33oc2bw
    3) L298N Motor Driver - amzn.to/35xMwm8
    4) Joystick Module - amzn.to/35wp8oV
    5) TT Gear Motor and wheels (4x) - amzn.to/2qa25A9
    6) Pref Board (2x) -
    7) 18650 Battery (4x) - (Local Store, Old powerbank or laptop battery)
    8) Battery Holder (4x) - amzn.to/32cJUb7
    9) 5mm Acrylic Sheet(14x9cm) - (Local Store)
    [Flyrobo.in]
    Arduino Nano : bit.ly/2kzPi7S
    L298N Motor Driver : bit.ly/2ksMcSU
    NRF24L01 Radio Module : bit.ly/2VD5enI
    Joystick Module : bit.ly/2VH18ed
    TT Gear Motor : bit.ly/2m4fMid
    Rubber Wheels : bit.ly/2kxPeFF
    -------------------------------------------------------
    Gerber File - bit.ly/2JLG8NY
    Circuit Diagram - bit.ly/2NWqzsi
    Code - bit.ly/2XL5QvM
    Code Credit : (Dejan Nedelkovski, www.HowToMechatronics.com)
    --------------------------------------------------------
    More Arduino Car Related Projects
    1) Arduino Voice Controlled Car - bit.ly/2WUdsuR
    2) Arduino Bluetooth Controlled Car - bit.ly/2WpYPuX
    3) Arduino Line Follower Car - bit.ly/2ZimqPV
    4) NodeMCU WIFI Controlled Car - bit.ly/2XA941d
    Thanks For Watching
    ✅LIKE ✅SHARE ✅ COMMENTS✅ SUBSCRIBE
    ----------------------------------------------------
    Here my social sites:
    Instagram: / diy.builder
    Facebook: / surajit.majumder.165
    Instructables: www.instructables.com/member/...
    twitter: / diybuilder1
    -------------------------------------------------------------
    🎧 Background Music
    Spiral by KV / kvmusicprod
    Creative Commons - Attribution 3.0 Unported - CC BY 3.0
    Free Download / Stream: bit.ly/Spiral-KV
    Music promoted by Audio Library • Spiral - KV (No Copyri...
    Song: KSMK X Dizaro - You Make Me (Vlog No Copyright Music)
    Music promoted by Vlog No Copyright Music.
    Video Link: • KSMK X Dizaro - You Ma...
    Roads 2 (feat. LiQWYD) by Le Gang / thisislegang
    Creative Commons - Attribution 3.0 Unported - CC BY 3.0
    Free Download / Stream: bit.ly/2DcLIpk
    Music promoted by Audio Library • Roads 2 (feat. LiQWYD)...
    --------------------------------------------------------------------
    #ArduinoProjects #ArduinoRobot #WirelessCar
  • แนวปฏิบัติและการใช้ชีวิต

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

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

    One suggestion while moving left or right both sides motor should move in opposite direction for smother turns.

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

    hi, what did you use to build the schematic?

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

    Sir, I love your videos about Arduino projects very much. Sir, you should make the 4 dof joystick-controlled robotic arm car project?

  • @3m_art001
    @3m_art001 4 ปีที่แล้ว +7

    Great project
    Loved it

  • @SAHNI-um1jh
    @SAHNI-um1jh 4 ปีที่แล้ว +4

    Your video quality is nice

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

    congratulations new subscriber

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

    Oustatanding project as everyone that Ihave seen from your channel thanks for sharing.

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

    PROFISSIONAL 🇧🇷 👏

  • @MAX-ox3xh
    @MAX-ox3xh 2 ปีที่แล้ว +1

    Hi can you make an Rc car controlled by the cheap VR wireless controller, the one with a single joystick. Would it be possible to read the data from that controller. I want that because it looks simple in design. Thank you!

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

    This is one of the best, if not the best video I've seen on Robot cars! Thank you!

  • @croydon21H
    @croydon21H 4 ปีที่แล้ว +16

    Hi, what s/w do you use to draw the schematic diagram?

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

    Shalini we use nfr24L01 2.4ghz module

  • @rianrafi2944
    @rianrafi2944 9 หลายเดือนก่อน

    can we use Arduino uno on the car and nano on the transmitter?

  • @devitya859
    @devitya859 3 หลายเดือนก่อน

    Can you tell me please do I have to order everything separately or will everything be provided in the box that i need?

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

    very good job. i like and i want to make it too.

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

    If I wanted to use better motors with three wires for this, could I do it if and how

  • @Clarence_13x
    @Clarence_13x 9 หลายเดือนก่อน

    Good video. Is there any way to replace the remote with an esp32 connected to gpt-4?

  • @djedjexlol
    @djedjexlol 3 ปีที่แล้ว +3

    Hi bro ! nice work, rly like your video,
    Just a question : no BMS or protection for your 18650 CDR ? is it just for the purpose of the tutorial ?
    thank you for answering me, I would like to have the answer from an experienced person

    • @virajchauhan6732
      @virajchauhan6732 5 หลายเดือนก่อน

      I don't think you need a BMS for such small projects like these. The battery will be balanced already when it gets charged externally with its own charger.

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

    Good job brother

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

    Thank you very much. It's Great project

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

    Ok. Thanks!

  • @prasannarohit1238
    @prasannarohit1238 3 ปีที่แล้ว

    can you please tell me the controlling range of that rf and car , i am also looking forward to make such that car

  • @user-gv7vy9hl4p
    @user-gv7vy9hl4p 4 ปีที่แล้ว +4

    High, i have questions about, l298 Motor driver i am using the same as yours but it can only handle one DC MOTOR each side, do you have any suggestions?

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

      Search on google "Four-way L9110S chip". The driver you see in video is also meant to be working with 2 DC motors only. The driver can be damaged.

    • @abhajihadi
      @abhajihadi 3 ปีที่แล้ว

      He attached 2 motors at single side.

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

    Does you can make up a car which can be controlled by Bluetooth,remote contrll,obstacles detector,hand gesture,line folower.

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

    Gracias, nos salvas a todos :D

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

    i like your effort dear

  • @suspaul100
    @suspaul100 3 ปีที่แล้ว +5

    awesome job bro.. u rock.. thanks for sharing the schematics and code.. i've designed a tank.. i intend to use ur code. the joy transmitter however has 1 joystick, and i need 2, 1 to control the motion and 1 to control 2 servos for turret motion. can u help??

  • @jaikrish50
    @jaikrish50 4 ปีที่แล้ว

    Bro u r dng wonderful job keep it up

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

    nice video budy thanks

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

    Is it possible to make it in away it has a camera on top, so you can see where it's driving from it's point of view?

  • @smitapatil55
    @smitapatil55 3 ปีที่แล้ว +15

    See bro,
    You are the best Arduino Builder
    But the problem is That the connections you make is not shown properly
    I suggest as a viewer,
    If you start showing complete step by step then you will be the most viewed Arduino project maker on youtube

    • @DIYBuilder
      @DIYBuilder  3 ปีที่แล้ว +11

      Thanks bro and soon i will start voice-over videos where i'll explain every details

    • @RaviKumar-rp1sj
      @RaviKumar-rp1sj 3 ปีที่แล้ว +4

      @@DIYBuilder plz sir uploaded the correct code we wanna to make it successful our project..toughly I arrange all the components...

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

      th-cam.com/video/oOoypRHMZ-o/w-d-xo.html

    • @David-vu7ie
      @David-vu7ie 11 หลายเดือนก่อน

      ​@@DIYBuilder Hello, can duo please update the code? thanks în advance

    • @docta_petervengkman
      @docta_petervengkman 2 หลายเดือนก่อน

      ​@@DIYBuilderliar!

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

    What's the range of the Transmitter?

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

    Can you make this with lora module for longer range?

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

    Thaaaaaanksss A lot

  • @adhithm487
    @adhithm487 4 ปีที่แล้ว +3

    Awesome...

  • @LAZYLONER-
    @LAZYLONER- 4 ปีที่แล้ว +7

    you ordered dot pcb from JLC PCB, genius!!!

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

      I burst into laughter 😂😂😂😂🤣🤣🤣

    • @akshitsharma2737
      @akshitsharma2737 4 ปีที่แล้ว +3

      and he gave us gerber file of dot pcb lol

    • @LAZYLONER-
      @LAZYLONER- 4 ปีที่แล้ว +1

      @@akshitsharma2737 I didn't knew that,ha ha ha.

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

    Sir you have got this all Object in kit or you have bought it separately.

  • @rgmtb
    @rgmtb 4 ปีที่แล้ว +8

    Great project man! Would love the code. Plz maybe better music next time or think about talking to us 👍👍

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

    Awesome!!! 😃

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

    Nice video bro

  • @sumitsinghthakur3669
    @sumitsinghthakur3669 4 ปีที่แล้ว

    Bro can this chip use more heavy moter... Like major
    Project car moter

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

    Nice project 👍

    • @intviceacademy
      @intviceacademy 4 ปีที่แล้ว

      th-cam.com/channels/_lkvX1qyF3L6dbopp1aQRw.html

  • @danielsunday8417
    @danielsunday8417 4 ปีที่แล้ว +8

    The project is very good.
    Can you please correct the sketch so that it can be fully functional, including variable speed operation? You must make the following changes to the sketch:
    #define in1 3 // D3 arduino to IN1 of L298N
    #define in2 4 // D4 arduino to IN2 of L298N
    #define enA 5 // D5 arduino to ENA of L298N
    #define enB 6 // D6 arduino to ENB of L298N
    #define in3 7 // D7 arduino to IN3 of L298N
    #define in4 8 // D8 arduino to IN4 of L298N
    RF24 radio (9, 10); // CE, CSN
    Also, the respective changes will be made in the JOYSTICK RECEIVER SCHEMATIC.
    Only one correction will be made in the transmission sketch:
    RF24 radio (9, 10); // CE, CSN
    There is another small error in the sketch, when conditioning the speed in the range 0 to 255 that can be corrected.
    Thanks.

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

      hi after doing this change in the sketch do i need to change my physical circuit or not?

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

      @@MSalim21 probably not because since he said correct the sketch the thing itself should work

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

      @@whynot1284 did it work for u with the corrected sketch?

    • @Ryuuu-qk7uk
      @Ryuuu-qk7uk 4 หลายเดือนก่อน

      Does this work

  • @tanmaypatil7237
    @tanmaypatil7237 3 ปีที่แล้ว

    Most satisfying video

  • @ramabhalla2968
    @ramabhalla2968 3 ปีที่แล้ว

    You have used which wire for gear motors

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

    What is the range of nrf24l01 module

  • @abhirams8838
    @abhirams8838 3 ปีที่แล้ว

    Which app you use for denoting the name of the components

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

    did you fast forward the last part bro ? the testing part ?

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

    Awesome project!!! but when I tried it out the signal of radio module doesn't last long what should I do

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

    I cannot get an NFR24L01 module. They are unavailable at this time. Can I use ACERMIC 38kHz IR transmitter and receiver instead of the NFR24L01? Will the NFR libraries work for these modules, or do I need different libraries to make them work?

  • @abdulraheemm5797
    @abdulraheemm5797 3 ปีที่แล้ว +3

    What is the range of transmitter and receiver

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

    super project
    i like this

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

    sir, good joystick-controlled robot and how many days you have spent to finish your joystick-controlled robot.

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

      I had taken 5 days

  • @VeniceArte
    @VeniceArte 3 ปีที่แล้ว +11

    when do you plan to publish the correct receiver and transmitter codes?

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

      Ye chutiya hai scam kuch provide nahi karta

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

    Super bro

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

    Bro superb bro... Need more from u...😍

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

      th-cam.com/channels/_lkvX1qyF3L6dbopp1aQRw.html

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

    How can i do if i want to use rc car remote control ? is it a concept similar to a blutooth ?

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

    I am also trying this project .So in this L298N motor drive module can we use 4 motors at a time?

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

      He connected every same side motors to the same output of the driver as they will always bs moving together forward or backward

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

    Can u gave the sketch of circuit on pcb please?

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

    Nicely done

    • @DIYBuilder
      @DIYBuilder  4 ปีที่แล้ว

      Thanks

    • @sarkarsarkar8210
      @sarkarsarkar8210 4 ปีที่แล้ว

      Sir can you please tell me how u have uploaded the codes?

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

    Excellent

  • @aryanagarwal8256
    @aryanagarwal8256 3 ปีที่แล้ว

    Plz tell whether the pcb used is dot pcb

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

    Sir we can use L293 motor drive sir?

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

    Amaiziiing😀😀😉

  • @smitapatil55
    @smitapatil55 3 ปีที่แล้ว

    Bro
    Can you please send me the link to buy pin connector headers (please give amazon if possible)

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

    Broo I have one dout can u pls make the joystick and guesture control car

  • @alexathelablador8501
    @alexathelablador8501 3 ปีที่แล้ว

    Bro you are great

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

    What is the size of the PCB board?

  • @funwithmaths1500
    @funwithmaths1500 4 ปีที่แล้ว

    sir please can you tell me. how to find radio modula to which online site

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

    Can u gave the sketch of circuit on pcb please

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

    Nice 😍

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

    sir, I have a request to ask you can you please, please upload the joystick-controlled robotic arm project and please also upload by giving the circuit diagrams and the code to the joystick-controlled robotic arm project. thank you, sir.

  • @tatchmeneses2545
    @tatchmeneses2545 3 ปีที่แล้ว

    What is the jumper wire used here?

  • @user-cv3eo4kh6n
    @user-cv3eo4kh6n 6 หลายเดือนก่อน

    please try to make an video for the same project but with timeout mechanism...

  • @Faltuyoutuber5412
    @Faltuyoutuber5412 4 ปีที่แล้ว

    Sir skech compile ni ho rha library v add karli but it's show pgm nd ptr not declair in this scope . Plz tell me solution for this

  • @kawior2018
    @kawior2018 3 ปีที่แล้ว +4

    what is the range of the remote control?

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

    And one thing more what is the range of transmitter and receiver?

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

      23

    • @mirohero5738
      @mirohero5738 3 ปีที่แล้ว

      @@shashankkanna5453 bananas?

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

      in case anybody is still wondering the answer to this, the receiver he's using claims to go 100 meters, and the one with the antenna claims 1000+ meters

  • @factsboy9574
    @factsboy9574 3 ปีที่แล้ว

    It is going very fastly nice

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

    Green sheet jo table ke upar he use ka kahate he please batao ... Muze lena he

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

    how many volts do you feed the gearmotors?

  • @suchisubhrapaul2664
    @suchisubhrapaul2664 3 ปีที่แล้ว

    will the codes we download be different for each type of thing we make?
    by the way thank you
    hope i succeed in making it

  • @m.chandrasekaran2514
    @m.chandrasekaran2514 4 ปีที่แล้ว

    You are using only receiver on both modules, or am i wrong.i checked your description link too,but couldn't find a transmitter.

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

      Late response probs wont help you but might help someone else, the module is transimitter AND receiver on the same module!

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

    You can do r2d2 ?

  • @mayankk24
    @mayankk24 3 ปีที่แล้ว

    Can i used l298n motor driver?

  • @BlueOctopusDev
    @BlueOctopusDev 4 หลายเดือนก่อน

    hey, what do think everything you used cost in total ? i think i'll do this project but i'm broke

  • @deveshbharti8952
    @deveshbharti8952 4 ปีที่แล้ว

    If I use nrf24l01 pa lna then there will we some changes in code or not

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

    Well done

  • @THEReFleX
    @THEReFleX 4 ปีที่แล้ว +3

    This guy is dope

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

    hello bro
    how far can u remote?

  • @Animetionmovie1234
    @Animetionmovie1234 3 ปีที่แล้ว

    Nice work

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

    Thank you very very much!!! Great video!!!

  • @Ajay20100000
    @Ajay20100000 3 ปีที่แล้ว

    can we control the speed wireless?

  • @akulgupta3310
    @akulgupta3310 6 หลายเดือนก่อน

    Hey Can I supply power with 12v battery

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

    I found troubleshooting in uploading thr receiver code due to undeclared variable a in line 37 and 40 of the code so how can i solve the problem

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

      see , if the below works for you. I generally update any lifted code. I started with forum.arduino.cc/index.php?topic=421081
      /*ARDUINO JOYSTICK CONTROLLED CAR (RECEIVER)

      YOU HAVE TO INSTALL THE RF24 LIBRARY BEFORE UPLOADING THE CODE
      github.com/tmrh20/RF24/
      */
      #include
      #include
      #include
      #define enA 2
      #define in1 3
      #define in2 4
      #define enB 7
      #define in3 5
      #define in4 6
      RF24 radio(9, 10); // CE, CSN
      const byte address[5] = {'R','x','A','A','A'};
      char receivedData[32] = "";
      int xAxis, yAxis;
      int motorSpeedA = 0;
      int motorSpeedB = 0;
      void setup() {
      pinMode(enA, OUTPUT);
      pinMode(enB, OUTPUT);
      pinMode(in1, OUTPUT);
      pinMode(in2, OUTPUT);
      pinMode(in3, OUTPUT);
      pinMode(in4, OUTPUT);
      Serial.begin(9600);
      radio.begin();
      radio.openReadingPipe(0, address);
      radio.setPALevel(RF24_PA_MIN);
      radio.startListening();
      }
      void loop() {
      if (radio.available()) { // If the NRF240L01 module received data
      radio.read(&receivedData, sizeof(receivedData)); // Read the data and put it into character array
      xAxis = atoi(&receivedData[0]); // Convert the data from the character array (received X value) into integer
      delay(10);
      radio.read(&receivedData, sizeof(receivedData));
      yAxis = atoi(&receivedData[0]);
      delay(10);
      }

      // Y-axis used for forward and backward control
      if (yAxis < 470) {
      // Set Motor A backward
      digitalWrite(in1, HIGH);
      digitalWrite(in2, LOW);
      // Set Motor B backward
      digitalWrite(in3, HIGH);
      digitalWrite(in4, LOW);
      // Convert the declining Y-axis readings for going backward from 470 to 0 into 0 to 255 value for the PWM signal for increasing the motor speed
      motorSpeedA = map(yAxis, 470, 0, 0, 255);
      motorSpeedB = map(yAxis, 470, 0, 0, 255);
      }
      else if (yAxis > 550) {
      // Set Motor A forward
      digitalWrite(in1, LOW);
      digitalWrite(in2, HIGH);
      // Set Motor B forward
      digitalWrite(in3, LOW);
      digitalWrite(in4, HIGH);
      // Convert the increasing Y-axis readings for going forward from 550 to 1023 into 0 to 255 value for the PWM signal for increasing the motor speed
      motorSpeedA = map(yAxis, 550, 1023, 0, 255);
      motorSpeedB = map(yAxis, 550, 1023, 0, 255);
      }
      // If joystick stays in middle the motors are not moving
      else {
      motorSpeedA = 0;
      motorSpeedB = 0;
      }
      // X-axis used for left and right control
      if (xAxis < 470) {
      // Convert the declining X-axis readings from 470 to 0 into increasing 0 to 255 value
      int xMapped = map(xAxis, 470, 0, 0, 255);
      // Move to left - decrease left motor speed, increase right motor speed
      motorSpeedA = motorSpeedA + xMapped;
      motorSpeedB = motorSpeedB - xMapped;
      // Confine the range from 0 to 255
      if (motorSpeedA < 0) {
      motorSpeedA = 0;
      }
      if (motorSpeedB > 255) {
      motorSpeedB = 255;
      }
      }
      if (xAxis > 550) {
      // Convert the increasing X-axis readings from 550 to 1023 into 0 to 255 value
      int xMapped = map(xAxis, 550, 1023, 0, 255);
      // Move right - decrease right motor speed, increase left motor speed
      motorSpeedA = motorSpeedA - xMapped;
      motorSpeedB = motorSpeedB + xMapped;
      // Confine the range from 0 to 255
      if (motorSpeedA > 255) {
      motorSpeedA = 255;
      }
      if (motorSpeedB < 0) {
      motorSpeedB = 0;
      }
      }
      // Prevent buzzing at low speeds (Adjust according to your motors. My motors couldn't start moving if PWM value was below value of 70)
      if (motorSpeedA < 70) {
      motorSpeedA = 0;
      }
      if (motorSpeedB < 70) {
      motorSpeedB = 0;
      }
      analogWrite(enA, motorSpeedA); // Send PWM signal to motor A
      analogWrite(enB, motorSpeedB); // Send PWM signal to motor B
      }

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

      @@croydon21H thanks

  • @pranavadya4518
    @pranavadya4518 3 ปีที่แล้ว

    Bro is the motor driver size m3 sorry, I am new to this, pls respond as quickly as you can.

  • @kdkmaseter4056
    @kdkmaseter4056 3 ปีที่แล้ว

    It very nice bro

  • @WilsonNingthemchaOfficial
    @WilsonNingthemchaOfficial 3 หลายเดือนก่อน

    How can i connect two servo motors for pan and tilt camera

  • @manofmesopotamia7602
    @manofmesopotamia7602 3 ปีที่แล้ว +33

    The only thing that confused me is: you said this video is sponsored by JLCPCB, while they send you perforated board 🤔

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

    What programming language use this project ?

  • @swapnaliparelkar712
    @swapnaliparelkar712 4 ปีที่แล้ว

    i am having a problem in uploading the file it show to the file is not inculde
    and
    what is the file rf 24