Arduino/Android- 28BYJ 48 Stepper Motor Control Using the HC-06

About: Hello world! I make simple & Advanced projects for people who want to learn programming and electronics. Most of my Instructables are about arduino and the wide range of sensors you can use with it. I ma...

Hello world! Today i made a simple app to turn one 28BYJ 48 stepper motor on and off, it just rotates to one direction. I will make a app to control the curtains of your house next, with the same motor. If you want the source code of the android app just ask! I will ask a very small favor in return. Go to the next step for the Schematic, Parts list & code.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Schematic, Code, Parts List & APP

Just wire it up like the Schematic and it should work after uploading the code.

Make sure you disconnect the HC-06 when uploading the code. Other wise the arduino becomes confused.

Parts list.

  1. Arduino uno, I used the RobotDyn Uno which has 7 analog pins instead of 5.
  2. HC-06 Bluetooth module.
  3. 28BYJ 48Stepper motor With the ULN2003 driver board
  4. Jumper wire set. MM/FF/MF
  5. Android phone and our APP.

Get the APP on GOOGLE PLAY

Good luck!

To find out how to rename your HC-06 & set PIN + change baud rate. Follow step 2 (optional)

Step 2: How to Change the Name of Your HC-06

What is needed?

1 x USB to TTL microcontroller programmer to connect to your HC-06

How to connect the Programmer?

VCC to VCC

GND to GND

RXD to TX

TXD to RX

Lets get started...

  1. connect the USB TTL programmer to the HC-06
  2. Plug in the USB and open up The Arduino IDE
  3. Open the serial monitor.
  4. Type "AT" without quotes. You should see a respond in the Serial monitor saying "OK"
  5. Type "AT+NAMExyz" Sets the module name to “xyz” (Replace xyz with the name you want.) response should be OKsetname.
  6. Type "AT+PIN1234" Sets the pin to 1234 (replace 1234 with your desired pin) respond should be OKsetPIN For more info on changing baudrate etc. i included a PDF file. Good luck!

Be the First to Share

    Recommendations

    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    10 Discussions

    None
    germanfcontreras

    Question 2 months ago

    Hi, good job. You teaching me new thing. Thanks

    None
    jefflehto

    Question 4 months ago on Step 1

    Hello,
    I am using a Elegoo Uno R3. Would that make a difference in the code? I'm really new to this. I've set up exactly how your tutorial explains and that's the only difference I can find.

    Thank you,

    Jeff

    1 answer
    None
    bekathwiajefflehto

    Answer 4 months ago

    hi Jeff, where are you getting hung up? Does your code compile and upload to your board? The board you describe should work the same as the one in this Instructable. If you are new to Arduino you might try the free Instructables Arduino class to get you up to speed. https://www.instructables.com/class/Arduino-Class/ This guide is a bit advanced.

    None
    1309082105

    2 years ago

    Hello Can I have the APP and APP source code sent to me? Reference, thank you! 1309082105@qq.com

    1 reply
    None
    GaëlB3

    1 year ago

    Hello,

    Good job! Can you send me this app source and the app source for curtain control, please

    thanks

    1 reply
    None
    AXR AMAR

    3 years ago

    nice work !! you can also use voice commands and make laser turret !

    temp_-1883759358.jpg
    1 reply
    None
    vandenbrandeAXR AMAR

    Reply 3 years ago

    Hi, Thanks! Nice project you made. I made another APP to control curtains, or whatever you want to control with a stepper motor. follow the link https://www.instructables.com/id/ArduinoAndroid-BLUETOOTH-28BYJ-48-Stepper-Motor-Cu/

    None
    vandenbrande

    3 years ago

    Check out my other instructable. as i said i was going to make another app to control your curtains. SO here it is. https://www.instructables.com/id/ArduinoAndroid-BLUETOOTH-28BYJ-48-Stepper-Motor-Cu/