Communication problem between mblock and arduino mega


#1

Hello

I have a problem, when I want to control the Arduino Mega 2560 since Mblock the comunication is very slow.

For example i try this code

The digital pin turn on and turn off, but is very slow, it stay on about for 5 seconds and stay off about for 5 seconds too.

when I try the following code and diconnect the Arduino Mega to the PC, it work very good

I already installed the fimware and the librarys the Arduino, and I working with Mblock 3.4.0 and windows 10

Thanks for your help.


#2

Hi,

Did you open a project after connecting to the board? It is a known bug that opening a project after connecting will result in unable to receive Serial messages. We are actively fixing that, but if you are in a hurry please try open a project THEN connect to a board.


#3

hello

Thanks for your comment, I tried the following steps

1 open a proyect
2 connect the arduino mega
3 select the arduino mega 2560 board
4 select the port
5 refresh the fimware
6 run the code, but the arduino is very slow and dont work with the times set on the mblock

I tried with windows 7 and it work very good, but on windows 10 dont work


#4

Hello,

We tried your program on our MegaPi which has Adriuno Mega 2560 chip on it.

I followed your steps,

  1. open a project which has your program,
  2. connect the MegaPi
  3. select the arduino mega 2560 borad
  4. select port
  5. refresh the firmware (if chose megapi board, the firmware will be different)
  6. run the code,

the LED on the megapi is set on pin 13, it works fine with the code, also works on upload mode.

there is some suggestion, try to reinstall the arduino dirver which comes with mBlock. it in Connect > install ardunio driver, Upgrade mBlock to 3.4.1 which is latest version.

If the problem still comes out, please feel free to contect us.

Thank you

Qian


#5