Arduino Servo Motor Control via Bluetooth | App Inventor

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ต.ค. 2016
  • DIY Home Security - New Video: • DIY Simple PIR Motion ...
    In this tutorial you will be creating an aplication for controlling a servo motor. Use slider in your application and move to servo motor from 0-180.
    Required Hardware:
    Arduino Board:
    goo.gl/UyGYeF (Banggood)
    amzn.to/2LZr6t4 (Amazon)
    Bluetooth Module :
    goo.gl/thjwVL (Banggood)
    amzn.to/3avtRM6 (Amazon)
    Servo Motor :
    goo.gl/Hxejko (Banggood)
    amzn.to/3avwe1N (Amazon)
    Jumper Wires :
    goo.gl/VRzUN4 (Banggood)
    amzn.to/3doetmT (Amazon)
    Recommended Items:
    Use Your Muscles in Project - amzn.to/3wdL45C
    37 Sensor & Module Packages - amzn.to/3m66WeQ
    Try this Robot Arm - amzn.to/3fq8DCl
    Best Resin 3D Printer - amzn.to/39tY8KB
    Arduino Compatible Kits - bit.ly/2J2AFF7
    Banggood Spring Sale - bit.ly/3slMbOn
    Important Advices :
    Before uploading the code, remove the VCC cable from bluetooth module. If you use HC-05 bluetooth module, it will ask the PIN to you. Usually 1234. If you get an error similar to (ERROR 507 or 516 broken pipe) please try to connect a few times. Sometimes connection will be broken.
    Make sure that your Arduino board is connected to your computer via USB to enable serial communication through the serial monitor window of the Arduino Software (IDE).
    I recommend you should't connect directly the servo motor to the Arduino Board. I suggest you use external power to the servo. SG90 Mini Servo motors can be used.
    About the Code
    The Arduino hardware has built-in support for serial communication on pins 0 and 1 (which also goes to the computer via the USB connection).
    The SoftwareSerial library has been developed to allow serial communication on other digital pins of the Arduino, using software to replicate the functionality (hence the name "SoftwareSerial")
    Digital pins 10 and 11 on your Arduino or Genuino boards are used as virtual RX and TX serial lines. The virtual RX pin is set up to listen for anything coming in on via the main serial line, and to then echo that data out the virtual TX line. Conversely, anything received on the virtual RX is sent out over the hardware TX.
    Make sure that your Arduino or Genuino board is attached to your computer via USB to enable serial communication through the serial monitor window of the Arduino Software (IDE).
    About the Application
    Create your application with MIT App inventor.
    appinventor.mit.edu/explore/
    After completing the Program in MIT app inventor, go to Build and select App( save .apk to my computer).
    Transfer the file to your android mobile phone or tablet.
    Go to setting in your android mobile; select security and device administration and give access to allow install application from unknown sources.
    Source Code & App: create.arduino.cc/editor/mert...
    Social Media:
    / mertarduino
    / mertarduino
  • วิทยาศาสตร์และเทคโนโลยี

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

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

    Source Code: create.arduino.cc/editor/mertarduinotech/260612a4-778d-415e-afdd-f994b43b1706/preview
    Recommended Items:
    Use Your Muscles in Project - amzn.to/3wdL45C​
    37 Sensor & Module Packages - amzn.to/3m66WeQ​
    Try this Robot Arm - amzn.to/3fq8DCl​
    Best Resin 3D Printer - amzn.to/39tY8KB​
    Arduino Compatible Kits - bit.ly/2J2AFF7​
    Banggood Spring Sale - bit.ly/3slMbOn

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

    Your work is always Clear, Congratulations Actually I did this project only in half day and it works! Thanks for your knowledge

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

    Fantastic! Just the tutorial I needed!

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

    Fonctionne parfaitement, tutoriel très bien réalisé.
    Merci et félicitations pour votre travail.
    Works perfectly, tutorial very well.
    Thank you and congratulations of your work.

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

    Works great! just finished building it.

  • @1nce_again053
    @1nce_again053 ปีที่แล้ว

    Works perfectly with the code and the app to built !! Thank you

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

    Best video i've seen about Arduino. Thanks a lot.

  • @hobarey5029
    @hobarey5029 5 ปีที่แล้ว

    that's the one I was looking for...thanks a lot...

  • @Mrpower-kd2ee
    @Mrpower-kd2ee 7 ปีที่แล้ว +1

    bro , u r doing a noble work. thank u so much sharing ur knowledge with us... ur stuff and procedure is simple and easy to understand. bt u need to show ur face now. so that we can relate with u.. thx u .

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

    Some explanations while doing each step would had made this video amazing

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

    best video on everything and i am very thankful to you for this video\

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

    Really helpful, many thanks for this

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

    Muchas gracias, excelente tutorial

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

    Çok iyi bir çalışma olmuş , eline sağlık

  • @jumbo999614
    @jumbo999614 7 วันที่ผ่านมา

    When I move slider, I get multiple values at one time.
    For example, If I move slider at value of 80 and 85, it sends string as "8085".
    I have to tab on the slider to get only 1 value at a time.
    I'm also using multiple sliders to control multiple servo.
    So each string need to prefix with some number.
    For example, slider number #1 send value of 80 degree. String will be "180"
    Slider #2 send value of 90 degree. Then string will be "290".
    In MIT block program, i use SendText->Text->Join to start the string with slider number.

  • @attarhanjra5500
    @attarhanjra5500 7 ปีที่แล้ว

    i have hc 05
    hc-05 can work on this project

  • @hkiceman001
    @hkiceman001 7 ปีที่แล้ว

    Can I use wifi for control the servo motor? Bluetooth is not work on my iPhone
    Any example for this on ESP8266 (12E) THX

  • @oscarguerrero605
    @oscarguerrero605 7 ปีที่แล้ว

    Me salvaste la vida :)

  • @shairiaaz8298
    @shairiaaz8298 6 ปีที่แล้ว

    loved the music tho

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

    thank you for sharing the programming and the app greetings from Mexico

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

    hey there, thank you for this video , i have done as same as you shown in the video..bluetooth is connected..app is okay..connections to arduino and HC-05 and Servo is okay but still its not working at all..actually when app connect and i press zero its working after it not getting any of that buttons working not even slider one..how i solve this please do reply, m using HC-05 bluetooth module and Servo v3003 with 3kg torque..the problem is after giving first input its not working for second time

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

    thanks so much

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

    شكراً .

  • @cralos22
    @cralos22 7 ปีที่แล้ว

    tanks!!! :D

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

    Could I use the hc 06?

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

    Thank this only work but my hc one way to open pair mode is vin and resistor XD . Finally work

  • @semyedema9583
    @semyedema9583 7 ปีที่แล้ว

    Why are you connecting the TX and RX from the BT to Arduino pin 10 and 11? On the Arduino, pin 0 and 1 are indicated for the TX/RX. Can I use those pins, too, if I change it in the code as well? Thanks.

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

    I need help pls, on the blocks programm in mit app inventor i´m having an error on the when clock1 time, when i put the input of bluetoothclient1 . isconnected is shows me an error called unrecognized method

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

    Could you please do a vídeo controlling a servo and a dc motor vía bluetooth??
    i tryed but i could control they booth together...

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

    Hey can you make an app to control Stapper and servo motor Simultaneously!!
    It would be much appericiated!!

  • @destiniediggs1580
    @destiniediggs1580 6 ปีที่แล้ว

    Ok so while the running the program does the Arduino have to stay connected to my computer? I want to put this on a drone and fly it. So can I still use the bluetooth and fly it while it's disconnected?

  • @varunkumarsingh758
    @varunkumarsingh758 7 ปีที่แล้ว

    awesome!

  • @ismailkarnanokung4753
    @ismailkarnanokung4753 6 ปีที่แล้ว

    very nice video

  • @MossyThomson
    @MossyThomson 7 ปีที่แล้ว

    🙋is the programme the green window and the Block modules is it cold if you could tell me the name of the software? pretty please mate🍓

  • @fer9621
    @fer9621 6 ปีที่แล้ว

    please i need know as conecct bluetooth, when open app , its show text that say "error connected", that menaning these text

  • @srjuanmi
    @srjuanmi 7 ปีที่แล้ว

    I can do this with Microservo?(sg90) If wires arent connected, how can they interact?

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

    Hello, i want to try it with multiple servo motors. can you explain me about the coding if i used multiple servo.

  • @Camilocq1
    @Camilocq1 6 ปีที่แล้ว

    tnks it worked

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

    thnx

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

    Nodemcu ile olanı gelse efsane olur

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

    We have a project like this but wifi if you can help us not wireless we use stepper motor

  • @ogztnr5581
    @ogztnr5581 6 ปีที่แล้ว

    peki bir döngü olusturmak için nasıl programlicaz.mesela robotuma walk cycle oluşturmak istiyorum

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

    Why should bluetooth rx and tx be connected to pin 10 and 11, and nor pin tx and rx? Is it really the same?

    • @bimaimam4602
      @bimaimam4602 6 ปีที่แล้ว

      If you're going to use pin 10 and 11 you need to include SoftwareSerial.h but if you are using the pin tx rx (pin 0 and 1) you need to disconnect the wiring pin 0 and pin 1 when uploading the code.

  • @KouadioArmel-jg9vb
    @KouadioArmel-jg9vb ปีที่แล้ว

    salut, j'ai tres bien suivis le tuto du debut a la fin mais a l'execution cela ne marche pas, le servo n'execute pas les commandes recues
    que devrais-je faire?

  • @mateusz.b4898
    @mateusz.b4898 4 ปีที่แล้ว

    The second software serial is necessary?

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

    hi! video verry nice...
    i wuant question?
    i want to import sevor's rotation from mit app inventor?

  • @5n1ben22
    @5n1ben22 4 ปีที่แล้ว

    selamlar eliptik bisikletimin kuvvet ayarı servolu bir sistem bunun beyni bozulduğu için android üzerinden sürmek istiyorum. hangi sistemi kullanmamı tavsiye edersiniz ?

  • @AminAmin-fj9od
    @AminAmin-fj9od 4 ปีที่แล้ว

    very good

  • @prakhartibrewal9886
    @prakhartibrewal9886 6 ปีที่แล้ว

    I am having this error:
    "Arduino: 1.8.3 (Windows 10), Board: "Arduino/Genuino Uno"
    Sketch uses 4472 bytes (13%) of program storage space. Maximum is 32256 bytes.
    Global variables use 346 bytes (16%) of dynamic memory, leaving 1702 bytes for local variables. Maximum is 2048 bytes.
    An error occurred while uploading the sketch
    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences."
    What do I do??
    Pls help me

  • @nathanw5747
    @nathanw5747 6 ปีที่แล้ว

    what kind of range?

  • @tabassumkhot262
    @tabassumkhot262 6 ปีที่แล้ว

    can I use digi high speed??

  • @loganoneal4221
    @loganoneal4221 7 ปีที่แล้ว

    You could have done it with the app inventor spinner

  • @mamuvinci5034
    @mamuvinci5034 7 ปีที่แล้ว

    Hello sir, how can I make it spin for 10 seconds example? And can I make the slider control speed?

  • @vinayakdubey5200
    @vinayakdubey5200 6 ปีที่แล้ว

    can someone provide me the source code of that android application for studio please its urgent i have to make it for my project

  • @malekdahmen6825
    @malekdahmen6825 5 ปีที่แล้ว

    can i use 4 servo ?

  • @shanedunne6801
    @shanedunne6801 7 ปีที่แล้ว

    servo has power, phone is connected to app when qr code is scanned, but servo wont turn when the command is sent :( im using this example as a test for a bigger project I am doing , any help or advice would be really appreciated thanks

  • @leoguibi
    @leoguibi 7 ปีที่แล้ว

    I installed the app following your process in the video, but install this application on the mobile ???

  • @richman5152
    @richman5152 7 ปีที่แล้ว

    Me funciono! Pero no tenia conexion con el Hc 06 y era porque no la habia enlazado con mi celular jaj

  • @purushottamdey
    @purushottamdey 7 ปีที่แล้ว

    i do as per the video,and also... program the arduino with same code...but not working the apps and not rotate

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

    Good

  • @innovationindia3758
    @innovationindia3758 5 ปีที่แล้ว

    How to make it move continuesly and make stop by pressing stop

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

    can u provide a proper code when I downloaded it I got this Rar! and more symbols

  • @senthamizhboys7173
    @senthamizhboys7173 6 ปีที่แล้ว

    bro i want abstract for this project

  • @kulkarnitechnical1438
    @kulkarnitechnical1438 5 ปีที่แล้ว

    Please share aurdino programme of servo motor by using Bluetooth module

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

    Can I get the source code and the application? The domain name of the website that you provide was expired. So I cannot get the source code.

  • @almaruiz4586
    @almaruiz4586 7 ปีที่แล้ว

    puedes subir el circuto gracias

  • @benabdallahsamir7972
    @benabdallahsamir7972 5 ปีที่แล้ว

    peut-on utiliser le hm-10

  • @1drago111
    @1drago111 6 ปีที่แล้ว

    my servomotor change position on number from app but after that instantli came from port nubers around 255... pls heeeeelp i realy need it..

  • @gohilbrijesh1789
    @gohilbrijesh1789 6 ปีที่แล้ว

    How can change the degree or angle of the servo motor in app

  • @shashankstn2791
    @shashankstn2791 7 ปีที่แล้ว

    i did this using arduino nano AT Mega 328.the problem is when i check serial mointor my values are 255 for all the bt readings.whatever i press in my app.serial mointor shows 254 if i press 90 and 180 then 255.please help me with this

  • @garynelson1131
    @garynelson1131 7 ปีที่แล้ว

    That's up to you and your time it would take,Would it work on both Android and IPhone?

  • @tolgaer1486
    @tolgaer1486 6 ปีที่แล้ว

    Kardeşim bi bakabilir misin hc06 yıda aynı bu şekilde arduinoya bağlayabilir miyim

  • @tec2138
    @tec2138 5 ปีที่แล้ว

    No entiendo por qué siempre cambiar rx y tx?

  • @lezbriddon
    @lezbriddon 7 ปีที่แล้ว

    anychance of similar project with 2 relays and a temp sensor for heating / cooling and change temp from phone?

    • @lezbriddon
      @lezbriddon 7 ปีที่แล้ว

      Mert Arduino Tutorial & Projects there's lots of sensors to read temperature of the air in a room. a simple thermistor on an analog pin will do, but i don't know how to write a good looking app for a phone

    • @lezbriddon
      @lezbriddon 7 ปีที่แล้ว

      I'm thinking the current room air temperature displayed on the phone and also displayed the points at which a relay energises to turn on some form of heating or cooling. + & - 'buttons' on the phone to set the point at which a fan or the heater is powered. 'climate control' for a few £

  • @MossyThomson
    @MossyThomson 7 ปีที่แล้ว

    Hi mate .what program do you use code and compiling? pretty please

    • @MossyThomson
      @MossyThomson 7 ปีที่แล้ว

      Mert Arduino Tutorial & Projects

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

    hi, how can I control the servo robot arm and 4 dc 6v gear motors by the same Bluetooth module? is anyone here know about that please help me.

  • @dawitfekadu277
    @dawitfekadu277 6 ปีที่แล้ว

    dear am working with android based wheelchair control pic micro controller using Bluetooth module and i want to use servo motor can i get the code or zip file

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

    bro I am pairing up the hc-05 but it is not getting connected as it is blinking at 5hz Plzz help

    • @cryptotroll1232
      @cryptotroll1232 5 ปีที่แล้ว

      Open up your bluetooth options on your phone and click the HC-05 in the list to pair. It should ask you for a password- use 1234.

  • @franciscovalenzuela4152
    @franciscovalenzuela4152 7 ปีที่แล้ว

    Hey there, i am trying to test it, but the app tells me that there is no bluetooth connected to the app, of course i checked that i had my HC-06 connected to the arduino and paired with my smarthphone, do you know how can i solve this?

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

    süpersin usta ellerine sağlık

    • @TheFuocoturco
      @TheFuocoturco 6 ปีที่แล้ว

      Mert Arduino and Tech rica ederim calistirdim

    • @hasanalkhder6260
      @hasanalkhder6260 6 ปีที่แล้ว

      iyi akşamlar
      usta mobil app nereden indirebiliriz ?

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

      hasan Alkhder video aciklamasinda en aşağıda get code and app yaziyor

  • @tkotomy
    @tkotomy 6 ปีที่แล้ว

    Could you please explain how I would do this with an Arduino Nano? I'm getting errors sending the code to the Nano and the Nano is missing a ground pin that the Uno has. Thank you!

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

    you must do it slowly and explained to the viewers what are you doing??

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

    im doing somthing wrong is thing. i do see that the app is working. but if i pess the 45 0 135 or the 180 degrees. my servo motor keerps turning. any idea how i solf this problem?

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

    Bro pls send the code in ino. Or tell which web we have to visit to get the code pls help.....

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

    plz i need application for this project

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

    Could you please share the .aia file of the apps? Thanks.

  • @bee5440
    @bee5440 6 ปีที่แล้ว

    Does this happen to work with smaller Arduino boards too?

  • @marcod3252
    @marcod3252 7 ปีที่แล้ว

    can you control more than one at the time with one board???

    • @marcod3252
      @marcod3252 7 ปีที่แล้ว

      When? because I have a school project due where I need to connect and control multiple servos via Bluetooth. Anyway I subscribed to check out your upcoming videos!

  • @fantsix
    @fantsix 7 ปีที่แล้ว

    no me puedo conectar, no detecta ningun dispositivo mi celular

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

    Keşke alt yazı ekleseydin

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

    When I am trying to do the project on proteus ..the servo is not working..please help

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

    hola muy interesante tu proyecto, podrias apoyarme ya que necesito conectar 3 servos y moverlos al mismo tiempo con dos botones uno para llevarlos a 0 grados y otro para 180, de lamisma manera que tu lo haces via bluetooth , espero puedas apoyarme

  • @jasonjavier8503
    @jasonjavier8503 7 ปีที่แล้ว

    Sr do you have a code for android studio for that servo motor control?

    • @jasonjavier8503
      @jasonjavier8503 7 ปีที่แล้ว

      Can you make a code for servo motor control by android using android studio ?

  • @danielbarreranavarro4429
    @danielbarreranavarro4429 6 ปีที่แล้ว

    can i use a 360 servo? just changuing 180 to 360??

    • @shahmilakmal169
      @shahmilakmal169 5 ปีที่แล้ว

      can.. open serco. n remove stoppee
      r

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

    How do I do this with two servo motors

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

      Make servo steps as bluetooth.read()

  • @amasathmani9901
    @amasathmani9901 7 ปีที่แล้ว

    how to give the mortor an external power plz help me quickly thanks

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

    Donde descargo la aplicacion?

  • @jjdelat1977
    @jjdelat1977 6 ปีที่แล้ว

    i match everything in the arduino program , i am using aruino nano and i did the changes that i needed but is trowing a fault that said "redefinition de Servo my servo", can some one help me here please

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

    Please give me a better link of the app

  • @itsmeraffa
    @itsmeraffa 6 ปีที่แล้ว

    What if I want to control the servo continuously? I mean continuously clockwise and counter clockwise and also at rest. Is it possible? Pls help.

    • @avila612
      @avila612 6 ปีที่แล้ว

      Most servos have range 0,180 they have a pin to stop it at 180