Closed GoogleCodeExporter closed 8 years ago
Next week I'm also going to try to connect an Arduino Mega to an AX-12, I still
wish to
be able to use the other serial ports (especially the one connected to the USB
port). So I
will start writing some software this weekend to see if I'm also going to be
bitten by
this.
Original comment by mlangenb...@gmail.com
on 13 Feb 2010 at 10:35
Just FYI, I don't have a mega to test on, so this won't be fixed in-house at
Vanadium.
-Fergs
Original comment by MFergs7@gmail.com
on 19 Feb 2010 at 8:19
I should point out -- the ArbotiX core is a MODIFIED sanguino core. In
particular, we
have disabled the Serial1 ISR inside the core, and provide our own, faster
version in
the ArbotiX core.
You won't be able to just use the library, because it includes an ISR. You'll
either
have to edit the Mega core to remove the Serial1 instance, or edit the AX-12
driver
to use the default Serial1 and drop your bus speed from 1MBps to deal with the
slower
ISR.
-Fergs
Original comment by MFergs7@gmail.com
on 19 Feb 2010 at 8:26
So I fixed this by opening
'/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/ardui
no/HardwareSerial.cpp' and commenting the following lines.
SIGNAL(SIG_USART1_RECV)
{
unsigned char c = UDR1;
store_char(c, &rx_buffer1);
}
This disables the existing Serial1 handling. Now I am able to use Serial,
Serial2 and
Serial3 in combination with a Dynamixel AX-12 connected to tx1 & rx1.
By the way, thanks for the library. It's working great for me!
Original comment by mlangenb...@gmail.com
on 19 Feb 2010 at 8:38
Original comment by MFergs7@gmail.com
on 17 Aug 2010 at 7:51
Original issue reported on code.google.com by
ken.horn...@gmail.com
on 21 Jan 2010 at 5:15