i am working on a project in which i have two radios ,with one radio i am transmitting morse code and another radio audio output i have given to arduino analog input.
in morse decoder program i have made some changes as i am collecting all the incoming characters into a string of length 24.
but every time i send the morse of 24 characters , i get different results
even the first time count is not reaching 24 .
i have attached the code and result of 5 times sending of morse code.
the format in which i m sending morse is ".lat29.3784long089.6424." {without double inverted commas}
@ nick : plz see the att result.txt. if i dont declare y==0 before the for loop ,then the count starts from 1 itself ,eating up one full character.
@ J -M -L : plz see the code,finstr has been declared as an array of 24 and in the end last character has been declared as null. so,,why does it over flow. now please check the reult.txt also.
@ aarg : i have att result.txt . plz check and advice.
@ nick : plz see the att result.txt. if i dont declare y==0 before the for loop ,then the count starts from 1 itself ,eating up one full character.
y==0 is not a declaration. It's also not an assignment. It's an expression, which doesn't change the value of y at all. What you almost certainly mean is y=0.
Please read the first post in any forum entitled how to use this forum. http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.
What do you suppose will happen if you send at a rate that doesn't exactly equal 100 baud? Is your "fist" good enough to maintain that exact rate at all times? If that rate varies, how hard will it become to tell and 'A' from and 'R'?