Wednesday, May 13, 2015

Control Multiple servo motors using Arduino and Android app








Hi are you looking to control More than one servo motor using android app, if then this is a perfect place for you to find your exact requirement.

I created an android app using MIT app inventor 2 , I created this app to control 6 servo motor using android and arduino, I have arduino uno, which has only 6 PWM pins that's the reason I created 6 servo control, If you want to control more than 6 you can use arduino Mega to do this.

Please click the link  here

what are the components you need for this?
N number of servo motors
Arduino
Android Mobile or Tab
Connecting Wires
Bluetooth Device (HC-05 or HC-06) I used HC-06 for this project

You can find the Circuit Diagram for this project above. Connect your servo according to that, If possible power the Servos and arduino separately

you can find the arduino program in the video, if you want arduino file , download here

Check the video below to know How to make mit app for controlling multiple stepper motor.



36 comments:

  1. i cant see the sketch alright, can you upload the sketch?

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
    2. https://www.dropbox.com/s/au8tcd2l25oo8u0/Multiservo.ino?dl=0

      Delete
    3. This comment has been removed by the author.

      Delete
    4. I have every think connected and using code provided. Have 3 servos connected and initially get servos to move but after a few seconds of sliding sliders the arduino seems to reboot and disconnects. At this point I'm ready to through in the towel. Any help would be appreciated.

      Delete
  2. Can you send the source code for the android application please ? ( its an aia. file i think ) İts hard for me to follow 'unsigned int realservo = (servopos1 *256) + servopos;' this line without knowing where we get the values of servopos1 and servopos without seeing the source code. Great work by the way :) Thanks in advance

    ReplyDelete
    Replies
    1. I need the file .aia of this application too! Can u send it at---> ermido.reffo@gmail.com
      Ty very much and great work!

      Delete
    2. Hi, I been away from my home , I don't have the aia fie with me, I have rechecked with mit app inventor panel where almost all the files have been missing :(, sorry about that, please check the video that I made which explained all most everything to make an app to control multiple servo.

      Delete
    3. I need the file .aia of this application too! Can u send it at> juliamo.santos.macedo@bol.com.br

      Delete
  3. Can you please tell me , why we read two values from the bluetooth and multiply one of them with 256 ? unsigned int realservo = (servopos1 *256) + servopos; . Please help me understand this line. Thanks for the awesome work.

    ReplyDelete
  4. hello...can you plz explain the source code

    ReplyDelete
  5. Hello :)
    I have two servo motors now,
    I want to let the button to control the Servo1 only,
    and let the Slider to control the Servo2 only,
    please tell me how do I design at the APP and arduino program,thanks.

    ReplyDelete
    Replies
    1. I refer your another article from this: http://goo.gl/lg8jHF
      but there is only one servo

      Delete
  6. This comment has been removed by the author.

    ReplyDelete
  7. Arduino reboots after few slider moves. Followed you app and sketch. At a lose now. Help!

    ReplyDelete
  8. Arduino reboots after few slider movements

    ReplyDelete
    Replies
    1. Yes, use two separate power source using common ground. Seem servos would cause current fluctuations which would cause arduino to reboot.

      Delete
  9. Hello, well ,I use your code of arduino only for controler 3 servos and I reduced de code ,but when I copy your code on my computer some instructions of arduino as "unsigned int" are in color blue instead orange,Can you explain ,what happened ? or the ploblem is my computer?? And When I open your code my servos lost the control. it doesn't do the instruction Help me Pleaseee

    ReplyDelete
  10. Hi well i want to know that this process is also working for 2 dc motors yes or no if no then give me any source to find it out :( pls pls pls help me i want to do arduino proraming for 2 dc motors via bluetooth :( help me asap thankyou :(

    ReplyDelete
  11. Hi well i want to know that this process is also working for 2 dc motors yes or no if no then give me any source to find it out :( pls pls pls help me i want to do arduino proraming for 2 dc motors via bluetooth :( help me asap thankyou :(

    ReplyDelete
  12. erroe 516 unable to write:broken pipe

    ReplyDelete
  13. excuse me I will make a project in which I need to use 4 power units and will use an Arduino Nano and HC -06 bluetooth, and I wondered if I should connect my bluetooth equal to its image or dierente way?

    ReplyDelete
  14. when I control sevro 1 but sevro 2 active.. what happen ?? im using module bluetoot hc 05

    ReplyDelete
  15. when I control sevro 1 but sevro 2 active.. what happen ?? im using module bluetoot hc 05

    ReplyDelete
  16. hello brother . can you modify the application and the code to control one servo motor and one DC Motor . I have problem on this app .

    ReplyDelete
  17. Great Work!! but what is the use of servopos and servopos1 could u plz explain?

    ReplyDelete
  18. Hello my name is Cristian, thanks for the tutorial. I'm using arduino mega 2560, the connection via BT and apk is ok, but when I tried to move the servo nothing happens, is there something extra to program for arduino mega? Because I also tried to turn on a led and also it didn't work.

    ReplyDelete
    Replies
    1. JUTS IN CASE I FOUND SOME HELPFULL information about this topic, one probably reason for not sending data information to arduino is because app inventor 2 does not support my bluetooth LE (Low energy) I suposse the one that i bought is LE so that is why I can't send any data to arduino for controlling other devices. This is the page where I found this topic http://appinventor.pevest.com/?p=718

      Delete
  19. plz send me code and apps at: aminultpi34@gmail.com
    if you send me it will be very help full

    ReplyDelete
  20. Hello.Great project you did there. Congratz. Bun I have a q, how can I control 1 dc motor + 1 servo? Is for a project - Bluetooth control car, dc motor is for forward/backward and the servo is for direction left/right.

    ReplyDelete
  21. Hello. Nice project for that. So Good!. Can i ask, how to use code in arduino with button. Is it same with your last project? or not? Thank's. i hope best answer from you.

    ReplyDelete
  22. Hi, May I download the android app to try out this? thank you..

    ReplyDelete
  23. Hello
    Thank you for this tutorial
    I want to add some led on/off switch in this app and arduino sketch. is it possible to add. please help me .how can I add.

    ReplyDelete