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

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!

GET THE APP ON GOOGLE PLAY!

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!

Comments

author
Rawan Fathe (author)2017-06-11

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

author

hola tienes el codigo de la aplicacion

author
albertorosati (author)2017-01-02

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
Alberto

author

hola tendras el codigo de la aplicacion

author
Kevin AndresB (author)2017-06-08

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

author
LukasG3 (author)2016-12-18

HI,

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

Why?

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

Lukas

author
Billy BryanS (author)2016-11-18

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.

author
HusnaI (author)2016-07-28

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

author
vandenbrande (author)HusnaI2016-07-28

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

author
FarisulH (author)2016-06-26

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

author
yunhyeong (author)2016-06-17

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

author
vandenbrande (author)yunhyeong2016-06-17

Hello,

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

thanks!

author
FarisulH (author)vandenbrande2016-06-26

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

author
yunhyeong (author)vandenbrande2016-06-20

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

author
MarwenN (author)2016-05-31

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

author
vandenbrande (author)MarwenN2016-05-31

Hi, What kind of error does the Arduino IDE display? Can you show me the error?

author
suprianto1 (author)2016-05-14

please...how to make your android aplication..just video tutorial

author
vandenbrande (author)suprianto12016-05-14

I have the source code available for free, you dont need to make it. Just modify it to your wishes. You know MIT app inventor?

author
suprianto1 (author)vandenbrande2016-05-14

yes..i know...can i get the source code??

thanks for reply this....

author
vandenbrande (author)suprianto12016-05-18

Yes send me your mail adress to contact@arduinosensors.nl and i will send it to you.

author
vandenbrande (author)2016-04-26

Follow me for more Cool and handy stuff!

About This Instructable

3,277views

28favorites

License:

Bio: 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 ... More »
More by vandenbrande:Arduino & C# - RGB LED / LED STRIP CONTROL C# Application Arduino & C# - LM35 Temperature Sensor C# Application Arduino (OPEN SOURCE) Arduino & C# - HC SR04 Distance Meter C# App for Arduino
Add instructable to: