Hello everyone,
I am a french beginner who is actually working on a robotic project.
I am using a MakeBlock MeOrion connected to my Raspberry Pi 4 with a MakeBlock MeShield for RaspberryPi and two stepper motors MakeBlock 42BYG. I have tested my motors with an Arduino program and it works perfectly but when I try to run the Python code with the megapi library the motors don’t move.
I used this tutorial at the beginning.
Then with raspi-config, I disabled login shell over serial and enabled the serial port hardware but I still have the same problem, my code is running but my motors don’t move. Here is my test code (found it on github [here](https://github.com/Makeblock-official/P … otorRun.py)) :
from megapi import *
if __name__ == '__main__':
bot = MegaPi()
bot.start()
bot.stepperMotorRun(1,0);
sleep(1);
while 1:
bot.stepperMotorRun(1,-3000);
sleep(10);
bot.stepperMotorRun(1,0);
sleep(4);
Thanks for your help,
Thomas