1

New to the community, i am a total noob, i have a pi pico project using 28byj stepper motor 5v, looking to control revolutions per day from 600-1200, in both directions, using a rotary encoder. also want to have some lights to make it looks cool. Ive spent the last few days trying to get this work with the help of some youtube videos but can only get basic things working code wise, the farthest i have got it to get my stepper motor to buzz and tick, im using gp pin 0-3 for the stepper motor, to a driver board (in1,in2,in3,in4) along with vcc for power and the gnd to the pi pico. I tried taking power from 3v on the pico but the x4 driver led were very faint, so ive used Vbus since and they are much brighter, can anyone point me into the right direction of what im missing?

7
  • 1
    what im missing? ... you did not say what you have, so how can we determine that you are missing? ... please add information about all of the components, how they are connected and the program you are using
    – jsotola
    Feb 19 at 18:13
  • Im on micropython, i got stepper motor with 5 pin jst that connects to driver board, then in1-in4 goes to pico GPIO pins 0,1,2,3, then i have a VCC on the driver board going to vbus on the pico? Then gnd going from pico to driver, Should i be using a 5v dc power supply instead of VCC? Is it not getting enough power? Problem is i dont know if my issue lies in wiring or code, my code is just some basic stuff i found on youtube Feb 19 at 18:56
  • the problem is on line 8 of your code
    – jsotola
    Feb 20 at 3:27
  • For newbies, I would recommend the following ULN2003 driver board: 28YBJ-48 DC 5V 4 Phase 5 Wire Stepper Motor With ULN2003 Driver Board - $4 elecbee.com/…
    – tlfong01
    Feb 20 at 7:44
  • The following tutorial by the LastMinuteEngineers is good, but you need to do a simple code conversion from Arduino to Pico: Control 28BYJ-48 Stepper Motor with ULN2003 Driver & Arduino - LastMinuteEngineers lastminuteengineers.com/28byj48-stepper-motor-arduino-tutorial
    – tlfong01
    Feb 20 at 7:51

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.