I am trying to use Mathematica's MicrocontrollerKit, which was introduced with the release of 12.0 and was featured in a video during the WTC2019 in a video last week. The very first example of the Microcontroller Kit Tutorial works with a regular Arduino Uno, but it fails with an Arduino Mega 2560. However, both Arduinos work with the Arduino IDE, which is also used by Mathematica's MicrocontrollerKit! For very good reasons, we rely on the Arduino Mega 2560, which is one of the most versatile Arduino.
The error message obviously refers to a communication issue. The RX/TX lights blink erratically while MicrocontrollerEmbedCode fails. Mathematica's MicrocontrollerKit provides 149 Target entities, but there is none that fits Arduino Mega 2560. Did I miss a target name? Is there a way to specify the communication properties?
Mathematica's MicrocontrollerKit is really nice, since it provides a simple link between the huge Control Systems section and real life.
Dear Ernst, is this question related to Wolfram Technologies? If so, please could you clarify how with more details.
Hi, the question certainly relates to Wolfram Technologies. I updated my post extensively and provided a clear description of the problem. I am surprised by how few discussions center around Mathematica's MicrocontrollerKit and the access to Connected Devices. I have been using Mathematica for years to operate scientific cameras and various microcontrollers.
The Mega couldn't make it in the first release.
The Mega and Uno use two different mcus. The Microcontroller Kit does not yet support the ATmega2560 that is used by the Mega. It has a different instruction set than the ATmega328 used by the Uno.
Thanks for your feedback and interest. It helps us to prioritize the next batch of mcus that need to be supported.
Dear Suba, thank you for the swift and clear response. We use the Mega for controlling our microscopes, i.e. not for collecting any images, but for organizing the movements of stages, filter changers, ..., the Nano for driving small motors and various Arduino originals and clones during the software development process.
Since you are also using the Arduino IDE, or at least parts of it, I was sure it was an issue of some command line option. Obviously, I was wrong. In any case, I look forward to your next version of the MicrocontrollerKit.
Please include support for the Teensy 4.0 in a future version of the microcontroller kit. It offers stunning performance at an incredible price and is programmable through the Arduino IDE as well. (https://www.pjrc.com/store/teensy40.html)
Keeping this thread active and echoing the above to request support for both the Arduino Mega 2560 and the various Teensy 2.X, 3.X, and 4.X variants (right now I am using Teensy 3.2 boards, but I am fully supportive of the work that Paul at PJRC has put into his entire line).
Thanks again for all the feedback.
As an update, the plan is to add support for the Mega in the 12.1 release.
The Teensy boards will probably come later next year.