Post Top Ad

Wednesday, May 22, 2024

on video How to Control DC Motor and Servo Motor with Smartphone using HC-05 module


 How to Control DC Motor and Servo Motor with Smartphone using HC-05 module

In this tutorial you will be creating an aplication for controlling a servo motor. Use slider in your application and move to servo motor from 0-180.


Important Advices:


- Before uploading the code, remove the VCC cable from bluetooth module.


- If you use HC-05 bluetooth module, it will ask the PIN to you. May 1234.


- If you get an error similar to (ERROR 507 or 516 broken pipe) please try to connect a few times. Sometimes connection will be broken.


- Make sure that your Arduino or Genuino board is attached to your computer via USB to enable serial communication through the serial monitor window of the Arduino Software (IDE).


- Include SoftwareSerial library


***I recommend! You do not directly connect the servo motor to arduino. I suggest you use external power to the servo.

SG90 Mini RC servo motors can be used. This can damage the Arduino MG996 instant high torque. MG996 Stall Torque: 9.4kg/cm (4.8V) - 11 kg/cm (6.0V) and Operating voltage: 4.8 ~ 6.6v. I wanted to tell in this tutorial; connections, code generation and motor control. So I did not give more details about the engine.


Hardware Required:


Arduino

Bluetooth Module (HC-06 or HC-05)

Servo Motor

  Wires

Connect the hardware according to the circuit diagram.


Important Advices:


Before uploading the code, remove the VCC cable from bluetooth module.

If you use HC-05 bluetooth module, it will ask the PIN to you. May 1234.

If you get an error similar to (ERROR 507 or 516 broken pipe) please try to connect a few times. Sometimes connection will be broken.

Make sure that your Arduino or Genuino board is attached to your computer via USB to enable serial communication through the serial monitor window of the Arduino Software (IDE).

Include SoftwareSerial library

Get the Code

The Arduino hardware has built-in support for serial communication on pins 0 and 1 (which also goes to the computer via the USB connection).

The SoftwareSerial library has been developed to allow serial communication on other digital pins of the Arduino, using software to replicate the functionality (hence the name "SoftwareSerial")

Digital pins 10 and 11 on your Arduino or Genuino boards are used as virtual RX and TX serial lines. The virtual RX pin is set up to listen for anything coming in on via the main serial line, and to then echo that data out the virtual TX line. Conversely, anything received on the virtual RX is sent out over the hardware TX.


Make sure that your Arduino or Genuino board is attached to your computer via USB to enable serial communication through the serial monitor window of the Arduino Software (IDE).


 How to Control DC Motor and Servo Motor with Smartphone using HC-05 module

In this tutorial you will be creating an aplication for controlling a servo motor. Use slider in your application and move to servo motor from 0-180.


Important Advices:


- Before uploading the code, remove the VCC cable from bluetooth module.


- If you use HC-05 bluetooth module, it will ask the PIN to you. May 1234.


- If you get an error similar to (ERROR 507 or 516 broken pipe) please try to connect a few times. Sometimes connection will be broken.


- Make sure that your Arduino or Genuino board is attached to your computer via USB to enable serial communication through the serial monitor window of the Arduino Software (IDE).


- Include SoftwareSerial library


***I recommend! You do not directly connect the servo motor to arduino. I suggest you use external power to the servo.

SG90 Mini RC servo motors can be used. This can damage the Arduino MG996 instant high torque. MG996 Stall Torque: 9.4kg/cm (4.8V) - 11 kg/cm (6.0V) and Operating voltage: 4.8 ~ 6.6v. I wanted to tell in this tutorial; connections, code generation and motor control. So I did not give more details about the engine.


Hardware Required:


Arduino

Bluetooth Module (HC-06 or HC-05)

Servo Motor

  Wires

Connect the hardware according to the circuit diagram.


Important Advices:


Before uploading the code, remove the VCC cable from bluetooth module.

If you use HC-05 bluetooth module, it will ask the PIN to you. May 1234.

If you get an error similar to (ERROR 507 or 516 broken pipe) please try to connect a few times. Sometimes connection will be broken.

Make sure that your Arduino or Genuino board is attached to your computer via USB to enable serial communication through the serial monitor window of the Arduino Software (IDE).

Include SoftwareSerial library

Get the Code

The Arduino hardware has built-in support for serial communication on pins 0 and 1 (which also goes to the computer via the USB connection).

The SoftwareSerial library has been developed to allow serial communication on other digital pins of the Arduino, using software to replicate the functionality (hence the name "SoftwareSerial")

Digital pins 10 and 11 on your Arduino or Genuino boards are used as virtual RX and TX serial lines. The virtual RX pin is set up to listen for anything coming in on via the main serial line, and to then echo that data out the virtual TX line. Conversely, anything received on the virtual RX is sent out over the hardware TX.


Make sure that your Arduino or Genuino board is attached to your computer via USB to enable serial communication through the serial monitor window of the Arduino Software (IDE).

No comments:

Post a Comment

Post Top Ad

Pages