Problems with communication


#1

Hello I have a makeblock megapi robot. If I program this via the PC app or Android application often comes before the robot stops responding. Or he just keep going even though I brake.
There is a buzzing sound of the drums to be heard. I have to turn it off and then back on. Test programming is not possible because the error occurs continuously.

Today I connected the megapi to my Raspberry pi and have exactly the same problems.
The Megapi is on the current firmware stand. What could that be?
Does anyone have similar problems?

Can it be at the firmware?
There are two different


#2

Hi Roboterpi,

Is your Makeblock megaPi robot the Ultimate 2.0?
If yes, you can reset default program for the Ultimate 2.0 with mBlock software refer to this instruction and then control it with mobile APP have a try: How to reset default program for MegaPi.zip (363.1 KB)

For the issue that it just keep going, how does this happen? Do you run or upload your own program to the robot? As for the buzzing sound of the drums, does the robot has this sound when you power on it even with default program? Is it possible to take a video with the sound record?


#3

Hello the problem solved.
I had installed a gyro which probably caused a short circuit.


#4

Hello the engines run however I can not change the speed.
If I adjust 50 or 200 it is always the same speed?

from megapi import *

if name == ‘main’:
bot = MegaPi()
bot.start()
bot.encoderMotorRun(1,0);
sleep(1);
while 1:
sleep(1);
bot.encoderMotorRun(1,50);
sleep(1);
bot.encoderMotorRun(1,100);
sleep(1);
bot.encoderMotorRun(1,200);
sleep(1);
bot.encoderMotorRun(1,0);


#5

You may try the following program and see if the motor speed change:

Note: upgrade firmware for MegaPi before test above; Make sure power switch is ON.


#6

Hello about the program mBot s.PC and the Android app can change the speed.
When I run the python program on a Raspberry pi, the speed does not change. If the value is set to more than 200, the motor also runs in the wrong direction.

In the video, the robot is always running at the same speed.
In the program it is programmed that the motors should run at different speeds.

Do I do something wrong in Python?

from megapi import *

if name == ‘main’:
bot = MegaPi()
bot.start()
sleep(1);
bot.encoderMotorRun(1,0);
bot.encoderMotorRun(2,0);
sleep(2);
bot.encoderMotorRun(1,20);
bot.encoderMotorRun(2,-100);
bot.motorRun(1,100);
sleep(2);
bot.encoderMotorRun(1,0);
bot.encoderMotorRun(2,0);
bot.motorRun(1,0);
sleep(2);
bot.encoderMotorRun(1,50);
bot.encoderMotorRun(2,-100);
sleep(2);
bot.encoderMotorRun(1,0);
bot.encoderMotorRun(2,0);
sleep(2);
bot.encoderMotorRun(1,255);
bot.encoderMotorRun(2,-100);
sleep(2);
bot.encoderMotorRun(1,0);
bot.encoderMotorRun(2,0);


#7

Hello with the firmware
"Firmware_for_MegaPi_New"
It works to change the speeds in Python.


#8