Hello everyone
I am using APM 2.6 which has ATMEGA Aurdino based controller 2650. All the 4 UARTS are used for the various purpose and I need another UART. Just to test the functionality of the SoftwareSerial I have compiled its code as
/*
Software serial multple serial test
Receives from the hardware serial, sends to software serial.
Receives from software serial, sends to hardware serial.
The circuit:
- RX is digital pin 10 (connect to TX of other device)
- TX is digital pin 11 (connect to RX of other device)
Note:
Not all pins on the Mega and Mega 2560 support change interrupts,
so only the following can be used for RX:
10, 11, 12, 13, 50, 51, 52, 53, 62, 63, 64, 65, 66, 67, 68, 69
Not all pins on the Leonardo support change interrupts,
so only the following can be used for RX:
8, 9, 10, 11, 14 (MISO), 15 (SCK), 16 (MOSI).
created back in the mists of time
modified 25 May 2012
by Tom Igoe
based on Mikal Hart's example
This example code is in the public domain.
*/
#include <SoftwareSerial.h>
SoftwareSerial mySerial(3,4); // RX, TX
void setup()
{
// Open serial communications and wait for port to open:
Serial.begin(57600);
Serial.println("Goodnight moon!");
// set the data rate for the SoftwareSerial port
mySerial.begin(4800);
mySerial.println("Hello, world?");
}
void loop() // run over and over
{
mySerial.write("Hello");
delay(10);
}
But I don't know which pins shall I probe on the controller. I want to see the data. I tried to probe in the pin 3 and pin 4 and I cannot see any activity on the scope. Can you guys please help? I am new to Aurduino
Thanks