Hello,
(sorry but I'm french...)
I have an Arduino Uno (R3) and I want to create a software serial port. I use the version 1.0.3 of the Arduino Software with this SoftwareSerial library exemple:
#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11); // RX, TX
void setup()
{
// Open serial communications and wait for port to open:
Serial.begin(9600);
while (!Serial) {
; // wait for serial port to connect. Needed for Leonardo only
}
Serial.println("Goodnight moon!");
// set the data rate for the SoftwareSerial port
mySerial.begin(9600);
mySerial.println("Hello, world?");
}
void loop() // run over and over
{
if (mySerial.available())
Serial.write(mySerial.read());
if (Serial.available())
mySerial.write(Serial.read());
}
And I have this in my terminal:
ðf~
~
~Ìþ0Ìó3füþðf~ ~ ~Ìþ
0Ìó3füþ¼Õ::
:ûÚtº
Vë¼Õ::
:ûÚtº
Vë¼Õ::
:û?Útº
Vë¼Õ::
:ûÚtº
VëÀ¼Õ::
:ûÚtº
Vëà¼Õ::
:ûÚtº
VëQS£O!O¡MCO!À&KH$Ò#0y=ààÀààÀÀÀÀàÀàÀÀÀàÀÀàÀÀàÀààxÕ::
:ûité
Vë«ÓÒR¤Útºë«ÓÒR¤Útºë«ÓÒR¤ÚtºëO!MMÞ5''!¿Q!åëþ«ÓÒR¤Útºë¤«ÓÒR
ÚätéIÞ«ÃÒR
ÚätéIÞ«ÓÒR
ÚåtéIÞ
I already tested with another baudrate and with different arduino but I still have this proble.
Also I used the AltSoftSerial library and it's the same display in the terminal
Do you have any idea ?
For more information on my project, I want to use the hardware serial with Xbee and the software serial with my computer to display information.
Thanks.