0% acharam este documento útil (0 voto)
19 visualizações

Arduino - Control 2 DC Motors Via Bluetooth - Random Nerd Tutorials

Enviado por

psdonario
Direitos autorais
© © All Rights Reserved
Levamos muito a sério os direitos de conteúdo. Se você suspeita que este conteúdo é seu, reivindique-o aqui.
Formatos disponíveis
Baixe no formato PDF, TXT ou leia on-line no Scribd
0% acharam este documento útil (0 voto)
19 visualizações

Arduino - Control 2 DC Motors Via Bluetooth - Random Nerd Tutorials

Enviado por

psdonario
Direitos autorais
© © All Rights Reserved
Levamos muito a sério os direitos de conteúdo. Se você suspeita que este conteúdo é seu, reivindique-o aqui.
Formatos disponíveis
Baixe no formato PDF, TXT ou leia on-line no Scribd
Você está na página 1/ 276

21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

 Menu 

Arduino – Controle 2 Motores DC via Bluetooth


(Perfeito para construir um robô)

Neste tutorial, mostrarei como controlar 2 motores CC via bluetooth com um


aplicativo Android criado com o MIT App Inventor 2. O MIT App Inventor é uma
ótima plataforma para você começar a desenvolver para Android.

Em um tutorial anterior ( clique aqui para ver o projeto ), eu estava controlando 1


motor DC usando um aplicativo chamado “BlueTerm”. Esse aplicativo fez o
trabalho, mas não é o ideal para enviar comandos constantemente diferentes de
uma maneira fácil.

O aplicativo que você vai construir é perfeito para controlar qualquer pino Arduino
ou para integrar com seu próprio carro robô . Você pode editar este aplicativo para
suas necessidades específicas.

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 1/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Módulo Bluetooth HC-05 

Para estabelecer a comunicação bluetooth entre seu smartphone e seu Arduino,


você precisa de um módulo bluetooth. Este projeto usa o módulo bluetooth HC-05
(como mostrado na figura abaixo).

Este módulo bluetooth trabalha com dados seriais. Isso significa que o Arduino
envia informações e o módulo bluetooth as recebe via serial (e vice-versa).

Por padrão, o módulo bluetooth HC-05 opera a uma taxa de transmissão de 9600.

Criando seu aplicativo Android


O aplicativo Android será criado usando um aplicativo web gratuito chamado MIT
App Inventor . O MIT App Inventor é um ótimo lugar para começar a desenvolver
Android, porque ele permite que você crie aplicativos simples com arrastar e
soltar.

Você precisa de uma conta do Google para se inscrever no MIT App Inventor e
aqui está a página de login: http://ai2.appinventor.mit.edu .

Clique aqui para baixar o arquivo .aia e assista ao vídeo abaixo:

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 2/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

MIT App Inventor 2 Quick Overview 

Se você for para a aba Projetos, você pode carregar o arquivo .aia para este
projeto

Com o MIT App Inventor, você tem 2 seções principais: designer e blocos. O
designer é o que lhe dá a capacidade de adicionar botões, texto, telas e editar a
aparência geral do aplicativo.

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 3/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

As seções de blocos são o que permitem criar funcionalidades personalizadas


para seu aplicativo, então quando você pressiona os botões, ele realmente faz
algo com essas informações.

Recomendo que você comece seguindo este projeto e usando o aplicativo sem
modificá-lo.

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 4/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Se quiser fazer alguma alteração no aplicativo, quando terminar e quiser instalá-lo



no seu smartphone, vá para a aba Construir.

You can either generate a QR code that you can scan with your smartphone
and automatically install the app in your smartphone.
Or you can download the .apk file, connect your smartphone to your
computer and move the .apk file to the phone.

Simply follow the installation wizard to install the app and it’s done!

Code
For this project, you don’t need to install any Arduino libraries. So, you just have to
download or copy the following code to your Arduino IDE, and upload it to your
Arduino board. Make sure that you have the right Board and COM port selected.

/*
* created by Rui Santos, https://randomnerdtutorials.com
* Control 2 DC motors with Smartphone via bluetooth
*/

int motor1Pin1 = 3; // pin 2 on L293D IC


int motor1Pin2 = 4; // pin 7 on L293D IC
int enable1Pin = 6; // pin 1 on L293D IC
int motor2Pin1 = 8; // pin 10 on L293D IC
int motor2Pin2 = 9; // pin 15 on L293D IC
int enable2Pin = 11; // pin 9 on L293D IC
int state;
int flag=0; //makes sure that the serial only print
int stateStop=0;
void setup() {
// sets the pins as outputs:

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 5/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

pinMode(motor1Pin1, OUTPUT);

pinMode(motor1Pin2, OUTPUT);
pinMode(enable1Pin, OUTPUT);
pinMode(motor2Pin1, OUTPUT);
pinMode(motor2Pin2, OUTPUT);
pinMode(enable2Pin, OUTPUT);
// sets enable1Pin and enable2Pin high so that motor c
digitalWrite(enable1Pin, HIGH);
digitalWrite(enable2Pin, HIGH);
// initialize serial communication at 9600 bits per se

View raw code

Note: before uploading the code, make sure you have the TX and RX pins
disconnected from the bluetooth module!

Parts Required

Arduino UNO – read Best Arduino Starter Kits


Bluetooth module HC-04 or HC-05 or HC-06
1x L293D IC
2x DC motors
Breadboard
Jumper wires

You can use the preceding links or go directly to MakerAdvisor.com/tools to find all
the parts for your projects at the best price!

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 6/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Schematics
Follow the schematic diagram in the following figure to wire your circuit.

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 7/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Launching your app


If you haven’t generated the .apk file in a previous step, you can click here to
download the .apk file (which is the Android app installation file). Move that file to
your smartphone and open it. Follow the installation wizard to install the app.

Turn on your smartphone’s Bluetooth.

Tap on the newly installed app. Press the “Connect” button to connect your
application to your Arduino Bluetooth module.

Now you can easily control the 2 DC motors with your app:

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 8/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Watch this video demonstration 

Troubleshooting:

Remove the RX and TX cables when you’re uploading a new sketch to your
Arduino board

People often connect the TX from the bluetooth module to the TX of the
Arduino, that won’t work. Make sure you connect: TX goes to RX and RX
goes to TX.

If the HC-04/HC-06&HC-05 bluetooth module asks for a password, it’s


’1234′.

Wrapping up
I hope you found this useful.

Do you know a friend that would like to see this project? Make sure you share this
project with your friend!

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 9/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Do you want to learn more about building apps for Arduino? Get access to our

course: Android Apps for Arduino with MIT App Inventor 2.

Thanks for reading,

Rui

P.S. If you don’t have a bluetooth module, read my HC-05 review here.

SMART HOME with


Raspberry Pi, ESP32,
ESP8266 [eBook]

Learn how to build a home automation system and we’ll cover the following main
subjects: Node-RED, Node-RED Dashboard, Raspberry Pi, ESP32, ESP8266, MQTT,
and InfluxDB database DOWNLOAD »

Recommended Resources

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 10/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Build a Home Automation System from Scratch » With Raspberry Pi,


ESP8266, Arduino, and Node-RED.

Home Automation using ESP8266 eBook and video course » Build IoT and
home automation projects.

Arduino Step-by-Step Projects » Build 25 Arduino projects with our course,


even with no prior experience!

What to Read Next…


https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 11/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

ESP32/ESP8266 RGB LED Strip with Color Picker Web Server

Install ESP8266 Filesystem Uploader in Arduino IDE

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 12/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

ESP8266 NodeMCU with HC-SR04 Ultrasonic Sensor with Arduino IDE

Enjoyed this project? Stay updated by subscribing our


newsletter!

Seu endereço de email

 SUBSCRIBE

345 thoughts on “Arduino – Control 2 DC Motors


Via Bluetooth (Perfect To Build a Robot)”

Ungku Muhammad Nazmi


September 25, 2013 at 10:50 pm

Nice !

Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 13/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


Rui
September 26, 2013 at 2:22 pm

Thanks for your feedback!

Reply

vibha
January 4, 2015 at 7:32 pm

sir …
can i get coding for Blueard that how to make application of
GO,BACK,FORWARD ,REVES,STOP IN APP inventor

Reply

Aamir
February 11, 2015 at 2:38 pm

Can you tell me the program for this project

Reply

aamir
February 21, 2015 at 2:22 am

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 14/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


it was awesome and i used it for my bluetooth controlled robot!!!
and it worked fine!!!!!

Reply

raj
February 27, 2015 at 4:24 pm

Hi Rui,

I wanted to purchase physical copy of your book

Image URL: https://randomnerdtutorials.com/wp-


content/uploads/2014/09/rnt-download-sidebar.jpg

18+ Random nerd Tutorial Project

What is the process ? Can we order online ?

Please respond.

I am in India -> Bangalore

Reply

Renu
April 18, 2015 at 3:11 am

Hi Raj, i am Renu from bangalore. You can download the pdf and get
it printed.

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 15/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


Angelo
January 27, 2016 at 8:28 pm

I know that thos is veey old thread.. But my question is will thos wprk
with 2 1/2 hp 90v perm magnet motors? Belt driving. I need to sync 2 dc
motors .. Position and both motors have different loads but i meed them
to position sync.. Great thread by the way.. Thanks

Reply

Rui Santos
January 31, 2016 at 12:32 am

Hi Angelo,
The app should work with any motors. You only have to make the right
circuit and change a little code from my example to make it work. But
the app should work regardless of the motors

Reply

manish k
November 6, 2016 at 8:37 pm

sir …
can i get coding used here

Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 16/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


Rui Santos
November 12, 2016 at 11:41 pm

Yes, it has a link on this page to download

Reply

Almc Canuel
September 26, 2013 at 7:28 am

i already did it for my sumobot project… but i get the idea from your
previous video that control one dc motor.. and i’m really thankful to to this
site… may i ask you if the android app that you use in this video is your
own code..?

Reply

Rui
September 26, 2013 at 2:24 pm

Thanks for trying my projects!


Yes this Android app was created by me using MIT App Inventor.
your can download all my source code for free. (just click share and a
download link will unlock)
(I know we already talked through facebook, but I want to reply also
through my blog! : ) )

Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 17/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Wagner Oedis
September 27, 2013 at 3:46 am

Wow, thanks for sharing

Hugs from Brazil

Wagner Oedis

Reply

Rui
September 28, 2013 at 11:53 am

Thanks so much for your feedback Wagner!


I’m glad you enjoyed it!

Hugs from Portugal!

Obrigado!

Reply

Henry Cedeño
September 30, 2013 at 5:37 am

Hi my friend!

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 18/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

I had a problem in this proyect… when a charge the code, in the botton it

says “avrdude: stk500_getsync(): not in sync: resp=0x00”

And one motor star to move without pressing “1” or “2”, etc…
What could probably be?

Reply

Rui
September 30, 2013 at 8:54 pm

Hey Henry! Thanks for stopping by and try my project!

Just two quick questions.


Are you using the exact same parts as me? (and you followed my exact
schematics?)
which version of the Arduino IDE you’re using?

The DC motors should only be moving after you pressed some buttons.

(before even connecting your Bluetooth module)


First try to control the DC motors with the serial monitor by sending ‘1’,
‘2’, etc . And they should be working just fine.

Please let me know if it’s working!

Reply

Imam Moeslim
October 9, 2013 at 4:22 am

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 19/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


hi rui… i want try this tutorial. but do u have full source code app in android
? and what apps to use that’s apps? ECLIPSE ? or ANDROID STUIDO ? .

thank’s

Reply

Rui
October 11, 2013 at 11:53 pm

Hi Iman! thanks for leaving a comment!


I don’t have the Java code… I recommend you to read this tutorial that
I’ve just released and you’ll understand how you can create your own
apps for android… without using Java! Let me know if this answered your
question.
https://randomnerdtutorials.com/how-to-use-app-inventor-with-arduino/

