# code to control dc motor and servo motor using arduino bluetooth bluetooth

**URL:** <https://forum.arduino.cc/t/code-to-control-dc-motor-and-servo-motor-using-arduino-bluetooth-bluetooth/615004>\
**Category:** Programming\
**Created:** [October 12, 2019, 8:02am UTC](https://forum.arduino.cc/t/code-to-control-dc-motor-and-servo-motor-using-arduino-bluetooth-bluetooth/615004 "2019-10-12T08:02:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sidharthsp66](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@sidharthsp66](https://forum.arduino.cc/u/sidharthsp66)\
**Post date:** [October 12, 2019, 8:02am UTC](https://forum.arduino.cc/t/code-to-control-dc-motor-and-servo-motor-using-arduino-bluetooth-bluetooth/615004/1 "2019-10-12T08:02:44Z")

</div>

hii  
iam making a robot ,so i want to control 2 servo and 2 dc motors via bluetoth. but i dont know to program it in this way.  
please anyone help me...

i have

Arduino, l293d motor shield,HC-05 module etc./

please any one sent me the code..

i have some knowledge in c++, so if u can give me some sample code of this..i will modify it..

 ![Screenshot (4).png](https://europe1.discourse-cdn.com/arduino/original/3X/f/f/fff68f9bf4650783ea313a7ea52cd8524f1c159d.png)

---

<div class="post-metadata">

**Author:** ![UKHeliBob](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/ukhelibob/32/215663_2.png) [@UKHeliBob](https://forum.arduino.cc/u/UKHeliBob)\
**Post date:** [October 12, 2019, 9:15am UTC](https://forum.arduino.cc/t/code-to-control-dc-motor-and-servo-motor-using-arduino-bluetooth-bluetooth/615004/2 "2019-10-12T09:15:00Z")

</div>

What have you done so far ?  
Where are you stuck ?  
How are the motors powered ?  
Where will the Bluetooth commands come from ?  
Is this a follow on from your previous threads because your screenshot looks familiar ?

---

<div class="post-metadata">

**Author:** ![GypsumFantastic](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/gypsumfantastic/32/236274_2.png) [@GypsumFantastic](https://forum.arduino.cc/u/GypsumFantastic)\
**Post date:** [October 12, 2019, 10:05am UTC](https://forum.arduino.cc/t/code-to-control-dc-motor-and-servo-motor-using-arduino-bluetooth-bluetooth/615004/3 "2019-10-12T10:05:51Z")

</div>

I did a quick search and there are LOTS of resources about controlling motors and servos via bluetooth online. Most of them include re-usable code. That's probably a good place to start.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 6, 2021, 12:04am UTC](https://forum.arduino.cc/t/code-to-control-dc-motor-and-servo-motor-using-arduino-bluetooth-bluetooth/615004/4 "2021-05-06T00:04:27Z")

</div>

Closed on May 6, 2021, 12:04am UTC


