Megapi and the raspberry pi challenges


#1

Hello all,

I recently got my ultimate kit2.0. Parts look great by the way. I would like to connect my megapi to my raspberry. I soldered the connection so far so good. I put the selected driver on my computer and uploaded the latest firmware via sketch to the megapi as described in the manual. This completed without any trouble. The problem began when I tried to code the line:

from megapi import * #this was oke
bot = MegaPi() #it hanged here printed ‘init Megapi’ and then it got stuck on this line.

Which version of python did you use for testing? Should I upgrade? Is there a more elaborate troubleshooter manual for the megapi?

Thanks in advance


#2

Hi nick,

We use python2.7 for testing.

Here is the link about all info on MegaPi to you for reference: http://learn.makeblock.com/en/megapi/


#3

How to upload python code to megapi?


#4

Hi Kingrocky,

You may check if you can find more info under 6.Guide to programming part in this link: http://learn.makeblock.com/en/megapi/

The following sections show how to program with Python and Node.js, as well as API interfaces



#5