Reply

Imam Moeslim
October 13, 2013 at 3:09 pm

okay rui im understand.

my question . why u dont use motor shield ?


i think for use motor dc we must use motor shield

Reply

Rui
October 13, 2013 at 11:20 pm
https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 20/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


yes you can definitely use one if you have one!
the L293D it’s used by most of the motor shields…
So if you have a motor shield go for it.

Reply

m-almajed
October 11, 2013 at 12:56 am

hello rui

can i use a L298 Dual H-Bridge IC instead of L293D IC to control 12V DC


motores

Reply

Rui
October 11, 2013 at 11:57 pm

Hi! Thanks for taking the time to leave a comment!


Yes you can definitely do that!
I recommend you to use the IC because it’s easier and It looks more
“clean”
But if you prefer to use a Dual H-Bridge it will work exactly the same!

Let me know if this helped you.


Good luck with your project,
Rui Santos

Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 21/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

m-almajed
October 13, 2013 at 10:54 pm

Thanks for the fast reply friend

Another question. Did you use any voltage divider for the output to the
Bluetooth module?
Do I have to use a voltage divider?

Reply

Rui
October 13, 2013 at 11:23 pm

I’m not using the voltage divider but you can use one…
Some people prefer to do that way!

Reply

m-almajed
October 14, 2013 at 12:53 am

So you are not using a divider. I think I will do just like you.

I will let you know soon


Thanks

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 22/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


Nattawat Boontin
October 13, 2013 at 3:32 pm

hi rui

can i use Bluetooth Serial Module (HC-05 Master/Slave mode) in this


project ? becuse i’m not sure this module have 6 pin.

thank you so much :’D

Reply

Rui
October 13, 2013 at 11:33 pm

Hi Nattawt!
Thanks for stopping by!
I’m using the HC-05 and my Bluetooth module only has 4 pins!

Which one are you talking about?


Send me a link please and I’ll take a look!

Reply

Nattawat Boontin
October 14, 2013 at 4:13 am

here it is.
http://www.arduitronics.com/product/55/bluetooth-serial-module-hc-05-
master-slave-mode

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 23/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Thank you for your kindness


Reply

Nattawat Boontin
October 14, 2013 at 4:15 am

here it is.

http://www.arduitronics.com/product/55/bluetooth-serial-module-hc-05-
master-slave-mode

Thank you for your kindness.

Reply

Rui
October 15, 2013 at 10:41 pm

I think It will work with that bluetooth module… but please do a bit of
research first… I’m not completely sure.

Reply

ayush
April 19, 2014 at 9:00 am

How can i convert a zip file to get load on my anroid phone….

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 24/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Reply

Rui Santos
April 25, 2014 at 11:27 am

First Unzip that file and then inside it’s a .apk file.
That’s the file that you’re going to install into your smartphone

Thanks for trying my project!

Reply

Ed
October 25, 2019 at 5:50 am

I know this is a very old post already, but let me chip in on the voltage
divider issue. I have been using hc05 modules since I think 2011 on an
arduino. To be exact I used 4, that eventually all went dead. So on
average they lasted about 2 years, but that’s still relatively short. Had
them connected without any voltage divider on the Rx pin coz that
‘should be OK’. Nevertheless, i never had such a high turnover rate on
electronic components as with the hc05, except maybe for sd cards in a
raspberry pi.
Have ordered a new hc05 but this time i will be using a voltage divider.
I guess that the 5volt level perhaps somehow slowly deteriorates the rx
pin of the hc05

Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 25/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


m-almajed
October 15, 2013 at 3:37 pm

Hi Rui

