Arduino/Android BLUETOOTH - 28BYJ 48 Stepper Motor Curtain Control APP


Introduction: Arduino/Android BLUETOOTH - 28BYJ 48 Stepper Motor Curtain Control APP

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!

Yesterday i made a stepper motor control app that could only turn one way (on and off) and i said i was going to make one to control your curtains, So here it is! Can be used for multiple things of course. Check out the next step for the Code, Schematic, Parts list & APP.

The source code of the app is available just ask me.

Step 1: Schematic, Code, Parts List & APP

Wire everything up like the schematic and it should work!

Make sure you disconnect the HC-06 bluetooth module when uploading the code! other wise the arduino becomes confused

Parts list.

  1. Arduino uno, I used the RobotDyn Uno, a copy with 7 analog pins!
  2. HC-06 Bluetooth module.
  3. 28BYJ 48 Stepper motor With the ULN2003 driver board
  4. Jumper wires set MM/FF/MF
  5. Android phone/Tablet & the APP

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?





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!



    • Planter Challenge

      Planter Challenge
    • Clocks Contest

      Clocks Contest
    • Casting Contest

      Casting Contest

    We have a be nice policy.
    Please be positive and constructive.




    My email ID is

    Hello. Can you tell me is it possible to use your code with arduino nano? I tried, but there was an error. Thanks.

    Снимок экрана 2018-01-06 в 15.56.20.png

    Can you tell me how to download program for this? Or plz send the arduino program to this mail id

    Hello, thank you for your excellent program that I have been very useful.
    It would be possible to get the source of the app to my email address?
    I try to send an email of private demand.
    Thank you

    2 replies

    Can you tell me how to download program for this?

    hola tendras el codigo de la aplicacion

    Hello, thank you for your program that I have been download to my phone.

    but i want to know if it possible to get the source of the app to my email address?
    i send you an email to get the source code

    and i want to know if the app could control of speed of the motor or not !

    can you help me to make it control of speed please !

    Thank you

    1 reply

    hola tienes el codigo de la aplicacion

    hola nesecito que al pulsar un boton en el celular gire a la derecha y otro a la izquierda y uno aga que pare como ago


    I done your example and tried un my mobile phone the app.....when I connect bluetooth is all ok.....I touch go one direction and go.....I stop this and it's stop.....but....after the hc06 turn off some seconds, and turn on again and force me to reconnect bluetooth from phone to hc06


    The same was with old example stepper motor control 1.ino

    After some command from phone, the bluetooth go in "broken pipe" and I must to reconnect from phone to bluetooth....

    Normally my phone have no problem becouse I use bluetooth on my car

    I tried to use another hc06 that I have, but same result.

    Please can you to help me? thanks


    Hola esta muy interesante como puedo conseguir el codigo para arduino IDE del control del motor y como seria en el caso del control de dos motores DC en una sola cortina.

    hello...i really intrested in this project. can you send me the coding and the app code for this project?

    1 reply

    Hi, Please send your e-mail address to and i will send you the source code for the app, that is what you meant right?

    I Follow step by step there,, but when i press the botton, my motor stepper didnt move anymore. can u help me ?

    Hello, I have sent you an email regarding the source code on your email address I really hope you'll respond. Thank you!

    3 replies


    Yes i received it.
    I have send you a mail with the code.
    please review my app on google play with a honest review.


    i also have sent u an email, perhaps u can share your code there :), thank you

    I got it, thank you so much. You don't know in how many ways you've saved me, lol. You're very kind.

    I can not confirm programming arduino; Is there a problem in programming