arduino-libs-manchester
arduino-libs-manchester copied to clipboard
Strange behaviour with Serial.begin
Hi,
First of all, thanks for your great work :)
I have an issue with the library. I'm using an Arduino UNO to receive data. In fact it doesn't work so I want to debug the program.
So I added this code :
In the Serial Monitor I get this :
What I seen is it is this statement wich make it crazy :
man.setupReceive(RX_PIN, MAN_1200);
Do you have any idear how can I use the Serial Monitor with your library ?
Regards,
ps: sorry for my poor english
I'm sorry to say I'm not actively working on any electronics at the moment so I can't help you much.
Perhaps you could move the calls to Serial.begin above the calls to man? I'm not sure whether that would make a difference.
On 1 Jan 2014, at 11:45, jberthe [email protected] wrote:
Hi,
First of all, thanks for your great work :)
I have an issue with the library. I'm using an Arduino UNO to receive data. In fact it doesn't work so I want to debug the program.
So I added this code :
In the Serial Monitor I get this :
What I seen is it is this statement wich make it crazy :
man.setupReceive(RX_PIN, MAN_1200);
Do you have any idear how can I use the Serial Monitor with your library ?
Regards,
ps: sorry for my poor english
— Reply to this email directly or view it on GitHub.
Hi, I too am facing the same issue. It looks like the clock speed is changed after the beginReceive() call. I tried a simple trick of blinking LED in the loop with 500ms delay. The delay seems to get lower and lower as the baud rate gets higher.
I am not sure if something is happening internally wrt to the clock speed depending on the rx/tx transmission/receive speeds.
@jberthe: were you able to get your setup working?
Try in your setup()
Serial.begin(9600);
It's is working fine for me in attiny85