Need help code arduino

I want help with the Arduino code. Control the 12 volt motor using Bluetooth and the phone app. A command should be sent from the phone to the Arduino to open the motor to open the motor and the command to shut down the motor reverses the direction of rotation of the motor

Welcome to the forum

Your topic was MOVED to its current forum category as it is more suitable than the original

What code have you written so far ?

Read the advice how to post the code You have so far.
The advice link: How to get the best out of this forum - Using Arduino / Project Guidance - Arduino Forum

Where can i find you

All replies comes here. This forum is not a private clinic fixing Your private problems. The main idea is like building a library where future members can find solutions.

I wrote the engine control code, but automatically, and I want to control it through commands via an app on the phone

Thank you sir, I want arduino code to control a 12v motor running through a relay and I want to make commands from a mobile app

Fine.
Split up the project and get down to the bottom floor.

  1. Control an engine. Test code number one.
  2. Reading commands from a phone app. Test code number 2.
  3. Incorporate those 2 code parts, one by one, to the man in code.
  4. Adjust the parts to work together.

I found this a very useful source of help to get BT to work.

You could easily amend that code to do an "if" to check the incoming data from BT to be say a 1 to turn your motor on or 0 to be off or whatever. I just used BT terminal on my phone to test.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.