just to let you know. Ive Powered my HC-07 Module with 3.3v and without
using voltage divider for the output of the arduino. it worked well for 5 min
only. then the HC-07 STOP working. i think the my bluetooth module has
burnt or damaged permanently :(.

im thinking to use Order LC-05 to try it. What do you think

http://www.aliexpress.com/item/LC-05-bluetooth-serial-interface-module-
wireless-serial-interface-module-through-the-wireless-module-free-
shipping/638543403.html

Reply

Rui
October 15, 2013 at 10:45 pm

That’s really weird … Never happened to me… the voltage divider is


supposed to stable the connection.. but I thought It wasn’t necessary,
because It always worked well for me.

I’m sorry :S

Did you tried again after that? It’s still not working?

the small LED’s don’t blink?

I’m using the HC-05 (something similar to this:


http://www.ebay.com/itm/Arduino-Wireless-Serial-4-Pin-Bluetooth-

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 26/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Transceiver-Module-RS232-Backplane-/131017379824?

pt=LH_DefaultDomain_0&hash=item1e813e8ff0)

Reply

Marie.M
May 24, 2021 at 11:06 pm

HEY please can you tell me did you use the same code for Dual H-
bridge? L298N

Reply

David Macias
November 5, 2013 at 1:18 am

HI Rui
I’ve got a question, does your arduino code just works with the hc-05
bluetooth module or I can use another one like the hc-06 ,this one has 4
pins?

Thanks a lot for the tutorial

Reply

Rui
November 11, 2013 at 11:25 pm

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 27/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


Hi David,
thanks for taking the time to watch my tutorials.
I think by default it will work.
They are exactly the same. but the HC-05 has some pins, and the HC-06
you need to solder wires.
But they work the same.
Good luck with your project,
Rui Santos

Reply

John
November 15, 2013 at 12:42 am

Hi Rui,

Awesome tutorial!
I’m having some problems finding that IC. If so, how would I wire that in?
Thanks!

Reply

Rui
November 16, 2013 at 12:56 am

Hi John.
Thanks for your feedback!
you can find that IC in almost any electronics store.
I would prefer to buy this shield below.
This has 2 IC’s (L293D) you can either use it with your Arduino. there are

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 28/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

some libraries to work with this shield.



Or simply remove the IC and use in your project!

Arduino DC Motor Shield: https://makeradvisor.com/tools/arduino-motor-


driver-shield/

L298N: https://makeradvisor.com/tools/l298n-motor-driver/

Good Luck with your Projects,


Rui Santos

Reply

ignacio
November 17, 2013 at 2:42 pm

hola soy de chile y me encanto tu tutorial el problema es que no me deja


bajar la aplicación desde mi teléfono… como lo puedo instalar?

Reply

Rui Santos
November 17, 2013 at 9:45 pm

Hi,
I don’t speak Spanish. but I know Portuguese. So I understood what you
said.
My app is available to download here:
https://randomnerdtutorials.com/download
Simply enter your email and you’ll receive a secret download page with
all my projects.

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 29/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Or you can simply click the like button and the code will unlock.

thanks for stopping by!

Reply

Andi
November 18, 2013 at 3:32 pm

Hai Rui
I wanna ask you something about the bluetooth, if i use LC-05 Bluetooth
Serial Module Master (Slave Integrated) it can work too? Because in my
place is pretty hard to find HC-05
Here’s the picture:
http://indo-ware.com/produk-2391-lc05-bluetooth-serial-module-
masterslave-integrated.html

And when the programming begins? Before we set all components to PCB
or after?

Thanks !

Reply

Rui Santos
November 19, 2013 at 10:42 pm

Hi Andi.
For what I’ve heard that LC-05 Bluetooth module works with my project.
I’ve not tried it myself but it should work.
the password and bluetooth configurations might be different.

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 30/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

The programming is done in the Arduino.



you don’t need to programm the Arduino Module.

Thanks for taking the time to read my projects!

Reply

Mark
November 19, 2013 at 2:24 pm

hi. will this also work if we are going to use the accelerometer sensor of
the smartphone?
.

Reply

Rui Santos
November 19, 2013 at 10:49 pm

Hi Mark,
This project and idea can be used with the accelerometer of the
smartphone.
But in order to do that you will need to create a new app for your
smartphone.
the one I’m using on this tutorial was created with MIT app inventor.
I’ve also made a tutorial using that platform:
https://randomnerdtutorials.com/how-to-use-app-inventor-with-arduino/

Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 31/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


Andi
November 20, 2013 at 4:24 pm

Hi Rui

I wanna ask you something more about the password, when i pair the
bluetooth modul they ask about pass but stil not work to connected. The
bluetooth module dont ask about the pass. What i must to do?

Thanks

Reply

Rui Santos
November 21, 2013 at 11:39 pm

Hi Andi.
First go to your bluetooth settings and pair your smartphone with the
Bluetooth module.
(Use the password ‘1234’ or ‘0000’.)
As soon as it’s paired. Go to the ArdBlue app and click: “Choose device
to connect to” and choose your bluetooth module.

I hope this solves your questions.


Rui Santos

Reply

Peter
November 22, 2013 at 2:13 am

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 32/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


Hi RuiSantos,

I have got a problem when I tried to set up the hardware of what you
introduced above; however, I found out that there were signals of int1 and
int4 were locked to turn on the LED light and one of motors was
continuously running forward only (another one was stopped) when I used
generic motors to connect L298 development board module, which was
connected to Arduino Uno development board. I could not control pinint1 to
pinint4 by using your Skretch programme.

I tried not to supply power to motor and only run your sktech program to
send signal to control pinint1 to pinint4 of L298, it was successful for me to
see the response of the MCU controling normal.

Could you tell me what wrong with my hardware setting? Does noise come
from the motor since the ground is commonly connected between L298
and Arduino Uno?
How can I solve this problem please?

Best regards,

Peter

Reply

Rui Santos
November 23, 2013 at 6:20 pm

Can you tell me exactly which motor board are you using?
(Send me a link with the information)

You’re debugging all your code using the Arduino IDE? right?

which DC motors are you using?

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 33/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Reply

Peter
November 27, 2013 at 3:33 am

Hi Rui,

I fixed the problem already since being careless of matching pins


between Atmega328 and L293D. I am using motor drive of L293D of
Sparkle Brand to connect Arduino Uno. Thank you for your reply.

Reply

Rui Santos
November 28, 2013 at 7:37 pm

Hi Peter.
I’m really glad you got it working!

Have a nice day,


Rui

Reply

Peter
November 22, 2013 at 5:44 am

Hi Rui,

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 34/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

I am urgent to know your opinion for the problem solving since this will

become reference for my college project please. Thanks you very much.

Peter

Reply

Peter
November 22, 2013 at 5:50 am

Hi Rui,

I am urgent to need knowing your opinion since I will take your tutorial
case as a example for my owned project. Could you reply me as soon as
possible please?

Thanks,

Peter

Reply

Rui Santos
November 23, 2013 at 6:10 pm

Hi Peter,
Thanks for contacting me.
You can use all my code and all the resources provided on this website
under those terms:
https://randomnerdtutorials.com/terms

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 35/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

So feel free to edit and share my code.



Please contact me here telling where and how you’ve used my code. I
always love to hear that.:
https://randomnerdtutorials.com/contact

Thanks again,
Rui Santos

P.S. Don’t forget to show me your project 🙂


Reply

Peter
November 27, 2013 at 3:30 am

Hi Rui,

of course, I just reference your codes for evaulation only and then I will
write my owned code with adding other function, such as LED controlled
by Andriod for the car, etc.

Reply

Peter
December 20, 2013 at 6:20 am

Hi Rui,

Many thanks for your info and help. If I completed my project, I will show
you later. 🙂
Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 36/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Daniel
December 9, 2013 at 12:15 pm

Olá Rui,

É possível fazer uma aplicação parecida para controlar step motors?

Abraço

Reply

Rui Santos
December 10, 2013 at 7:32 pm

Boas Daniel,

Sim a ideia por de trás do programa é o mesmo,


só tens que mudar o código do Arduino e em vez de controlares um DC
motor é um stepper motor.
Tenta procurar um exemplo de Arduino com stepper motors para teres
mais umas ideias!

Abraço,
Rui

Reply

Andi
December 12, 2013 at 6:22 am
https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 37/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


Hai Rui,

i have a problem with this arduino. My dc motor can run if i connect with
my laptop (usb) but with 9v battery cannot run. Blueterm not response if i
enter numbers with 9v battery, but with usb, the blueterm is completely
response and my dc motor run (left, right, off). Why?

Reply

Rui Santos
December 12, 2013 at 5:44 pm

Hi, thanks for trying my projects..


The problem is simple.
The 9V battery don’t have enough current for your circuit, you will need
another type of battery that can handle more current.

The bluetooth module and DC motors takes to much current from the 9V
battery

Reply

Rui Santos
December 12, 2013 at 5:45 pm

Hi, thanks for trying my projects..


The problem is simple.
The 9V battery don’t have enough current for your circuit, you will need
another type of battery that can handle more current.

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 38/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

The bluetooth module and DC motors takes to much current from the 9V

battery.

Reply

sujith
December 12, 2013 at 11:52 am

Awesome tutorials..Thank you very much.Sir ,how can i connect HC05


module with PIC mcu ? please help…

Reply

Rui Santos
December 12, 2013 at 5:58 pm

Hi,
thanks for your feedback.
That question requires almost an entire tutorial.
What I can tell you right now is that it works like it does with the
Arduino… The bluetooth module will establish a communication via the
TX and RX pins.
and your smartphone will establish a communication with the bluetooth
module.

It will also depend in which PIC you’ll be using. you need to read the
datasheet…

Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 39/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


bryle
December 17, 2013 at 4:03 am

hi..is it possible to power up arduino like in your project with 18v dc supply
(2 9v dc battery connected in series)??since it doesnt work in 9v dc
supply??and what can you advice to me to power up my bluetooth
controlled robot..
thanks morepower..

Reply

Rui Santos
December 17, 2013 at 7:57 pm

Don’t do that… That’s not a good idea. Too much current probably.
One way to do that is using AA batteries with some battery holder.

The best way is to get a LiPo rechargeable battery for the Arduino.
Here are some that might be good for your project:
http://www.adafruit.com/category/44

before you buy anything make sure you get the right for your motors too.
the problem with the 9V batteries is that they don’t have much current. It’s
better to use AA batteries in series 🙂
I hope this helps bryle!
Have a nice day,
Rui

Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 40/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


Lau
December 18, 2013 at 4:25 am

Hi, Thanks you for your remind. Yes, it may be lack of current for 9Vlot
battery. In adddition, I had use your Android app and would like to add
on new things on it. However, I do not how to open your attahced files
such as .src and project.perproties Could you tell me how I can open
your generic Android app source code in App Inventor please? I know
that I have to use App Inventor on MIT wedsite, is there an off-line App
Inventor for me to run the changing of the source code on Window
platform please?

Reply

Rui Santos
December 19, 2013 at 11:31 pm

hi Peter, I’m almost sure it’s lack of current… that’s the problem with
9V batteries…

I’ve made a video using MIT app inventor.


It runs on the browser and windows at the same time.
(You create the screen and look of your app on the browser. The
functions, what your app actually does is programmed with a windows
application.)
https://randomnerdtutorials.com/how-to-use-app-inventor-with-arduino/

Please watch the video on that post where I explain everything. Let me
know if you have any questions!

Rui

Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 41/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

bryle
December 18, 2013 at 5:09 am

thanks a lot rui..for helping..


im kind of confious sir ,about the IC of L293D..cause there’s another one
IC the L293DNE??you think it really matters if i use the L293DNE
IC..thanks for helping sir

Reply

Rui Santos
December 19, 2013 at 11:38 pm

Hi Bryle,
I’m glad I could help.
Some IC’s have different versions, the L293D as some variations just like
the L293DNE.
I just took a quick look and they seem to work exactly the same.
But before you test anything check both IC’s datasheets and compare the
pins Inputs and Outputs and voltages.

Reply

Peter
December 18, 2013 at 8:35 am

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 42/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


Hi Rui,
Could you tell me which development platform for me to edit soruce code
for BlueArd please? Is it Eplice or Oracle Java Development Platform?
Since I would like to edit source code for BlueArd, could you share with me
whether there is an off-line App Inventor application software to use?
Sometimes I can’t do interface development by online-MIT App Inventor.
Thanks

Reply

Rui Santos
December 19, 2013 at 11:34 pm

Hi Peter,
When you download that .zip folder it comes with 3 files.

Arduino Sketch
BlueArd.apk
BlueArd Source files (for editing purpose)

The BlueArd.apk is the app installation file.


If you want to edit the app simply upload the BlueArd Source files into
MIT APP Inventor.

You need to be online to use MIT App Inventor…

Reply

Peter
December 20, 2013 at 6:27 am

Hi Rui,

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 43/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Thank you for your answer; howver, is it possible for me to edit the

source code of the app by using off-line App Inventor or other
opensource freeware please?

In addition, I’ve got another problem that I could contorl turn left and
right of the mobile robot using Android cell phone; but the robot could
not be morved forward and backward, somethimes left wheel was
moving meanwhile right wheel was not moving in parallel speed. I
wonder whether the circuit power could not supply to motors via L293D
since I am using 9 Vltage battery to supply power the whole MCU
control circuit board and L293D.
My tutor told me that it shall be supplied of power to motors vis L293D
independently.
Could you share with me your opinion please?
Many thanks.

Reply

Peter
December 20, 2013 at 6:34 am

Hi Rui,

I had followed your suggestion to open BlueArd project source code, but
the online program prompted me error since your project.property file is
not .aia file.
I could not attach the print screen for your reference; would you advise
where I can download your a completed update projecy source codes
please?
Thanks

Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 44/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


Rui Santos
December 22, 2013 at 12:29 pm

yup you’re right my source files no longer work with MIT app
Inventor…
They updated their entire website.
I need to create everything again from scratch…
Right now I don’t have the time do that… in 2 weeks or something I’ll
create a new source code.

Sorry. They erased all my projects that I thought were saved :S

Reply

Peter
December 23, 2013 at 10:04 am

Hi Rui,

Yes. MIT App Inventor updated to version 2; but finally I could find out
the old version to edit your soure codes. Many thanks.

Piyush K
December 20, 2013 at 6:23 am

Hey,
I am using a single 9v battery and following your tutorial exactly. Also I am
using 2 12v dc motors (60rpm). Is the 9v battery suuficient to run the
motors? If not, what alternative can i use?

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 45/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Reply

Rui Santos
December 26, 2013 at 12:06 am

Hi Piyush,
No… the 9V battery won’t be able to handle that.

I would recommend you to get some Lipo rechargeable batteries for your
project!

Reply

Michele B
December 20, 2013 at 6:31 pm

Hey Rui,
I purchased an hc 05.. but it has 6 pins.. There are 2 voltage pins.. 5v and
3.3v.. Which pin should i connect to my arduino..also do i need a voltage
divider to connect my hc 05 rx tx pins to arduino?

Reply

Rui Santos
December 22, 2013 at 12:38 pm

You can use either the 5V or the 3.3V… it’s you choice.
yes I recommend you to use a voltage divider !

Reply
https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 46/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Michele B
December 23, 2013 at 11:25 am

Awesome..that worked! Thanks


Also i tried creating your app in MIT App Inventor 2..it shows an error
when i try to connect HC-05 in the list..the error says unbound null..
Here is the image of my blocks..
http://postimg.org/image/h2amfiwbj/

Reply

Bryle
December 25, 2013 at 1:46 am

Hi sir rui thanks again for helping..sir can you help me where to put voltage
divider and how to make voltage divider?like providing me schematics that
i can easily understand cause im a newbie in arduino and also to
electronics..please help me sir..merry christmas sir

Reply

Rui Santos
December 25, 2013 at 11:57 pm

Thanks Merry Christmas for you too!


You can create a voltage divider just like the guy in the link below did:
http://www.thalin.se/2013/01/fritzing-veroboard-and-breadboard.html

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 47/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

You don’t need the voltage divider for regulated power supplies.

But to be 100% sure always use the voltage divider.

Reply

kishuko
December 29, 2013 at 11:05 pm

hello friend have a doubt everything works but the part where you press
STOP, FORWARD and BACKWARD not work, only works for the left and
right and not to do, please a solution, I did all the step to the tutorial is not
wrong if the APP
arduino or codes.
please help me is for my final semester project please.
congratulations and greetings from grasias por conpartir PERU 2014 and
happy new year hope your prompt help.

Reply

Rui Santos
December 30, 2013 at 10:32 pm

Hi Kishuko.
Thanks for trying my project!

Does the stop, forward, backward commands work when you’re testing
you’re project using only the Arduino Serial monitor?

Happy new year,


Rui

Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 48/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

bataa
December 31, 2013 at 7:37 am

Happy new year!

I’m bad english language. Go! with left and right with reverse working how
to solve.

Reply

Rui Santos
December 31, 2013 at 1:26 pm

Hi bataa,
Happy new year!

I didn’t understand your question, could you please repeat again?

thanks

Reply

bataa
January 1, 2014 at 3:56 am

Press Right ! GO working is like .

Reply
https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 49/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

bataa
January 1, 2014 at 4:09 am

error 516 unable to write transport endpoint not connected

Reply

Bryle
January 2, 2014 at 1:29 pm

Sir gudeve happy new year can i ask u a question how can i edit ur
android app??

Reply

Rui Santos
January 2, 2014 at 3:28 pm

Hi Bryle,
Please first read the update on top of this page.
then you need to download the source code provided.

it include a .zip folder with 3 files inside.


Unzip it and you need to upload the BlueArd Source files into App
inventor.

Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 50/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Mike
January 5, 2014 at 9:05 pm

Rui,

Thanks for this great tutorial. I have downloaded your source code and
have it setup. I am hoping to add in some buttons for lights and other
functions, but was wondering how you figured out which byte number to
send to correspond to the arduino pin. Button1 (GO!) = 49, which drives
motors forward.

I’m happy to send you the code when I have it implemented.

Thanks

Reply

Rui Santos
January 7, 2014 at 5:00 pm

Hi Mike!
Thanks for trying my projects,
I would love to see what you come up with,
You can submit your project here:
https://randomnerdtutorials.com/contact

Good luck with your project,


Rui

Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 51/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Mike
January 7, 2014 at 7:23 pm

How did you figure out which byte number to send to correspond to the
arduino pin. Example: Button1 (GO!) = 49, which drives motors forward
from a pin.

If I wanted to turn on a light using digital input 8, what byte would I


send?

Reply

Rui Santos
January 8, 2014 at 11:55 pm

That byte has nothing to do with the Arduino digital pins…


if you want to turn on a light using the digital pin 8 you can create an if
statement for example.
if(state==’0′ ){
digitalWrite(8,HIGH);
}

and the Android app would send a 49 to the arduino via bluetooth.
if you want to turn off for instance you can do this.

if(state==’1′){
digitalWrite(8,LOW);
}
The Android app will send a 50 via bluetooth.

this is just an example you can send any values you want and you
arduino code can do whatever you want.

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 52/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

I hope this helps,



Rui

P.S. Please download all my code, upload it to the App Inventor (read
the update at the top of the page) and you’ll see how it works 🙂
Reply

Simon
January 17, 2014 at 8:33 am

Hey Rui,
I am following your project and using 2 12v DC motors. I am making an
independent robot so won’t be providing power through USB. I am thinking
of providing external power supply to Vc pin of l293d which provide power
for the motors only instead of directly connecting it with the 5v pin of
arduino. So what do you suggest as a power supply for arduino and power
supply for the motors separately?

Reply

Rui Santos
January 18, 2014 at 3:58 pm

Hi Simon,
As you said you need an external power supply.
If it’s to control something that need to be in movement like a robot.
I would get a Lipo rechargeable battery to power up those motors.

Otherwise just find a 12V wall chart power supply


I hope this helps

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 53/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Reply

bryle
January 19, 2014 at 3:27 pm

gudeve sir rui..


what exact current do i need to run the motor like a robot??
i tried to connect the motor on a four 1.5v battery, and 9v battery for
arduino and bluetooth module..it runs, but when i tested it on ground the
motor seems cannot handle the load..please help..godbless sir

Reply

Rui Santos
January 22, 2014 at 1:29 pm

You need to read the datasheet from your DC motor…


and see how much voltage and current it needs to work properly.
Then search for the right battery for that…

Reply

javin
January 21, 2014 at 5:27 pm

hi rui, first of all great project man….but there is a problem with


BLUEARD…..it shows an error….. “Need BLUETOOTH_ADMIN

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 54/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

permission: neither user 10115 nor current process has android.permission



BLUETOOTH_ADMIN”

Reply

Rui Santos
January 22, 2014 at 1:34 pm

that error happens you when you’re installing the app?


or while you’re trying to connect to the bluetooth module?

Reply

sihamabdul
January 25, 2014 at 12:17 pm

j’ai un module JY-MCU Bluetooth Wireless Serial Port Module for Arduino
que je l’ai acheté de ce site: et je veux savoir est qu’il marche ou pas ainsi
s’il vous plait vous pouvez m’envoyer le code source sur mon mail:

Reply

Rui Santos
January 27, 2014 at 12:45 am

I apologise but I don’t speak french I only speak English or Portuguese


sorry.
If you want to download my source code for this project, you can either
click like on the locked content.

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 55/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Or you simply enter your email here:



https://randomnerdtutorials.com/download

If you have any problems feel free to contact me here:


https://randomnerdtutorials.com/contact

Reply

javin
January 26, 2014 at 8:39 am

while i connect it…

Reply

Rui Santos
January 27, 2014 at 12:48 am

Can you share with me a print of the problem or something?


Otherwise It can be anything :S

Reply

Panayiotis
January 26, 2014 at 10:29 pm

Thanks Thanks Thanks !!!!!


Great job!!!!

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 56/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Reply

Rui Santos
January 27, 2014 at 12:49 am

Hi Panayiotis,
I’m glad you enjoyed it!
all the best,
Rui

Reply

raju
January 29, 2014 at 1:17 am

which platform u r using to create apk file….even im using ecllipse


i downloaded ur apk files but how can i edit those files…pls guide me
throgh out this project plzzz….and send me the coding for arduino

Reply

raj
January 29, 2014 at 5:36 am

hi rui i need ur assistance through out my project so pls help me….i want
make an car controlled over bluetooth using android app….so send me
details about it

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 57/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

and which platform u r using to create android app…im using eclipse…and



send the details of everypart that needs to tis project…thank you

Reply

Rui Santos
January 29, 2014 at 11:15 pm

Hi Raj,
To create this android app I’m using MIT APP Inventor, as it says on the
top of this post.
You can download all my code by clicking “like” or “tweet” and my code
will unlock.

Or you can go to this page and download all my projects for free:
https://randomnerdtutorials.com/download

I’m not using eclipse…


please read this posts below and watch the video tutorial:
https://randomnerdtutorials.com/how-to-use-app-inventor-with-arduino/

It’s a simple introduction to MIT App inventor by creating a blink LED


project.

I hope this helps,


let me know if you have any more questions!
Rui

Reply

rishabh
January 30, 2014 at 6:50 pm

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 58/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


Hi,
Thnx for tutorial, it really helped a lot. Can you please tell me from where I
can download your app.

Reply

Rui Santos
February 2, 2014 at 11:21 am

The app can be download from this page. Just click like or tweet.
Or you can go to this page enter your email and you’ll have access to all
my projects:
https://randomnerdtutorials.com/download

Reply

sharmila
February 5, 2014 at 6:05 am

hey rui
i want screen shot of appiinventor bluetooth connection designer block……
and i want to learn how to creat app in app inventor ….

Reply

Rui Santos
February 5, 2014 at 9:13 pm

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 59/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


It’s easier if you download my app and change the code sharmila…
Watch this tutorial first to learn more about MIT App inventor:
https://randomnerdtutorials.com/how-to-use-app-inventor-with-arduino/

you can download all my project here:


https://randomnerdtutorials.com/download

Have a nice day,


Rui

Reply

ivan
February 7, 2014 at 6:00 pm

Dear Random Archive BlueArd Source (for editing purpose), I can not
open from the MIT App Inventor please point me how I can edit?

Reply

Rui Santos
February 9, 2014 at 10:13 pm

The source for this project can only be edited with MIT App inventor
Classic version.
It won’t open with AI2.
(Please read the top of this page and you’ll understand where you need
to go)

Thanks for trying my project!


Rui

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 60/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Reply

José Silva
February 13, 2014 at 1:27 am

Curto bué os teus projectos, são uma boaajuda nos meus, bom trabalho,
Rui

Reply

Rui Santos
February 14, 2014 at 3:58 pm

Obrigado José!
Vou lançar mais um projecto com bluetooth amanhã (sábado) com o
novo MIT App Inventor 2.
Abraço,
Rui

Reply

John Eswin Nizar


February 16, 2014 at 10:31 pm

Hi Rui Santos,
I have a question, why pin Vcc Bluetooth HC-05 has been given 5V DC
from pin 5V DC Arduino (as a reference datasheet Bluetooth HC-05 max

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 61/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

3.3V) ? It could be damage, isn’t it?



Thanks for your explain.

Reply

Rui Santos
February 18, 2014 at 1:38 pm

Hi john,
thanks for asking!
My bluetooth module the HC-05 (has a max voltage of 3.3V to 6V)
It says on the label also

Reply

Gary Lam
February 17, 2014 at 5:46 pm

Hi, I am creating a app used in bluetooth control wheelchair via arduino in


my project. Your design inspire me a lot, thank you!
However, I have a problem, I downloaded your source which used in app
inventor and arduino code.When I ran it, the app said my android phone
was connected bluetooth with arduino but it had no response when I
clicked the button on my phone. The strange thing is that it responses
correctly when I enter signal by serial monitor like “1”,”2″,”3″. I can’t find out
the problem, do you have any idea?

Reply

Rui Santos
February 18, 2014 at 1:37 pm
https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 62/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


Did you connect the TX from the bluetooth Module to the RX of the
Arduino? (and vice versa)

Can you elaborate a bit more otherwise it can be a compatibility problem


with your smartphone…

Reply

Abdulrahman
February 25, 2014 at 7:01 am

Thank you man i have a final year project it’s a smart home. your tutorial
will help me a lot thanx again

From Afghanistan

Reply

Rui Santos
February 25, 2014 at 3:55 pm

That’s awesome Abdulrahman!


I’m really glad I could help!

Have a nice day,


Rui

Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 63/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


Jezreel
February 28, 2014 at 11:43 am

hi sir, what other types of bluetooth module that are compatible with this
project?

Reply

Rui Santos
March 2, 2014 at 2:05 pm

Hi jezreel,
I’ve only tested this project with this bluetooth module.
If you already have a different one you should try.
This project should work just fine with any bluetooth module, because all
of them establish a serial communication with the Arduino.

Have a nice day,


Rui

Reply

Kaspras Videnieks
March 2, 2014 at 9:21 am

Nice app U got there! I have one dc motor to control! that should be a
problem! i would love to change your app so there were 4 buttons !2 of
them just the way it is – on a push it sends a comand but 2 of them would
be working like so – when i push it and hold it – it would send letter A to
arduino and on a release it would send lower case coreseponding comand
https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 64/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

letter , in this case a! and for other button B,b! BUT THERE IS ONE

PROBLEM – i don`t know how to make such a button witch works on
touch and release….

Reply

Rui Santos
March 2, 2014 at 2:10 pm

Thanks Kaspras,
I’m glad you found my app useful.

I recommend you to test my project first and see if it’s working for you.
Then open my app with MIT App inventor and start getting familiar with
the programming environment.
It’s pretty easy to do what you’re looking for.
They have pre-built in functions to trigger actions On click buttons for
example.

Have a nice day,


Rui

Reply

Kaspras Videnieks
March 2, 2014 at 4:09 pm

Still can`t find a way to edit a button to make it work like i need to….on a
push it would send a capital A and on a release it would send lower case
letter a !

Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 65/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Rui Santos
March 4, 2014 at 10:43 am

Have you tried my project first?


What have you done so far with MIT App Inventor?

Reply

Kaspras Videnieks
March 5, 2014 at 2:39 pm

Changed to my needs your app… except i can`t find info on how to create
a button witch sends on comand when i press the button and hold but then
when i release it sends another. like rc car control button

Reply

Rui Santos
March 7, 2014 at 12:47 pm

There’s a built-in function called LongClick, that should do exactly what


you’re looking for.
Here’s a print screen to show you exactly that:
http://bit.ly/1laTakG

Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 66/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


hafis ali
March 6, 2014 at 10:03 am

thanks for the information sir

Reply

Rui Santos
March 7, 2014 at 12:43 pm

You’re welcome Hafis!


Thanks for reading,
Rui

Reply

Amarendra Singh
March 6, 2014 at 2:22 pm

Hi,
does this bluetooth module HC-06 works correctly with this project?
The link is here
fabtolab.com/HC-06-bluetooth-module?search=HC-
06%20Bluetooth%20Module

Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 67/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


Rui Santos
March 7, 2014 at 12:41 pm

yes Amarendra, that bluetooth Module should work just fine!

Reply

Amarendra Singh
March 8, 2014 at 1:18 pm

thanks for my last question.


I want to ask one more question
How we will supply power to arduino in wireless projects?

Reply

Rui Santos
March 12, 2014 at 1:32 pm

Hi Amarendra,
You can supply the arduino with a rechargeable battery for example!

Reply

Amarendra Singh
March 26, 2014 at 5:11 pm

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 68/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


thanks for assisting me in this project.
its working…

Rui Santos
March 29, 2014 at 3:38 pm

Awesome Amarendra!
I’m glad to hear that.

Kaspras Videnieks
March 7, 2014 at 6:38 pm

Ok thanks Rui! i`ll give it a try!

Reply

Kaspras Videnieks
March 7, 2014 at 7:37 pm

How to seperate those 2 comands – i`ve added them but i need that
seperation…PLEASE take a look and try to explain to this dum man what
he need to do to make this finaly work… http://tinypic.com/r/wwnty9/8
Would even these comands go to arduino serial like when i send them
trough arduino serial monitor?

Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 69/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Rui Santos
March 12, 2014 at 1:38 pm

I don’t have the time to make the code for everyone who asks me sorry.
There’s simply not enough time in the day to do that.
I already told you you can use the long click function to do that.
and you can use a NOT logic block for example to see when you stop
pressing the buttons.

I guess you can change most of the arduino code to do exactly that. and
don’t worry so much with the app.

Sorry for not being able to help you much more than this.
Have a nice day,
Rui

Reply

Stefan Christ
March 10, 2014 at 7:26 am

Hallo Rui,

first of all thank you for your awesome description!!


I had made some more buttons in the App and build some LEDs that can
show the way, but now i don’t know how to set my arduino that the motors
only run when i press the bottons on the app without using a stop botton…

Do you know a way to to this?

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 70/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Thanks a lot

Stefan

Reply

Rui Santos
March 12, 2014 at 1:40 pm

Hi Stefan,
Please read some of the comments above.
I think that can be accomplished with the LongClick feature of the
buttons.
and the change the arduino code to be able to do that.

Thanks for asking,


Rui

Reply

Sonia M
March 10, 2014 at 10:09 am

When will you upload the app inventor 2 sketch?

Reply

Rui Santos
March 12, 2014 at 1:26 pm

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 71/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


Hi Sonia,
I don’t have time to update those projects right now.
And they work just fine with Beta MIT App Inventor.

You can check my two most recent project with MIT App Inventor 2.
https://randomnerdtutorials.com/control-your-arduino-with-voice-
commands/

https://randomnerdtutorials.com/android-app-that-sends-a-message-to-
your-arduino/

Both Beta MIT app Inventor and the new version work really similar.
Have a nice day,
Rui Santos

Reply

Md Shahid
March 11, 2014 at 11:44 am

Sir when i m trying to connect with HC05 module with my phone using
blueArd app then it showing…

Runtime error
Need BLUETOOTH_ADMIN permission:Niether user 10113 nor
currentprocess has android permission. BLUETOOTH_ADMIN

pls sort out my issue.

its paired and working good with serial monitor.but not working with app
blueArd(not connecting actually).sor out plz

Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 72/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Rui Santos
March 12, 2014 at 1:35 pm

Can you try this project with another smartphone?


It might be a compatibility problem with yours i guess.
Or you have to root your android…

Reply

Najam
March 16, 2014 at 4:49 pm

Hi Rui
How to change the baud rate of the bluetooth module? Mine (HC-06) has
default baud rate of 38400. I want to change it to 9600, need you valuable
advice.
Thanks in anticipation…

Reply

Rui Santos
March 19, 2014 at 3:29 pm

Hi Najam,
I’ve never changed the baudrate but I’ve found a good tutorial
http://mcuoneclipse.com/2013/06/19/using-the-hc-06-bluetooth-module/

I hope this helps!

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 73/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Reply

pritesh gupta
March 18, 2014 at 4:33 am

hey there
awesome work bro!
just wanna ask one thing if I want to activate an alarm whenever I stop the
motors, does it possible with extra components and if yes please help me!

Reply

Rui Santos
March 19, 2014 at 3:24 pm

Yes,
That’s something you can easily do.
Open my arduino code provided-
Simply add a new OUTPUT in the Arduino (a new digital pin). That way
you can control some type of buzzer.
Then in the “if” statement related to the “STOP” button
Simply activate that buzzer everytime it’s pressed the button

I hope this helps!

Reply

Ayoub
March 19, 2014 at 12:30 pm

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 74/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


Hi Rui Santos
I want to use the captor LM35 in the program but i didn’t found his library ,
can you help me please!!thanks for anticipation .

Reply

Rui Santos
March 19, 2014 at 3:20 pm

Hi Ayoub,
Can you send me a link for the part you want a library?
And I’ll see if I can’t find.
Have a nice day,
Rui

Reply

Rduino Beginner
March 19, 2014 at 4:29 pm

Hi, currently I’m working on this similar project but controlling the mobile
robot through the accelerometer sensor. Now, I’m facing problem on my
Bluetooth connection. I successfully pairing both my android and arduino
uno. On the serial monitor it shows the data but my DC motor is not rotate.
I dont know why. Do I need to setup or configure anything with the
Bluetooth module?? This is my first time using arduino with bluetooth
connection and I’m really noob. Help me pls..

AS for this project, I’m using:

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 75/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

1.Arduino Uno

2.Cytron Bluetooth Module (http://www.cytron.com.my/viewProduct.php?
pcode=BLUEBEE) + XBee Shield
(http://www.cytron.com.my/viewProduct.php?pcode=SHIELD-XBEE)

Reply

Rui Santos
March 25, 2014 at 9:46 pm

Hi!
What app are you using?
have you started making the code for the accelerometer?
If you’re trying to use the bluetooth project for the first time.
I recommend you to test my project first as an example and see if it
works for you.
Then later start creating your own projects.

I hope this helps,


Rui Santos

Reply

Rduino Beginner
March 26, 2014 at 6:26 am

Thanks for reply Mr. Rui Santos,

At the moment I develop my own apps using MIT App Inventor..In fact, I
also try to use the available apps by downloading them..sadly both of
the apps didn’t work. What do you mean code for accelerometer? Is it
the arduino code or the apps code?

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 76/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Reply

Rui Santos
March 29, 2014 at 3:38 pm

Which app didn’t work for you?


you can use the accelerometer function on the app.
It’s provided on MIT App Inventor.

Reply

Rduino Beginner
March 29, 2014 at 7:42 pm

The apps that I’ve develop and download. Both didn’t work. Yes, I
already include accelerometer function on MIT App Inventor in my
app.

Rui Santos
April 5, 2014 at 10:09 am

But what have you tried?

hafiz
March 23, 2014 at 4:02 pm

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 77/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


hi
im doing the same project.here in tutorial i cant see that you connect a
power supply for l293d driver.

Reply

Pritesh Gupta
April 1, 2014 at 4:56 am

yes you can’t see any power supply, but just notice a cable attached to
Arduino, that is supplying power to Arduino.

Reply

Rui Santos
April 5, 2014 at 10:06 am

yeah that’s true.


I’m supplying the arduino with the USB port of my computer

Reply

hafis ali
March 23, 2014 at 7:10 pm

hi
im doing the project control of dc motors using smart phone
i can control the motors by serial monitor.but not work on my smart phone.

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 78/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

(using galaxy duos)



please help

Reply

Rui Santos
March 25, 2014 at 9:42 pm

What exactly is not working for you?


what have you done so far?

Reply

mitun
March 25, 2014 at 1:40 am

Hello!
could you help to build an app like that by sharing the screen shots of
“DESIGNER” AND “BLOCK”?
THANKING IN ADVANCE

Reply

Rui Santos
March 25, 2014 at 9:39 pm

Sorry right now I don’t have the time to create that tutorial mitun…

Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 79/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Zeon
March 30, 2014 at 5:41 pm

Hey Rui Thanks for the awesome tutorial..

I am trying to implement the same project using the same parts and
arduino duemilanove now the problem is i am able to control the motors
via the serial monitor of the ide but not via Bluetooth neither app or
blueterm. I have tested the bluetoth module for communication via the led
blink example.
also when i input commands via the serial monitor the commands motor
left , right etc appear on the blueterm on my mobile but not being able to
enter anything on the mobile

Reply

Rui Santos
April 5, 2014 at 10:11 am

Hi Zeon,
Have you tried all the steps I tell you on the tips?
Are the bluetooth cables connected to the Arduino properly?
TX from the Arduino goes to the RX of the Bluetooth module, etc…

Reply

Pritesh Gupta
April 1, 2014 at 4:49 am

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 80/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


If I remove Arduino’s Atmega328 IC and build the same circuitry on the
breadboard by using 16MHz crystal and other components (that we can
use to make arduino uno on breadboard)?

Reply

Pritesh Gupta
April 1, 2014 at 5:27 am

f I remove Arduino’s Atmega328 IC and build the same circuitry on the


breadboard by using 16MHz crystal and other components (that we can
use to make arduino uno on breadboard)the would program or sketch
uploaded on it work?

Reply

Rui Santos
April 5, 2014 at 10:06 am

yeah It will work just fine Pritesh.


You can find plenty of information if you search on the web for something
like, Arduino on a breadboard.

Reply

Vitor
April 4, 2014 at 5:12 pm

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 81/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


Boas Rui , é o seguinte eu fiz a ligação certa como metes-te ai mas
quando ligo o arduino ao computador para alimentar o arduino começa a
fazer um barulho sabes como resolve-lo ?

Reply

Rui Santos
April 5, 2014 at 10:02 am

Boas Vitor,
O Arduino começa a fazer barulho?
Isso tambem acontece com um simples LED a piscar?

Reply

Vitor
April 5, 2014 at 6:16 pm

Não , foi a primeira vez que aquilo aconteceu-me e não percebi muito
bem , vou desmonta–lo em principio de novo e voltar a montar para
experimentar outra vez .

Reply

Rui Santos
April 12, 2014 at 12:42 pm

Okok depois diz-me se já está a funcionar.


Abraço

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 82/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Reply

Vitor
April 19, 2014 at 2:14 pm

Funciona já perfeitamente , devia ser um fio mal posicionado ,


obrigado 🙂

Rui Santos
April 25, 2014 at 11:26 am

Ainda bem Vitor!


Fico contente que esteja a funcionar,
Abraço

Taichi
April 7, 2014 at 4:22 pm

Hey Rui !!!


This is my error : “Runtime Error : need BLUETOOTH_ADMIN
permission”.
I think it may be in your BlueArd.
Can you help me ???
What is problems??
Tks .

Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 83/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Rui Santos
April 12, 2014 at 12:45 pm

Hi Taichi,
that’s a problem with your bluetooth setting. that never happened to me
though.
so make sure you go through all the bluetooth settings and enable all the
permissions

Reply

Tamojit
April 10, 2014 at 8:02 am

Hi Rui
Nice project!
Do u hv any idea of how to control the speed of the motor using app
inventor and corresponding code for arduino?
I saw a video in youtube.
Here is the link:http://www.youtube.com/watch?v=7JXLQWzQITM
Plz reply asap if u can help.
Thanks in advance

Reply

Rui Santos
April 12, 2014 at 12:46 pm

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 84/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


Hi Tamojit.
Using my app and if you change the arduino code to work similar to that
vido you sent me you can control the speed of your DC motor just fine 🙂
Reply

Tyler
April 12, 2014 at 4:28 am

Hi Rui,

I’m trying to add a couple more buttons to the app that you built for the
motor control. I’m controlling three different motors (each with different
drivers) and I need two more buttons to control forward and backward
movement. I’ve got two motors working like a charm, no problem. The
issue that I’m running into is that I don’t know what “number” to assign for
the bluetoothclient byte to send to the android. I figured it would just
continue on from the previous ones, 54…55…56, but that didn’t work.

Can you help me?

Reply

Rui Santos
April 12, 2014 at 12:49 pm

Hi Tyler,
Those numbers 49,50, etc… are not random numbers I’ve decided to
attribute.
Those are numbers from the ASCII table.
Please take a look at it here: https://randomnerdtutorials.com/ascii-table/

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 85/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

48 decimal in the android app means ‘0’ char in the arduino and so one

Reply

Zsolt
April 13, 2014 at 4:53 pm

Hi Rui
Good project!

Thanks.

Reply

Rui Santos
April 16, 2014 at 11:14 am

Hi Zsolt,
If you read this tutorial: learn.adafruit.com/adafruit-motor-shield
You can combine my project with that tutorial and control your the DC
motor with the shield.

I hope this helps,


Rui

Reply

pagina web
April 16, 2014 at 11:05 pm

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 86/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


Do you mind if I quote a couple of your articles as long as I
provide credit and sources back to your weblog?
My website is in the very same niche as yours and my visitors would
certainly benefit from
a lot of the information you present here. Please let me know if this alright
with you.

Many thanks!

Reply

Rui Santos
April 18, 2014 at 4:15 pm

Please contact me trough the contact form for more details.


https://randomnerdtutorials.com/contact

Thanks!

Reply

Lalit Kumar
April 17, 2014 at 9:21 am

Hi, Rui Santos


this is my first write to you, I am working on “LED On-Off application” this is
very simple application.I am using HC-05 bluetooth module, arduino UNO
and Android development tools like Eclipse.
I have tried lots of android application but does not work for me.
can you please help me in developing a simple LED on-off two button
application in android.

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 87/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

I have tried below application



http://digitalhacksblog.blogspot.in/2012/05/arduino-to-android-turning-led-
on-and.html
but it get crashed on pressing “On button”
thanks.

Reply

Rui Santos
April 18, 2014 at 4:13 pm

Hi Lalit,
Unfortunately I don’t work with android development so I can’t help you
much…
I’ve just created a few simple apps with MIT App Inventor and that’s all…

Have a nice day,


Rui

Reply

Shantanu Biswas
April 18, 2014 at 12:34 pm

Hi,
Excellent Work!!!!!!!
But can’t find this BLUEARD App, so can u please help me with the
download of BLUEARD app.

Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 88/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


Rui Santos
April 18, 2014 at 4:11 pm

Thanks Shantanu!
you can download the app by clicking “Like” or “tweet”.
Or go to this page: https://randomnerdtutorials.com/

thanks again!

Reply

Shantanu Biswas
April 19, 2014 at 5:44 am

Thank You!!!!!!!!!!!!! For sharing this Page.


Actually we are doing you’re project as a Mini Project
in our institute. We really liked this….. Its a great website created by
you, helping young engineers.
We may need your help in future too, so your cooperation will be highly
appreciated by my friends and me

thanks again!!!!!!!!!!!!!!!!!!

Reply

Rui Santos
April 25, 2014 at 11:28 am

Thank you for your words!


Let me know if you need further help!

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 89/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

All the best,



Rui

Reply

Cintia Barroca
April 19, 2014 at 4:04 pm

Ola, estou a tentar fazer este projecto mas infelizmente não funciona.
Quando carrego num botão na app, o arduino parece receber a
informação mas os motores não andam… tenho o HC-07 e o linvor, qual o
melhor?
qual será o problema?

Reply

Rui Santos
April 25, 2014 at 11:26 am

Olá Cintia,
Qualquer modulo de bluetooth que funcione por comunicaçao serial deve
funcionar bem com o meu projeto.
Um dos problemas comuns poder ser que o seu modulo de bluetooth
venha mal configurado/ou com outra configuraçao por defeito.

Para este projeto funcionar com o arduino tem que configurar a baud
rate do modulo de bluetooth para 9600

Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 90/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


arun
April 22, 2014 at 5:29 am

hi rui santos
firstly i would like to thank u for sharing your experiences and project idea’s
in web
and i have done this project and it is working perfectly fine, and now i’m
willing to add few more buttons to that app so that i can perform few more
tasks, can u please send that .aia file of 2 dc motor control to me so that i
can improve this project little.

once again thank u

Reply

Rui Santos
April 25, 2014 at 11:22 am

Hi arun,
Thanks for your feedback!
Sorry I don’t have the .aia file for this project.
This project was done with the first version of MIT App Inventor.
(If you read the update at the top of this page, you’ll see how you can
upload this code into the older version of MIT App Inventor an edit my
app.)

I hope this helps,


Rui

P.S. You can check a more recent project using MIT App Inventor with the
new version:
https://randomnerdtutorials.com/android-app-that-sends-a-message-to-
your-arduino/

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 91/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/control-your-arduino-with-voice-

commands/

Reply

arun
April 26, 2014 at 8:33 am

its ok rui santos. i will try this app with mit app inventor 2, and im also
eagerly waiting for your new projects and posts, i request you to post
your new ideas soon in your website

Reply

Rui Santos
May 3, 2014 at 2:25 pm

Hi arun,
Thank you for your feedback! More projects coming out pretty soon!

Reply

beh
May 2, 2014 at 8:51 am

Hi Rui, if is to add in 2 limit switch between the motor to let it toggle


forward and reverse, is it possible?

Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 92/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Rui Santos
May 3, 2014 at 2:14 pm

Yes I think so!


Which is exactly the switch you’re talking about?

Reply

wann
May 6, 2014 at 3:35 pm

hi Rui..i already try your project.i got this problem..the motor wont rotate
when i press 2.. but it functioning well when im press 1 or 0..can you help
me.

Reply

Rui Santos
May 17, 2014 at 4:57 pm

Hi wann,
Are you sure the L293D IC is well wired?
Please follow my exact schematics. If those commands are working, all
the others should be working too…

Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 93/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


hakim
May 7, 2014 at 12:48 pm

hi.. i have problem with the motor. the motor cannot function well. only one
motor can rotate at one time. i use bluetooth spp and bluebee. is it effect
the circuit??

Reply

Rui Santos
May 17, 2014 at 4:36 pm

Can you send me the links to those devices?

Reply

Diego Fernando
May 8, 2014 at 2:35 am

hello friend can do with leonardo

Reply

Rui Santos
May 17, 2014 at 4:36 pm

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 94/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


This project works with the Leonardo.
But the serial communication with the Leonardo is a bit different. So You
need to change my arduino code to receive the data properly via serial

Reply

bill
May 10, 2014 at 3:15 am

Hi! Thanks for these awesome tutorials!! When I try to connect my phone
to Bluetooth it cannot find any nearby Bluetooth devices to connect to. Do
you know what the problem is?

Reply

Rui Santos
May 17, 2014 at 4:41 pm

Hi bill,
Have you tried your bluetooth module with other projects?
Are you sure it’s working?
how far are you trying to connect?

Reply

bill
May 21, 2014 at 12:23 am

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 95/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


This is my first project using it. Is it just defective? I’m trying to connect
from about a foot away.

Reply

Rui Santos
May 26, 2014 at 8:47 pm

It might be, I’m not sure though.


It should work just fine… Read the feedback from the seller from
where you bought the item.,,
Otherwise if you follow my exact steps it should work just fine.
Please read carefully my tips on this blog post

Reply

bonney
May 23, 2014 at 3:04 pm

hei Rui,,,,if i want to change the pin from arduino….can it still be working
….

Reply

Rui Santos
May 26, 2014 at 8:54 pm

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 96/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


Hi bonney,
which pins you want to change?
If you make the appropriate modficiations to the Arduino code, yes you
can change the pins

Reply

bill
May 31, 2014 at 12:37 am

Ok this time I redid the circuit using your,single DC motor tutorial. I connect
via blueterm and it actually worked! But then I got more problems. It would
disconnect and I would have to reconnect. Then it would say it was
connected but when I tried to send a command it would disconnect again.
Now it won’t connect at all.
The company is sending me a new one since they actually sent me the
wrong one that had six pins instead of four. It should still work though,
even with six. So for now I’ll just assume it’s defective and wait for my new
one. I hope it at least works.
Thanks for the great tutorials!

Reply

bill
June 6, 2014 at 5:08 am

Hey how would I send a command that only makes the DC motor turn on
for 10 seconds then turn off? I’ve tried several methods but none seem to
work. Thanks!

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 97/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Reply

Rui Santos
June 8, 2014 at 10:57 pm

You can simply create a delay(10000) that waits for 10 seconds… that’s
not the best way, but it works

Reply

Alex
June 6, 2014 at 9:26 am

thanks for the tutorial but can you please tell me what changes do i need
to make so it would go forword as long as i press the botton on my mobile?

Reply

Rui Santos
June 8, 2014 at 10:58 pm

Hi Alex,
I don’t think that works with MIT App Inventor.
I know MIT app inventor has a long button click feature… but I’m not sure
if it would work as I’ve never tested myself

Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 98/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


Liviu
June 22, 2014 at 12:39 pm

Hello Rui, thanks for tutorial. Can I use the L298 shield for this?
http://www.robofun.ro/shields/shield-motoare-l298-v2 this is the one, it
connects to arduino through pins 3, 5, 6, 9. Any major changes i have to
do in the code? Regards!

Reply

Rui Santos
July 4, 2014 at 11:37 pm

Hi Liviu,
I think that shield has a few project examples or it probably comes with a
custom library,
Compare their project examples with my code.
You might need to add their library and just change a couple of lines from
my code where I control the DC motor.
But my bluetooth app will work just fine with your shield

Reply

sam
June 23, 2014 at 4:00 am

hi, i want to ask, can i use HC-06 instead of HC-05?

Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 99/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Rui Santos
June 24, 2014 at 1:08 pm

Hi Sam,
This project works just fine with that bluetooth module, since both HC-05
and HC-06 are the same.
Have a nice day,
Rui

Reply

sherri
June 24, 2014 at 12:05 am

I just like the valuable info you provide for


your articles. I’ll bookmark your blog and test again right here frequently.
I am rather certain I’ll be informed many new stuff right here!

Best of luck for the next!

Reply

Rui Santos
June 24, 2014 at 1:08 pm

Thank you for your input!


Have a nice day,
Rui

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 100/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Reply

Mhesh
June 26, 2014 at 9:46 am

At a time how many Bluetooth device can i connect to the mobile…..

Reply

Rui Santos
July 4, 2014 at 11:39 pm

You can only be connected to one bluetooth device at a time.

Reply

philip
July 1, 2014 at 4:51 pm

good day sir . .is it possible for a 12v DC motor ?????….

Reply

Rui Santos
July 4, 2014 at 11:28 pm

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 101/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


Yes you can do that with a 12V DC motor.
Here’s a good tutorial for that: http://www.instructables.com/id/Use-
Arduino-with-TIP120-transistor-to-control-moto/

Reply

philip
July 7, 2014 at 8:38 am

sir should i program first the arduino before connecting the bluetooth
module??????

Reply

philip
July 7, 2014 at 1:37 pm

sir can you help me with my project . . .i want to add a water sprinkler to
your project . . . when i click “GO!” the sprinkler will turn on . . and stop
after a few seconds . . .

Reply

Óscar Martínez
August 7, 2014 at 12:36 pm

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 102/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


Good job . It is a very good tutorial.

Reply

Zsolt
August 30, 2014 at 8:34 am

When I connected the Arduino TX cable to bluetooth TX and the Arduino


RX to bluetooth RX, on the serial monitor numbers 1,2,3,4,5 work fine. But
when I connected the Arduino TX cable to bluetooth RX and the Arduino
RX to bluetooth TX, on the serial monitor numbers 1,2,3,4,5 don’t work.
Why?

Reply

Rui Santos
September 1, 2014 at 9:36 am

Hi Zsolt,
That’s impossible, unless the pins are labeled incorrectly.
The Arduino transmits information with the pin TX and the bluetoth
module receives that information with the RX pin. (And vice-versA)

Reply

Doni ramadon
September 8, 2014 at 8:39 pm

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 103/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


Ruis master why his software can not be used when connected to
bluetooth hc-05?
whether the application program of android is wrong ..?

Reply

Rui Santos
September 16, 2014 at 2:48 pm

Sorry Doni, I didn’t understand your question, what do you mean?


(If you want to upload the code into your arduino, you can have your
bluetooth module connected to your arduino, because the Arduino
needs to have the RX pins available so it can receive the code you are
uploading with your computer)

Reply

Zsolt
September 5, 2014 at 8:54 pm

Hi Rui,
On the serial monitor numbers 1,2,3,4,5 work fine as your description. I
can connected the phone to bluetooth, but with the phone I couldn’t control
motors.
What can be the problem?

Thanks your help!

Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 104/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


kevin
September 14, 2014 at 9:10 am

I can’t find your app blueard

Reply

Rui Santos
September 16, 2014 at 2:44 pm

Hi kevin,
It’s below the heading “Download all my source code below”, click to
download and install the application in your smartphone.
(It’s the BlueArd.apk file)

Reply

aksraj
September 21, 2014 at 3:55 am

i hav tried ur project its working fine.. thanks

Reply

Rui Santos
October 9, 2014 at 11:17 am

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 105/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


You’re welcome!
I’m glad it worked.

Reply

brigitte gabriel
October 22, 2014 at 10:04 am

Hi all, here every person is sharing these know-how, therefore it’s


fastidious
to read this blog, and I used to go to see this webpage every day.

Reply

Raja Zaki
November 2, 2014 at 3:42 pm

Hi Rui,
Your application did help me a lot in my project, however, I want to change
it a little bit. I want my application to send the ASCI value as long as the
button is pressed and when the button is released it would stop sending
the value, I want to control my robot with that application but without a stop
button, well I am a little new to the android programming and I need your
little help to do that. Can you help? Thanks in Advance.

Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 106/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


raj
December 11, 2014 at 12:28 pm

Hi,

The apk download link is not working.

https://dl.dropbox.com/s/382jpx4opdfq43c/Control%202%20DC%20Motors
%20Via%20Bluetooth.zip

Reply

Rui Santos
December 27, 2014 at 8:36 pm

I’ve just tried the link myself and it works… Please try again.
Thanks,
Rui

Reply

nikisalli
January 3, 2015 at 7:09 am

i make all the connections well and when i send “1””2″ecc. from the
serialmonitor the motors works but when i try to control them from
bluetooth don’t happen anything what i’m doing wrong?

Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 107/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Ashok Babu
January 11, 2015 at 5:26 am

Hi rui,

I have one problem to modify your android app.


I download all those codes which you was given. How to modify when i
extract the files it came an APK file, arduino sketch and source code for
APK. Where can i use that apk source code to modify your android app
with my convenience.

Reply

Hattie
January 27, 2015 at 3:53 pm

Hi Rui

Would this set up work with 360 servos, or would it need altering?
Thanks
Hattie

Reply

Rui Santos
February 9, 2015 at 12:16 pm

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 108/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


You have to change the arduino code to work properly with servos.
Check the example code for the servo library in the Arduino IDE
examples tab.

Reply

Akhil kapoor
February 6, 2015 at 2:23 pm

Hi Rui,
I tried this project today and it worked well. Why is it that when I connect
the motor pins directly to arduino pins, the motor won’t work but after using
a motor driver IC, it works fine. Where does the current required come
from even when no other external power supply is used?
Also, I need the motor to turn off after 5 sec of operation. I
tried”delay(5000);” but that has not solved the problem. Any bright ideas.

Thanks 🙂
Reply

Aamir
February 11, 2015 at 3:05 pm

What is the program

Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 109/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


Rui Santos
February 20, 2015 at 10:22 am

Which program? The Arduino IDE? MIT APP Inventor?

Reply

Shubham Kasar
February 11, 2015 at 7:46 pm

hello rui,
as i watched your video controlling the 2 motors …
wen you gave go (forward) command both the motors started spinning ..
i want to use this for a rc car which will work on bluetooth…
so if both motors spin wen i give forward command the car wont go as i
want…

so please help me out of this …!!


if u can please message me on “[email protected]” it would be
nice.

thank you

Reply

hari
February 18, 2015 at 1:31 pm

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 110/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


i have downloaded the android app from zip file.
do i have to do any other programing to it again or simply connections are
neaded

Reply

Rui Santos
February 20, 2015 at 10:23 am

If you follow exactly my tutorial you don’t need to configure anything else.
Thanks for asking,
Rui

Reply

hari
February 22, 2015 at 2:31 pm

Should i do any programming to Arduino-micro controller

Reply

Rui Santos
February 23, 2015 at 8:59 pm

Yes you have to upload the Arduino sketch I’ve mentioned in this blog
post.
Thanks,
Rui

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 111/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Reply

raj
February 22, 2015 at 7:24 pm

Hi Sir,

I am new to MIT App…

I want to edit the MIT App how to edit/import the Bluetooth project in
MIT App.

It is asking .aia file extension…the bluetooth zip folder does not have
this file.

Please help.

Thanks in advance.

Pls respond.

Raj

Reply

Rui Santos
February 23, 2015 at 8:59 pm

Please read carefully the top update at the beginning of this blog post.
My application/editing files only work with the older version of MIT App
Inventor,
Thank for trying my project,
Rui
https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 112/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Reply

raj
February 24, 2015 at 10:10 am

Dear Sir,

Thank you very much for quick response.

Very useful link.

Able to import the code base given for Bluetooth.

Thx

Doms
February 20, 2015 at 11:21 pm

Hi rui ^^

so i tried the codes and the serial monitor replied properly but the dc
motors are not moving.. any idea why this happened?

Reply

Rui Santos
February 23, 2015 at 9:05 pm

Hi doms,
Does you bluetooth module operates at the same baud rate as mine?
https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 113/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Reply

Chexel
February 28, 2015 at 6:36 am

Can you share your code android to me ?

Thank you so much!

Reply

Rui Santos
March 2, 2015 at 6:13 pm

You can download the file right on this web page. Thank you,
Rui

Reply

fungky
March 10, 2015 at 5:17 am

Wow..
nice project Rui..

i have question for PWM on PIN 1 also connect to PWM on PIN 0?


i see your schematic in your post –>>

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 114/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

http://i2.wp.com/randomnerdtutorials.com/wp-

content/uploads/2013/09/DC-motor-Schematics.png

thank you

Reply

pooja
March 12, 2015 at 1:25 am

i m using arduino duemilanove s/n 129013 board and bluetooth module s/n
134504 can u please help me how to make connections between arduino
and bluetooth module and how to get mac address

Reply

Fer
March 16, 2015 at 8:04 pm

Buenas Rui Santos ! Quería la programación con el arduino uno 2 motores


dc independiente controlado vía bluetooth como el del enlace:
https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/
La podría publicar o mandarla al correo.

Gracias…!

Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 115/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


Mert
April 2, 2015 at 7:30 am

Hi,To take a picture of the blocks?

Reply

Antriksh
April 2, 2015 at 9:48 am

hello Rui,
I ma fan of yours great projects…we all are implementing them in our
college projects…..I had experinced a problem in implementing this project
it is connecting fine with HC-05 module but when i press forward button
the motors are not moving …please tell me the possible reason for the
following error..please give a bit of your valuable time for my problem..

Thanks

Reply

kashyap raval
April 3, 2015 at 12:17 pm

Can I use hc-06 bluetooth module??

Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 116/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Naufal FR
April 10, 2015 at 7:58 pm

why i can’t connect to my robot bluetooth? when i click “choose device to


connect to” on ur app, then choose my bluetooth name, then suddenly
appear “Need bluetooth_Admin permission :neither user 10130 nor current
process has android.permission. BLUETOOTH_ADMIN.” why?

Reply

Ejumu Emma
April 16, 2015 at 9:07 am

Hi Rui
i was requesting for the .aia file that i have to import in the app inventor
how may you help me

Reply

รับถ่าย vdo
April 17, 2015 at 2:19 pm

We’re a group of volunteers and starting a brand new scheme in our


community. Your website offered us with useful
info to work on. You’ve done an impressive activity and our whole
community can be grateful to you.

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 117/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Reply

Antonio Lopez
April 28, 2015 at 2:37 am

If i need to control 2 dc motors, and I have the motor shield, I just upload
the code to the Arduino and it works?

Reply

Kevin
May 4, 2015 at 3:31 am

sir i have created your project with all the right connections but when i turn
on the project one motor rotates and when i connect it to the phone it
keeps on rotating and when i press left it stops rotating but the other one
doesnt and when i press stop it rotates i have rechecked all the
connections. i have even replaced the l293d ic and also reprogrammed but
the problem continues. please help me out

Reply

santhosh kumar
May 19, 2015 at 5:38 am

i need a code for controlling , 2 dc motor with bluetooth by smart phone

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 118/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Reply

Shreyas
September 3, 2015 at 9:52 am

Problem : I have connected circuit as given in your diagram but the motors
do not corresponds when i try to check by entering 1,2,3 …..
in the serial monitor . What’s the problem can you explain it ?
Help me as i am new

Reply

Rui Santos
September 13, 2015 at 9:22 am

Did you remove the bluetooth module from the TX and RX lines while
testing to send commands via serial monitor?

Reply

Shreyas
September 18, 2015 at 10:07 am

Thx , a lot Bro .I could control the two DC motors with smartphone
because of you .Thx once again .

PROBLEM : But , When i tested it at that time I Supplied Power through


the ‘Cable connected to Computer’. BUT I Want to Power through “9V
Battery” . So where should I Plug the ‘Battery’ .Please Help me as early
as Possible !!!!!!!!
https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 119/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Reply

Rui Santos
September 19, 2015 at 9:45 am

Depending on the battery that you’re using it might not work if it does
not supply enough current to your bluetooth module

Reply

Shreyas
September 19, 2015 at 2:34 pm

I am using HC-05 Module and Arduino Uno , so how much power


should I supply and where should I plug the Battery.

Shreyas
September 24, 2015 at 8:08 am

I am using HC-05 Module and Arduino Uno , so how much power


should I supply and where should I plug the Battery.I am supplying
3.3 V to HC module through arduino.
Please give me solution to this problem
Where should I plug the Battery ????

Rahaf
October 3, 2015 at 12:02 pm
https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 120/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


Hi Rui ,
How can I get the code of the app blue Ard ?
and thank you 🙂
Reply

Rui Santos
October 10, 2015 at 11:57 am

You can download the code from this page.


It was created using the Mit app inventor beta version

Reply

mariam
October 5, 2015 at 3:01 am

hi i,
like ur project and am about to do it i hope.
but i have one question before i start wich program i use to edite the sorce
file for the app
and in wich programing language its written.

regards,

Reply

Rui Santos
October 10, 2015 at 12:07 pm

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 121/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


Please read the top of this blog post!
Thanks,
Rui

Reply

Mark
November 18, 2015 at 3:38 am

Hi Rui, I really like your stuff and I just published a bluetooth app
specifically for controlling Arduino robots. Let me know what you think and
if it’s helpful.
Heres the link – play.google.com/store/apps/details?
id=appinventor.ai_mark.Jarvis

Reply

Amiine
January 2, 2016 at 10:18 pm

Hello,
Very nice projet, but I was wondering if there any possible way to make
one motor go Ahead and the other one Reverse so that we can have a
perfect turn,
thanks 🙂
Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 122/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


Rui Santos
January 4, 2016 at 2:23 pm

Yes, you can change the code to do that

Reply

Amiine
February 19, 2016 at 6:16 pm

Well, I am kind of a begginer so I was hoping that u could help me by


giving me some hints. Thanks man!

Reply

Ammar
January 19, 2016 at 5:09 pm

Hi,
can you please share the code?
thanks
A.

Reply

Rui Santos
January 21, 2016 at 6:47 pm

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 123/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


You can download all the code used directly from this blog post.
Everything is in a .zip folder

Reply

Matheus
May 6, 2016 at 12:50 am

Rui, baixei seu programa para ver como ele é feito pra aprender um
pouco, mas o app inventor classic não está mais funcionando… tem outra
forma que eu possa ver seu aplicativo? Queria entender os códigos pra
aprender… Obrigado e parabéns pela iniciativa!

Reply

Rui Santos
May 9, 2016 at 9:56 am

You can use this tool to convert App Invento Classic to App Inventor 2:
convert.appinventor.mit.edu

Olá matheus,
Pode utilizar esta ferramenta para converter: convert.appinventor.mit.edu

Reply

saryam lohomi
September 3, 2016 at 3:15 am

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 124/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


Is ardiuno r3 board I used in this project

Reply

Rui Santos
October 2, 2016 at 11:39 am

You can use any Arduino compatible board

Reply

Vianka Leigh
September 25, 2016 at 4:58 am

sir how can i view the screen of you android apk so i can edit it what
application should i use?

Reply

Rui Santos
October 2, 2016 at 11:29 am

Please read carefully the top of the blog post for those instructions.
Thanks!

Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 125/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


ram
November 5, 2016 at 1:05 am

u gave everything but u didn’t gave coding for this

Reply

Rui Santos
November 12, 2016 at 11:41 pm

It’s on the download link in the blog post…


Thanks,
Rui

Reply

manish k
November 6, 2016 at 8:35 pm

can i get code used in dis ?

Reply

Dhananjay Khengare
November 12, 2016 at 4:25 pm

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 126/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


best project but some times the motor gets out of control

Reply

Rui Santos
November 12, 2016 at 11:38 pm

Are you using DC motor that are 5V rated?

Reply

putri
December 22, 2016 at 6:52 am

sorry, may you send me the app inventor (apps code to smartphone via
bluetooth) to my email, please?
thx,

Reply

putri
December 22, 2016 at 7:07 am

hi Rui,
may you send me that aia file ? because i want to edit the app in app
inventor,please ??
thx Rui

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 127/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Reply

Rui Santos
December 22, 2016 at 11:53 am

I don’t that file, please read the top description of this blog post.
This was done for an older version of the MIT app inventor…
You can also search for Convert classic MIT app inventor to aia file
Thanks,
Rui

Reply

Tanmoy
December 25, 2016 at 4:05 pm

wow sir you are genius.i like your all project.

Reply

Rui Santos
December 26, 2016 at 7:50 pm

Thanks for reading my projects,


Rui

Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 128/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


Praveenath Sathyamoorthy
December 26, 2016 at 11:37 am

bro my connections are working i checked in the serial monitor but the
motors are not working can u help me in this…. thank u

Reply

Rui Santos
December 26, 2016 at 7:56 pm

I’m not sure… What exactly happens?

Reply

Umut Alhan
January 10, 2017 at 12:21 pm

Hey Sir,

Thank you for detailed explanations and for all you effort. I also appreciate
that you answer all the comments…

Since I am using your .apk for communication between smartphone and


my hc06 I am getting this errror on my phone:

Need BLUETOOTH_ADMIN permission: neither user 10083 nor current


process has android.permission BLUETOOTH_ADMIN

then it ends the applicaiton.


https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 129/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Can you help me what might be the issue??


Your sincerely,
Alihan

Reply

Rui Santos
January 15, 2017 at 11:43 pm

I’m not sure. Some readers experienced that error, but I don’t know the
solution… Thanks for reading,
Rui

Reply

James
January 17, 2017 at 1:12 am

Hi Rui,

I’d like to modify the app you made for this, but it can no longer be
imported into the newer MIT app inventor. I even tried the converter they
have, but that did not work. Do you have an updated version of the app
source code?

Kind regards,
James

Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 130/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


Rui Santos
January 24, 2017 at 7:19 pm

Search for MIT app inventor classic to AI2 converter and you should find
a website that allows you to convert the older files to the new MIT app
inventor

Reply

jitesh
January 19, 2017 at 2:08 pm

hi
I am using motor controller l293d but I have that board motor controller so
what is t the wiring for that you can tell me please.

Reply

Rui Santos
January 24, 2017 at 7:12 pm

I don’t have any information for that exact board..


Thanks for asking,
Rui

Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 131/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


saleem sheik
January 23, 2017 at 6:14 pm

sir….,
is it possible to run 4 motors, two motors for vehicle moving and another
two motors are run for some special purpose. if it is possible give me some
explanation it is helpful to my project.
thank you sir

Reply

Rui Santos
January 24, 2017 at 6:57 pm

Yes, but I don’t have any tutorials on that exact subject…

Reply

Jimix
February 16, 2017 at 7:01 pm

Pls help i cant fine source code. I click share

Reply

Rui Santos
February 16, 2017 at 10:04 pm

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 132/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


The code is on this exact web page, simply click the download link…

Reply

john
March 9, 2017 at 7:09 am

Hello sir, can i have your original source for AIA file

Reply

Rui Santos
March 20, 2017 at 7:51 pm

I don’t have the AIA files, please read the top message at the top of this
blog post

Reply

Miguel S
November 19, 2017 at 9:01 pm

Good contribution!

Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 133/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


Lis
May 25, 2018 at 2:37 am

Thanks, Rui, this is exactly what I needed to get started. Although I will be
using a downloaded app (there are plenty, each sending different set
commands), your code is pretty universal and basically helps me put
things together and expand it in the future, perhaps by adding the obstacle
avoiding feature (in an if/else statement, I suppose statement), etc.

Guess my first making will be motorized strandbeast (check it out on


youtube, guys, it is pretty awesome) and a three-wheeler … which shall be
a great encouragement for forther endeavours

Reply

Marva
June 29, 2018 at 1:52 am

Can I replace the L293D IC with an L298N motor driver to control my two
DC motors? Do I have to change the code at all if I do?

Reply

Sara Santos
June 29, 2018 at 11:07 am

Hi.
That module should work just fine with the code provided.
You just need to make sure you wire the DC motor to the motor driver
properly.
https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 134/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Regards,
Sara 🙂 

Reply

Pedro Santos
August 3, 2018 at 3:08 pm

Olá Rui.

Primeiro que tudo, obrigado pelo teu esforço em disponibilizares este


conteúdo de graça. Muito obrigado.

Estou a experimentar o teu projeto e, sem mexer em nada no programa, o


meu motor assinalado com “motor2” no pin 1 não funciona. Simplesmente
parece que não recebe a ordem. Estou a tentar com o Serial Monitor e
ainda não passei para o módulo Bluetooth.
O que é que poderá ser?

Mais uma vez obrigado pelo teu site,


Pedro

Reply

Rui Santos
August 4, 2018 at 4:13 pm

Se não consegue controlar o motor a partir do Arduino IDE Serial monitor


significa que algo está errado no seu circuito ou que o chip de controlar
os motores não está bem ligado. Recomendo verificar uma segunda vez
todas as conexões

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 135/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Reply

Bhanu
November 4, 2018 at 4:43 am

Please help me. How can i make to motor motor to rotate slowly.Please
help.Very important for my project. The setup is all set but i want the motor
to run slowly.

Reply

Sara Santos
November 7, 2018 at 5:41 pm

Hi Bhanu.
Instead of using the digital digitalWrite() function and using HIGH and
LOW, use the analogWrite function, for example:
analogWrite(motorPin, motorValue);
In which motor value is a value between 0 and 255 (255 is maximum
speed). This way you can control the speed.
Regards,
Sara

Reply

Sovattey
November 17, 2018 at 1:37 pm

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 136/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


Hello sir, is it fine if i use other app instead of MIT? and is the code works
the same?

Reply

Sara Santos
November 19, 2018 at 12:21 pm

Hi.
This code was built for the companion MIT App Inventor.
It won’t work with a different application, unless it sends the exact same
commands to the Arduino.
Regards,
Sara 🙂
Reply

Sara Santos
November 19, 2018 at 1:58 pm

Hi.
You need to change the code to be compatible with your own application.
Regards,
Sara 🙂
Reply

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 137/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


Raja farhanah binti raja azaham
December 13, 2018 at 4:28 am

Is there any mit coding if changing the IC to motor driver?

Reply

Sara Santos
December 14, 2018 at 5:53 pm

Hi Raja.
We just have the example for the motor drive in this tutorial.
Regards,
Sara

Reply

Shubham
March 7, 2019 at 7:04 pm

Hey very good project bro, but can you send the connection with L298
motor driver.
thanks

Reply

Sara Santos
March 8, 2019 at 12:13 pm

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 138/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


Hi.
We don’t have a guide for that motor driver with the Arduino.
But we have a guide with the L298 motor driver with the ESP32.
The wiring is similar.
Here is the article: https://randomnerdtutorials.com/esp32-dc-motor-
l298n-motor-driver-control-speed-direction/
I hope this helps.
Regards,
Sara

Reply

ADEM
November 2, 2019 at 7:26 pm

Olá,
obrigado pelo seu feedback.
Essa pergunta requer quase um tutorial inteiro.
O que posso dizer agora é que funciona como com o Arduino… O módulo
bluetooth estabelecerá uma comunicação através dos pinos TX e RX.
e seu smartphone estabelecerá uma comunicação com o módulo
bluetooth.

Também vai depender de qual PIC você vai usar. Você precisa ler a folha
de dados…

Responder

Joyal Jaimon
18 de dezembro de 2021 às 15h25

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 139/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


Oi

Eu tentei este projeto. Alimentei o Arduino com um banco de energia e


motores CC com 4 pilhas AA. Usei o módulo driver de motor L298N. Mas
os motores CC não estão funcionando. Verifiquei os motores CC com
corrente contínua e eles estão funcionando. O módulo Bluetooth e o driver
do motor também estão funcionando. Você pode me ajudar com isso?

Responder

Masrath
17 de maio de 2022 às 16h38

Temos alguma especificação sobre a posição do driver ic

Responder

Maria
2 de agosto de 2022 às 12h38

Olá! Estou interessado no seu projeto! Posso saber qual diagrama


esquemático você está usando? Atualmente, estou usando o Tinkercad,
no entanto, há componentes limitados nele.

Responder

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 140/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials


SJ
1 de março de 2024 às 18h44

Estou com problemas com isso no momento. Alguém tentando em um


projeto em 2023/2024?
Tenho uma conexão Bluetooth, mas os motores não estão funcionando
quando pressiono um comando e estou recebendo a mensagem "Broken
Pipe".
Alguma dica para esse problema?
Tenho quase certeza de que conectei tudo corretamente, a menos que
haja algumas coisas específicas que você precise fazer ao carregar o
código no IDE.

Responder

James
12 de abril de 2024 às 12h02

Eu segui este tutorial: https://randomnerdtutorials.com/arduino-control-2-


dc-motors-via-bluetooth/ e não fiz nenhuma alteração nas instruções. No
entanto, quando eu uso o aplicativo, toda vez que eu pressiono avançar,
ele continua avançando para sempre e não PARA mesmo quando eu
pressiono PARAR e depois disso ocorre um erro de cano quebrado?
Existe uma maneira de remediar isso ou como posso alterar o código para
que o botão avançar apenas mova os motores para frente por alguns
segundos?
Ajuda seria muito apreciada.

Responder

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 141/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Deixe um comentário 

Name *

Email *

Website

Notifique-me sobre novos comentários por e-mail.

Notifique-me sobre novas postagens por e-mail.

Postar Comentário

Divulgação de Afiliados: Random Nerd


Tutorials é um participante de programas
de publicidade de afiliados projetados para
fornecer um meio para ganharmos taxas ao
vincular a Amazon, eBay, AliExpress e
outros sites. Podemos ser compensados ​
por encaminhar tráfego e negócios para
essas empresas.

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 142/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Curso Aprenda ESP32 com Arduino IDE


(2ª edição) » Guia completo para
programar o ESP32 com Arduino IDE!

CASA INTELIGENTE com Raspberry Pi,


ESP32 e ESP8266 » aprenda a construir
um sistema completo de automação
residencial.

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 143/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Aprenda Raspberry Pi Pico/Pico W com


MicroPython​» O guia completo de
introdução para aproveitar ao máximo a
placa microcontroladora Raspberry Pi
Pico/Pico W (RP2040) usando a linguagem
de programação MicroPython.

🔥 Aprenda LVGL: Crie GUIs para


projetos ESP32 » Aprenda a criar
interfaces gráficas de usuário (GUIs) para
projetos ESP32 usando LVGL (Light
Versatile Graphics Library) com o Arduino
IDE.

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 144/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 145/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 146/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 147/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 148/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 149/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 150/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 151/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 152/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 153/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 154/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 155/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 156/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 157/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 158/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 159/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 160/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 161/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 162/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 163/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 164/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 165/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 166/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 167/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 168/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 169/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 170/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 171/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 172/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 173/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 174/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 175/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 176/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 177/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 178/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 179/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 180/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 181/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 182/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 183/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 184/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 185/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 186/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 187/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 188/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 189/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 190/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 191/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 192/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 193/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 194/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 195/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 196/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 197/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 198/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 199/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 200/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 201/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 202/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 203/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 204/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 205/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 206/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 207/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 208/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 209/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 210/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 211/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 212/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 213/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 214/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 215/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 216/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 217/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 218/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 219/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 220/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 221/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 222/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 223/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 224/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 225/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 226/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 227/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 228/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 229/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 230/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 231/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 232/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 233/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 234/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 235/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 236/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 237/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 238/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 239/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 240/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 241/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 242/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 243/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 244/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 245/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 246/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 247/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 248/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 249/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 250/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 251/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 252/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 253/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 254/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 255/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 256/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 257/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 258/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 259/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 260/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 261/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 262/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 263/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 264/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 265/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 266/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 267/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 268/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 269/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 270/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 271/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 272/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 273/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 274/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 275/276
21/10/2024, 20:16 Arduino - Control 2 DC Motors Via Bluetooth | Random Nerd Tutorials

Sobre Apoiar Termos e Condições política de Privacidade Reembolsos

Livro de Reclamações MakerAdvisor.com Junte-se ao laboratório

Copyright © 2013-2024 · RandomNerdTutorials.com · Todos os direitos reservados

https://randomnerdtutorials.com/arduino-control-2-dc-motors-via-bluetooth/ 276/276

Você também pode gostar