Sparkfun 9DOF Razor and MegunoLink

Share your projects using MegunoLink Pro here!
Post Reply
RBerliner
Posts: 7
Joined: Wed Apr 03, 2019 11:07 pm

Wed Apr 03, 2019 11:23 pm

I have been attempting to load the Sinewave example onto the Sparkfun 9DOF RAZOR (14001). It does not work.

I sent an inquiry to Sparkfun's Forum and got back an answer that I understand but I don't know the easiest way to modify/change the MegunoLInk libraries.

The SAMD processor in the Razor has 3 serial ports. Two of them are the normal serial ports designated by Serial and Serial1. The USB Port (used by MegunoLink is denoted by SerialUSB. This is explained here.

https://learn.sparkfun.com/tutorials/sa ... rial-ports

Is there a place/variable/define that can be used to point the MegunoLink output methods toward SerialUSB instead of Serial?

It is likely possible to to make a change somewhere in the library source code and then recompile but it could be easier just to use standard print statements with SerialUSB to output the needed MegunoLink messages.,

Is MegunoLink "picky" about the serial messages?

What is the easiest way for me to get Megunolink working with the Razor?
philr
Posts: 272
Joined: Mon May 26, 2014 10:58 am

Thu Apr 04, 2019 5:40 am

Hi, you can specify which serial port to use like this
x2scrap4.png
x2scrap4.png (7.22 KiB) Viewed 210 times
In this case its Serial1 on a mega. I'm not familiar with that Sparkfun board but its worth a shot.

Cheers
Phil
RBerliner
Posts: 7
Joined: Wed Apr 03, 2019 11:07 pm

Fri Apr 05, 2019 1:15 am

Your suggestion worked. Thank you.
Post Reply