Hello,
I am working on my graduation project which will be using RF transmitter and receiver to move data between circuits.
What i want to do is use the transmitter to send the robot directions like Up,Down,Left,Right each on differant channel or in the same channel but as a binary number, eg: 1010 or 1001
as MSB is the Up and LSB is Right.
My question is when i want to send a group of bits during 20ms using the transmitter/receiver pair, How do i code the microcontroller to save the bits i receive within a certain amount of time in an array so that i can later decode them using code and detect the output pins that should be set to high and the ones set to low?
ex: if i send 1001 i will want to receiving end to move the robot forward and right. How can i receive the 1001 bits and interpret them to know the exact pins that should get the output. I know it is more of a job for the Encoder/Decoder but i also know that it can be done using Microcontroller.
Please guide me to the corret way of doing this.
Regards,
Rakan
I am working on my graduation project which will be using RF transmitter and receiver to move data between circuits.
What i want to do is use the transmitter to send the robot directions like Up,Down,Left,Right each on differant channel or in the same channel but as a binary number, eg: 1010 or 1001
as MSB is the Up and LSB is Right.
My question is when i want to send a group of bits during 20ms using the transmitter/receiver pair, How do i code the microcontroller to save the bits i receive within a certain amount of time in an array so that i can later decode them using code and detect the output pins that should be set to high and the ones set to low?
ex: if i send 1001 i will want to receiving end to move the robot forward and right. How can i receive the 1001 bits and interpret them to know the exact pins that should get the output. I know it is more of a job for the Encoder/Decoder but i also know that it can be done using Microcontroller.
Please guide me to the corret way of doing this.
Regards,
Rakan