Hello all, I'm having a problem with my serial communications but first let me start by describing my setup:
I have a UAV that has 3 Arduino microcontrollers and a BeagleBoard. The three microcontrollers serve as follows: 1. ArduPilotMega (APM) - flight controller 2. Arduino Pro mini 16MHz - analog sensor reading 3. SeeeduinoMega 2560 - Serial communications relay between APM, Pro mini, BeagleBoard, and Xbee 900MHz
I'm wanting to put the analog sensor reading on the Seeeduino and get rid of the Pro mini. I did this and it works but as the Seeeduino reads the analog pins it misses some serial communications. The serial communications need to take priority over the analog readings and so an interrupt popped into my mind. I have used interrupts before on Arduino and they worked out fantastically. I found an example on avrfreaks.net for serial driven serial communication so the hardware I'm using should support it but I have been unsuccessful in my attempts to get it to work. I also came across an Arduino library called fastSerial which seemed like a possibility but I was unable to get that to compile.
Can you give me any help with how I may be able to give priority to the serial communication or speed up the analog reads?
Thanks in advance, lightbulb14