hii
I am new here with Arduino,i want to control a dc motor to make a climbing robot.
so i want to make the motor rotate 5 times in forward direction then 5 times in backward direction like a loop.when i pre the forward button it must move like this simultaneously. also I want to control this with Bluetooth module.
i don't no how to program this.
i have L293D motor driver,Arduino Leonardo, 12v dc motor,Bluetooth module
Hii
i am new with arduino and i know only little c language, so can u friends help me to program arduino..?
I want to rotate a dc motor for 5 times in forward direction and 5 time times in backward direction.. this must run until i press forward button it must rotate forward and backward like a loop.
I also want to control it with Bluetooth module and mobile
I have an Arduino Leonardo,HC-05 Bluetooth module,L293D motor driver
Cross posting is against the rules of the forum. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend 15 minutes writing a detailed answer on this thread, without knowing that someone else already did the same in the other thread.
Repeated cross posting will result in a suspension from the forum.
In the future, please take some time to pick the forum section that best suits the topic of your question and then only post once to that forum section. This is basic forum etiquette, as explained in the sticky "How to use this forum - please read." post you will find at the top of every forum section. It contains a lot of other useful information. Please read it.
There are a number of ways ranging from a switch that is activated each time the motor shaft passes a particular spot, detecting a mark on the shaft by optical sensor, detecting a magnet fixed to the shaft, detecting a slot or slots in a wheel attached to the output shaft, using a rotary encoder attached to the shaft, using a servo motor to move the shaft a fixed number of degrees and using a stepper motor.
What you cannot do is to rotate the output for a fixed time and hope that it will always move a fixed angle.