Arduino Servo Motor Control via Bluetooth | App Inventor

  Переглядів 376,790

Maker 101

Maker 101

7 років тому

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

КОМЕНТАРІ: 216
@maker101io
@maker101io 3 роки тому
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 років тому
Your work is always Clear, Congratulations Actually I did this project only in half day and it works! Thanks for your knowledge
@lorisdi7760
@lorisdi7760 6 років тому
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.
@EyesOfTheInternet
@EyesOfTheInternet 2 роки тому
Fantastic! Just the tutorial I needed!
@Hailesmr
@Hailesmr 5 років тому
Best video i've seen about Arduino. Thanks a lot.
@nathancarpenter8895
@nathancarpenter8895 3 роки тому
Works great! just finished building it.
@Mrpower-kd2ee
@Mrpower-kd2ee 6 років тому
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 .
@hobarey5029
@hobarey5029 5 років тому
that's the one I was looking for...thanks a lot...
@1nce_again053
@1nce_again053 10 місяців тому
Works perfectly with the code and the app to built !! Thank you
@parthtrivedi4835
@parthtrivedi4835 7 років тому
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
@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.
@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?
@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
@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
@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🍓
@ferchosnap
@ferchosnap 3 роки тому
Some explanations while doing each step would had made this video amazing
@Acorama
@Acorama 7 років тому
Çok iyi bir çalışma olmuş , eline sağlık
@juanmijaimemon
@juanmijaimemon 7 років тому
I can do this with Microservo?(sg90) If wires arent connected, how can they interact?
@alejandromoncayo7199
@alejandromoncayo7199 Рік тому
Muchas gracias, excelente tutorial
@micbmxer3658
@micbmxer3658 3 роки тому
Could I use the hc 06?
@bryanjay8363
@bryanjay8363 Рік тому
Hello, i want to try it with multiple servo motors. can you explain me about the coding if i used multiple servo.
@farazsid4270
@farazsid4270 3 роки тому
Hey can you make an app to control Stapper and servo motor Simultaneously!! It would be much appericiated!!
@itzcoatlortega5782
@itzcoatlortega5782 7 років тому
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...
@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 ?
@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?
@fer9621
@fer9621 6 років тому
please i need know as conecct bluetooth, when open app , its show text that say "error connected", that menaning these text
@gasparzao744
@gasparzao744 11 місяців тому
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
@thiensuutv1286
@thiensuutv1286 Рік тому
hi! video verry nice... i wuant question? i want to import sevor's rotation from mit app inventor?
@mamuvinci5034
@mamuvinci5034 7 років тому
Hello sir, how can I make it spin for 10 seconds example? And can I make the slider control speed?
@leoguibi
@leoguibi 7 років тому
I installed the app following your process in the video, but install this application on the mobile ???
@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
@ogztnr5581
@ogztnr5581 6 років тому
peki bir döngü olusturmak için nasıl programlicaz.mesela robotuma walk cycle oluşturmak istiyorum
@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
@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
@malekdahmen6825
@malekdahmen6825 5 років тому
can i use 4 servo ?
@mateusz.b4898
@mateusz.b4898 4 роки тому
The second software serial is necessary?
@aziziamiruddin4997
@aziziamiruddin4997 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.
@tabassumkhot262
@tabassumkhot262 5 років тому
can I use digi high speed??
@nathanw5747
@nathanw5747 6 років тому
what kind of range?
@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!
@TechGeniusYK
@TechGeniusYK 4 роки тому
can u provide a proper code when I downloaded it I got this Rar! and more symbols
@kamildino
@kamildino 4 роки тому
We have a project like this but wifi if you can help us not wireless we use stepper motor
@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
@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..
@lukmannet
@lukmannet 6 років тому
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.
@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?
@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?
@oscarguerrero605
@oscarguerrero605 7 років тому
Me salvaste la vida :)
@MossyThomson
@MossyThomson 7 років тому
Hi mate .what program do you use code and compiling? pretty please
@MossyThomson
@MossyThomson 7 років тому
Mert Arduino Tutorial & Projects
@tolgaer1486
@tolgaer1486 6 років тому
Kardeşim bi bakabilir misin hc06 yıda aynı bu şekilde arduinoya bağlayabilir miyim
@shashankstn2791
@shashankstn2791 6 років тому
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
@MAROUENBOUMAIZA
@MAROUENBOUMAIZA 4 роки тому
plz i need application for this project
@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
@shairiaaz8298
@shairiaaz8298 6 років тому
loved the music tho
@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 £
@febitt1189
@febitt1189 4 роки тому
thanks so much
@senthamizhboys7173
@senthamizhboys7173 6 років тому
bro i want abstract for this project
@benabdallahsamir7972
@benabdallahsamir7972 5 років тому
peut-on utiliser le hm-10
@garynelson1131
@garynelson1131 7 років тому
That's up to you and your time it would take,Would it work on both Android and IPhone?
@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.
@gohilbrijesh1789
@gohilbrijesh1789 6 років тому
How can change the degree or angle of the servo motor in app
@lokergames7058
@lokergames7058 Рік тому
Thank this only work but my hc one way to open pair mode is vin and resistor XD . Finally work
@conquerorzzz
@conquerorzzz 4 роки тому
Bro pls send the code in ino. Or tell which web we have to visit to get the code pls help.....
@vikranthkanumuru8900
@vikranthkanumuru8900 7 років тому
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.
@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!
@joserobertogonzalezperez5553
@joserobertogonzalezperez5553 5 років тому
thank you for sharing the programming and the app greetings from Mexico
@jerommepimienta3497
@jerommepimienta3497 5 років тому
but the link is not working at all, how you get the app and the code bro?
@joserobertogonzalezperez5553
@joserobertogonzalezperez5553 5 років тому
@@jerommepimienta3497 do you speak Spanish
@joserobertogonzalezperez5553
@joserobertogonzalezperez5553 5 років тому
I do not know English very well but I can pass the program and the app
@halimrafiq5131
@halimrafiq5131 2 роки тому
the code needs to change or not
@khawajamuhammadsohail3067
@khawajamuhammadsohail3067 Рік тому
When I am trying to do the project on proteus ..the servo is not working..please help
@nexawer7544
@nexawer7544 2 роки тому
Donde descargo la aplicacion?
@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 ?
@kulkarnitechnical1438
@kulkarnitechnical1438 5 років тому
Please share aurdino programme of servo motor by using Bluetooth module
@chunloklau
@chunloklau 7 років тому
Could you please share the .aia file of the apps? Thanks.
@bee5440
@bee5440 6 років тому
Does this happen to work with smaller Arduino boards too?
@akhileshchauhan8416
@akhileshchauhan8416 3 роки тому
Yes
@cralos22
@cralos22 7 років тому
tanks!!! :D
@tec2138
@tec2138 5 років тому
No entiendo por qué siempre cambiar rx y tx?
@danielbarreranavarro4429
@danielbarreranavarro4429 6 років тому
can i use a 360 servo? just changuing 180 to 360??
@shahmilakmal169
@shahmilakmal169 5 років тому
can.. open serco. n remove stoppee r
@jozzetrick
@jozzetrick Рік тому
Please give me a better link of the app
@marnikbaptist5844
@marnikbaptist5844 Рік тому
song?
@rafaelraymond290
@rafaelraymond290 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
@almaruiz4586
@almaruiz4586 7 років тому
puedes subir el circuto gracias
@jjdelat1977
@jjdelat1977 5 років тому
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
@muhammedakmal6178
@muhammedakmal6178 5 років тому
install servo library files
@adilabusafa
@adilabusafa 3 роки тому
شكراً .
@dusanklimek9712
@dusanklimek9712 4 роки тому
name of the app please
@OnkarMendhapurkar
@OnkarMendhapurkar Рік тому
how can i control servo motor from my pc?
@arduinotamiltech1269
@arduinotamiltech1269 Рік тому
where here you given appp
@danielvarela5278
@danielvarela5278 5 років тому
Se puede hacer una aplicación que uno pueda cambiar los segundos que el servo este en una posición y vuelva a la anterior, osea que este en o grados y digamos que en la aplicación ponga 15 segundos y le de ejecutar y el servo vaya a 180 grados y después de los 15 segundo vuelva a cero... Y que uno pueda modificar los segundos desde el cel.. Gracias
@HisteriaSelenio
@HisteriaSelenio 2 роки тому
Ola , la aplicación donde está ? O hay que hacerla ?
@mehankjain6201
@mehankjain6201 5 років тому
Is it necessary to connect Arduino to pc. Can we not do it by giving it only power
@muhammedakmal6178
@muhammedakmal6178 5 років тому
you can do it by giving a 12v power supply to arduino if you dont want to connect to computer
@innovationindia3758
@innovationindia3758 5 років тому
How to make it move continuesly and make stop by pressing stop
@karnisravanthi3194
@karnisravanthi3194 7 років тому
how to open the app we made in mobile
@amasathmani9901
@amasathmani9901 7 років тому
how to give the mortor an external power plz help me quickly thanks
@amasathmani9901
@amasathmani9901 7 років тому
thank you very much
@broperfect7815
@broperfect7815 6 років тому
My bluetooth is not getting connected So what do i do
@varunkumarsingh758
@varunkumarsingh758 7 років тому
awesome!
@Camilocq1
@Camilocq1 6 років тому
tnks it worked
@taufiqsyahmi5824
@taufiqsyahmi5824 5 років тому
do you change anything?
@tman16034HNG
@tman16034HNG 5 років тому
How do I do this with two servo motors
@ADEN7ws
@ADEN7ws 3 роки тому
Make servo steps as bluetooth.read()
@martintellez6472
@martintellez6472 2 роки тому
Hola cuando toco el boton bluetooth me aparece la pantalla en negro y no muestra ningun dispositivo para conectar, alguien puede ayudarme?
@loganoneal4221
@loganoneal4221 6 років тому
You could have done it with the app inventor spinner
@abraham_stinson
@abraham_stinson 4 роки тому
hello someone help me please what is the name app create web site ?
@mrtopo3736
@mrtopo3736 4 роки тому
App inventor 2! :D
@ismailkarnanokung4753
@ismailkarnanokung4753 6 років тому
very nice video
Arduino Bluetooth Control From Your Mobile Phone Using MIT App Inventor
1:05:36
Bluetooth controlled Robot using Arduino Uno and MIT APP Inventor
14:39
Srishti Robotics
Переглядів 75 тис.
Get a knife! | Standoff 2
01:06
Standoff 2 Live
Переглядів 1,5 млн
Сакура із свічки
00:35
Afinka
Переглядів 151 тис.
Multiple Servo Motor Control with Joystick and Arduino
5:36
Maker 101
Переглядів 966 тис.
HC-05 Bluetooth Module with Arduino-MIT App Inventor
27:57
BINARYUPDATES
Переглядів 944 тис.
Bluetooth 2.0 VS Bluetooth 4.0 (BLE) || Is an Upgrade worth it?
7:54
GreatScott!
Переглядів 595 тис.
Arduino Servo Motor Control via Bluetooth | TekH X
4:52
TekH X
Переглядів 41 тис.
Using Servo Motors with Arduino
43:06
DroneBot Workshop
Переглядів 1,3 млн
Servo Motors, how do they work?
15:12
The Engineering Mindset
Переглядів 1,8 млн
Купите ЭТОТ БЮДЖЕТНИК вместо флагманов от Samsung, Xiaomi и Apple!
13:03
Thebox - о технике и гаджетах
Переглядів 22 тис.
Клавиатура vs геймпад vs руль
0:47
Balance
Переглядів 972 тис.