Page 1 of 1

Sparkfun 9DOF Razor and MegunoLink

Posted: Wed Apr 03, 2019 11:23 pm
by RBerliner
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?

Re: Sparkfun 9DOF Razor and MegunoLink

Posted: Thu Apr 04, 2019 5:40 am
by philr
Hi, you can specify which serial port to use like this
x2scrap4.png
x2scrap4.png (7.22 KiB) Viewed 38308 times
In this case its Serial1 on a mega. I'm not familiar with that Sparkfun board but its worth a shot.

Cheers
Phil

Re: Sparkfun 9DOF Razor and MegunoLink

Posted: Fri Apr 05, 2019 1:15 am
by RBerliner
Your suggestion worked. Thank you.