Hi there, would it be possible to connect a battery pack of 6V as the power supply rather than an adapter? (sorry if this is a silly question, I'm new to electronics and don't want to end up frying my arduino or blowing something up!)
@BasonTech3 жыл бұрын
6V is too much, the motor is rated 5V max. Also make sure your battery pack can provide enough amps.
@carlosvargas14433 жыл бұрын
where is the course description so I look at the code
@BasonTech3 жыл бұрын
It depends how you watch this video. You'll find all the links in the video description. For this tutorial it is arduino-tutorials.net/tutorial/control-28byj-48-stepper-with-uln2003-driver-with-arduino 😃
@Brandon-qp7gq2 жыл бұрын
how is it safe to connect the ground of the power supply to the arduino while the positive voltage comes from elsewhere? what if the power supply is a battery?
@BasonTech2 жыл бұрын
I don't understand your question. They share a common ground but the circuits are individual for powering the motor and for the driver.
@speedstacker5932 жыл бұрын
When I connect my external power supply, same as yours, my arduino does not light up and turn green and orange. Any idea why? Wiring is identical as in the video
@speedstacker5932 жыл бұрын
I believe it is the power adapter. When I plug the external source directly into the arduino, it works fine but when I use the adapter and wire like you it doesn’t not work
@BasonTech2 жыл бұрын
Maybe the voltage is too low?
@speedstacker5932 жыл бұрын
@@BasonTech it works when it is just the power supply plugged into the arduino. When I use the adapter and breadboard it does not work
@BasonTech2 жыл бұрын
Sound like an incorrect wiring or a faulty breadboard
@speedstacker5932 жыл бұрын
@@BasonTech The breadboard is working properly and the wiring is identical to the video. I will keep playing around with it and see what I can get. Thank you for the help!
@rekhasaini6723 жыл бұрын
Can I use a 5v breadboard supply module for instead of the adapter
@BasonTech3 жыл бұрын
You can, but you shouldn't. The motor can draw peak powers which could damage your Arduino.
@rekhasaini6723 жыл бұрын
Thank you
@fadygharbi74792 жыл бұрын
Hi there I did the same code The motor is just vibrating not turning any solution ?
@BasonTech2 жыл бұрын
If the code is exactly the same, please check your wiring. Maybe there is a loose connector or the wrong power supply.
@dogme6663 жыл бұрын
hi, thanks for the video! it got me severall steps forward, i have a question though, im using a computer power suply , when i conect it like this to the 12v power rail of the psu it works for about half a minute and stops, the chip gets really hot and if i disconect and wait a bit it works again, do you have any suggestion to what i might have done wrong? my ground rail comes from the power suply as well. any insight on this will be extremely helpfull. edit: there is a problem with my uln2003 board, a diferent board works perfectly, gonna trtoubleshoot the traces now, thank you for the video!!!
@BasonTech3 жыл бұрын
Thanks for the update! Maybe you've damaged the ULN2003 chip with a faulty connection and that makes it hot?
@dogme6663 жыл бұрын
@@BasonTech the ic works on a different board, so I suspect there is a short on the little circuit board.
@BasonTech3 жыл бұрын
Great you got it working, well done! 😃
@juliusaitken3 жыл бұрын
Hi Baz! How would i amend the code to control TWO stepper motors so they behave completely independently?
@BasonTech3 жыл бұрын
What part did you get stuck and did not work?
@ersatz71075 жыл бұрын
is there a code for controlling the motor with a potentiometer like how you would control a servo motor with a potentiometer?
@BasonTech5 жыл бұрын
You can combine the code of the potentiometer tutorial with this one. Convert the range of the potentiometer to the amount of degrees you want the motor to rotate.
@iszjhxsbxb5 жыл бұрын
how many stepper motors can i control with ardino uno
@BasonTech5 жыл бұрын
Theoretically as much as you want. Practically there are some limitations: speed of controlling all motors, current drawn by the motors, the number of pins available. This topic quite covers your question forum.arduino.cc/index.php?topic=241152.0
@expires_today2 жыл бұрын
I have a problem, I connected everything correctly, but the motor only makes sounds and does not spin, it also vibrates, I have already tried to increase the voltage, but it still does not work
@BasonTech Жыл бұрын
It could be that the pin layout is different on you PCB board. Then the steps will not work.
@dinzzz00003 жыл бұрын
Hi, my stepper is vibrating nut it is not actually rotating :( do you know what the problem might be ?
@BasonTech3 жыл бұрын
Hi, make sure the wires are connected correctly. Other thing could be the power supply not being connected correctly
@biswa1454 жыл бұрын
What is the steps per revolution of the stepper motor you used?
@BasonTech4 жыл бұрын
Hi Mishra, Officially it is 64, some people at forum.arduino.cc/index.php?topic=71964.15 calculated it is actually 63.68395 😃
@biswa1454 жыл бұрын
@@BasonTech There's no single answer. Some are saying it's 64, some saying it's 4096?!
@heathcarter46543 жыл бұрын
Cheers really usefull
@BasonTech3 жыл бұрын
Great to hear, thanks! 😃
@ValerianKapeller2 жыл бұрын
Why always 8,9,10,11 pins on the arduino? Can i go for 2,3,4,5 as well? Thank you :)
@ahmadaidit61752 жыл бұрын
i think you can, just change the pin at 4:45
@BasonTech2 жыл бұрын
Hi, that depends on the requirement of the pins. Pin 2, 3, 4 and 5 could work but you have to keep in mind if your application needs for example PWM pins. It then is important to select the correct ones.
@ValerianKapeller2 жыл бұрын
@@BasonTech thank you very much for your answer! :) Got it!
@v.ssarath9113 жыл бұрын
THANKS a lottttttttt. THANK YOU SOO MUCH
@BasonTech3 жыл бұрын
Glad I can help 😃
@alanpereira68244 жыл бұрын
I want to turn off the stepper motor once it rotates half way. I do not want it to loop. Can the driver do that?
@BasonTech4 жыл бұрын
Sure, that should not be a problem
@last1b4free4 жыл бұрын
new subscriber !
@BasonTech4 жыл бұрын
Welcome! 😃
@azozalshateri50294 жыл бұрын
The ULN2003 driver dose not show lights, I do not know why?
@BasonTech4 жыл бұрын
Are you sure you've powered the motor and board correctly?
@azozalshateri50294 жыл бұрын
@@BasonTech yes, I am so sure that I do the same what you did in the video. May there a problem in Uln2003 itself or the type of Arduino because when you run the code it appears green light in your Arduino but my Arduino red light apears.
@azozalshateri50294 жыл бұрын
@@BasonTech many thanks, I solved the problem. The problem was the jumper was not connected to the Uln driver.
@BasonTech4 жыл бұрын
Great to hear you've solved it, thanks for sharing! 😃
@OregonDARRYL3 жыл бұрын
Line 29 reads "degrees per revolution"... when I think you meant "degrees per one full step".
@BasonTech3 жыл бұрын
Hi Darryl, 1 revolution is 360 degrees. It has 64 steps per revolution. 360 / 64 = 5.625 degrees per revolution. This is the same as degrees per one step.
@OregonDARRYL3 жыл бұрын
@@BasonTech 360 degrees per one revolution. 5.625 degrees per step. Line 27 in your code says "5.625 degrees per revolution". That is incorrect. Good video though. Thanks.
@Marco.Malatesta5 жыл бұрын
hello and congratulations for the video, I need the same code but for 2 motor steppers, do you know what I should modify? thanks and good day.
@BasonTech5 жыл бұрын
It is basically the same code. You define another 4 pin variables e.g. motor2Pin1, motor2Pin2 etc. And create a second instance of the stepper like: AccelStepper stepper2(AccelStepper::HALF4WIRE, motor2Pin1, motor2Pin3, motor2Pin2, motor2Pin4); Instead of stepper.setMaxSpeed(1000.0); your now use stepper2.setMaxSpeed(1000.0); So everything works the same but now you have two instances: stepper and stepper2. Hope this helps :)
@BasonTech5 жыл бұрын
@@Marco.Malatesta On arduino-tutorials.net there is a contact button which you can use :)
@Marco.Malatesta5 жыл бұрын
@@BasonTech Hi, after many tests I managed to modify the code, now it works well, thank you for the help you have given me, bye.
@BasonTech5 жыл бұрын
Great! Unfortunately this is the best way to learn stuff ;)
@Koto-Sama4 жыл бұрын
2:44 this is incorrect for this type of motor
@BasonTech4 жыл бұрын
Thanks for your remark, I've removed the scene from the video
@Koto-Sama4 жыл бұрын
@@BasonTech thx
@santhosheaswaramoorthy86853 жыл бұрын
Why are you using power plug?
@BasonTech3 жыл бұрын
You want to separate the motor current form the Arduino current. The high peaks might damage your Arduino. Therefore I make the motor power go completely separated from the Arduino one.