MegaPi


#1

Has any one experimented with or presently using the MegaPi? If so any suggestions prior to my first attempts would be appreciated.


#2

Hi Barg,

Here is a link provide info about MegaPi to you for reference : http://learn.makeblock.com/en/megapi/


#3

Just starting myself - first issue is trying to load firmware - Arduino crashes on uploading.

The documentation doesn’t specify what board to select when uploading the sketch - I’m assuming it’s Arduino/Genuino Mega or Mega2560?

I wondered also if the encoder/drivers for the zeropi are identical to those for the megapi? Other than the connectors. I’d like to be able to use them if so.


#4

Thanks for the response. I tried to upload the firm also for the first time and was unable to also, even after attempting other boards so it appears to me to be a coding issue. I was to tried after numerous attempts and will have to revisit the concern soon.


#5

I found simple error in the code. I’ve temporarily added two forward slashes to the line ledMx.showNum(readFloat(8),3); so it now reads // ledMx.showNum(readFloat(8),3);. You’ll find the line listed in the firmware code under excute.ino, it will be the last line of code in “case LEDMATRIX:”. Once the line was eliminated the program compiled and the board tested fine.


#6

Hi Lewispeterson,

You are right, the Arduino/Genuino Mega or Mega2560 is the board for megaPi.

The encoder/Drivers for zeropi cannot be used on megapi since there are Anti-reverse protection.


#7

Hi Brag,

Thanks for your sharing.
Here we tested the program on MegaPi, both the compile and upload work properly without delete the ledMx.showNum(readFloat(8),3).

Please check if you use the latest version Library file, here is the link to download the latest one:
https://github.com/Makeblock-official/Makeblock-Libraries/archive/master.zip


#8

I’m trying to get my MegaPI board working also but not able to update the firmware via Arduino IDE. A few of the simple examples - like LED flash - work with IDE but not much else. I cannot seem to get even a simple servo running - unless I use the mBlock Scratch interface. With mBlock I can get one running on A9 port but when I try to open the source in Arduino IDE, I get errors. I think I’m having problems with which library files are being used but haven’t figured out the problem yet. Suggestions?


#9

I used pin 3 for the servo pwm/control.
I used 5v and gnd adjacent to A15 for servo power and ground.
I used USB hub to supply 5v power and serial port to linux.

code snippets:

Servo servo;

servo.attach(3);

pos=100;

servo.write(pos);


#10

Thanks Rick, that helps a lot!


#11