# Control 4 motors independently with a PS4 controller

**URL:** <https://forum.core-electronics.com.au/t/control-4-motors-independently-with-a-ps4-controller/5531>\
**Category:** Arduino\
**Created:** [10 June 2019 02:27 UTC](https://forum.core-electronics.com.au/t/control-4-motors-independently-with-a-ps4-controller/5531 "2019-06-10T02:27:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Micheal88746](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@Micheal88746](https://forum.core-electronics.com.au/u/Micheal88746)\
**Post date:** [10 June 2019 02:27 UTC](https://forum.core-electronics.com.au/t/control-4-motors-independently-with-a-ps4-controller/5531/1 "2019-06-10T02:27:27Z")

</div>

I am currently doing a school project to control our own made submarine. I have successfully made it work by following the tutorial from this website.

> **[Arduino 4WD Rover Bluetooth Controlled by Android Phone/tablet](https://www.instructables.com/id/Arduino-4WD-rover-bluetooth-controlled-by-Android-/)**
>
> Arduino 4WD Rover Bluetooth Controlled by Android Phone/tablet: Arduino 4WD bluetooth controlled roverThis is a simple 4WD rover i made with Arduino.the rover is controlled with an android phone or tablet over bluetooth. With that...

Although helpful, we have encountered problems and would like to control the motors independently. Any help would mean alot.

---

<div class="post-metadata">

**Author:** ![Stephen](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/stephen/32/1599_2.png) [@Stephen](https://forum.core-electronics.com.au/u/Stephen)\
**Post date:** [10 June 2019 23:36 UTC](https://forum.core-electronics.com.au/t/control-4-motors-independently-with-a-ps4-controller/5531/2 "2019-06-10T23:36:22Z")

</div>

Hi Micheal,

This setup only uses a single dual motor control. You will need to add another motor controller and the code to control it. With the parts as listed there will be no way to control each motor individually.

---

<div class="post-metadata">

**Author:** ![Micheal88746](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@Micheal88746](https://forum.core-electronics.com.au/u/Micheal88746)\
**Post date:** [11 June 2019 03:53 UTC](https://forum.core-electronics.com.au/t/control-4-motors-independently-with-a-ps4-controller/5531/3 "2019-06-11T03:53:45Z")

</div>

Thanks for the reply Stephen,

Do you know any programs I could use to be able to just figure out how to control one motor for now with a PS4 controller. it would help as I could probably just easily expand the code to do more motors. Also what parts do you think would I need to build it? Right now we have everything running on a Mega Arduino board and 2 H bridges with 5v batteries to each H bridge.

---

<div class="post-metadata">

**Author:** ![Stephen](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/stephen/32/1599_2.png) [@Stephen](https://forum.core-electronics.com.au/u/Stephen)\
**Post date:** [11 June 2019 04:38 UTC](https://forum.core-electronics.com.au/t/control-4-motors-independently-with-a-ps4-controller/5531/4 "2019-06-11T04:38:30Z")

</div>

Hi Micheal,

Here is a great tutorial to get you started:

> **[Creating a DualShock 4 Controlled Arduino](https://www.instructables.com/id/Creating-a-DualShock-4-Controlled-Arduino/)**
>
> Creating a DualShock 4 Controlled Arduino: With just a few extra pieces of hardware, upgrade your Arduino to receive input from a Sony DualShock 4 controller via a Bluetooth connection.
