Hello,
I’m a teacher testing out the Ultimate 2.0 robotics kit for use in my high school Advanced Robotics class next year. I really like the hardware, but I’m finding that the electronics and the programming leave something to be desired.
Truly what I want is a way to directly program the MegaPi using the Arduino IDE. I don’t want to use mBlock. It’s drag-and-drop, which is fine, but that’s for Intro to Robotics, not Advanced. I want my kids writing code.
I have already uninstalled the old drivers, then installed the new CH340/341 drivers so my Macbook is no longer crashing when I connect to MegaPi via USB.
So I open the Arduino IDE, and select the following:
- Boards > Arduino/Genuino Mega or Mega 2560
- Processor > ATmega2560
- Port > /dev/cu.wchusbserial1420
Then choose one of the MakeBlock sample code files, like:
- Examples > MakeBlockDrive > Me_EncoderDriver_New > EncoderMotorTestRunSpeed
…and try to upload it, and I get an error (in comments below). Any help would be appreciated.
HW/SW config:
- Ultimate 2.0 kit
- MegaPi
- Two 25mm Encoder Motors DC 9V, 185rpm
- Two encoder modules connected to MegaPi ports 1 and 2
- MegaPi and motors are powered using the six cell AA battery pack loaded with six fully charged Duracell NiMH rechargeables
- Arduino IDE 1.8.3 with MakeBlock libraries and boards updated
- Macbook Pro early 2015, running OSX Sierra 10.12.5
- Connecting via USB (I know my USB cable is good because I can download the Blink code. Likewise, I had moderate success with mBlock, and managed to download a couple rudimentary programs.)