tarang
Junior Member level 2
Hi,
I want to transmit my command from Matlab (PC) to Atmega8 (uC) wirelessly.
I have used On Shines TX and RX.
For proper transmission i am first sending SYNC bits (number 55) then ADDR bits (address 44) -> DATA (my command, say 11 for now) -> CHKSUM (checksum ADDR+DATA)
When atmega8 gets the interrupt it takes in all that above values and start the comparison. It checks first checksum->addr->data and on equal performs the required operation.
Now the problem is the disturbance. When there is disturbance Atmega8 do not receives the correct values.
I tried to send the signal multiple times and then it works 50-50 times, but its not very fast. It takes time 4-5.
Is there any better way so that i my receiver can see only the signal that i send and discard all other?
thanx...
I want to transmit my command from Matlab (PC) to Atmega8 (uC) wirelessly.
I have used On Shines TX and RX.
For proper transmission i am first sending SYNC bits (number 55) then ADDR bits (address 44) -> DATA (my command, say 11 for now) -> CHKSUM (checksum ADDR+DATA)
When atmega8 gets the interrupt it takes in all that above values and start the comparison. It checks first checksum->addr->data and on equal performs the required operation.
Now the problem is the disturbance. When there is disturbance Atmega8 do not receives the correct values.
I tried to send the signal multiple times and then it works 50-50 times, but its not very fast. It takes time 4-5.
Is there any better way so that i my receiver can see only the signal that i send and discard all other?
thanx...