Society of Robots - Robot Forum

Software => Software => Topic started by: vipulan12 on August 30, 2013, 10:59:10 PM

Title: encoding in RF
Post by: vipulan12 on August 30, 2013, 10:59:10 PM
hi, i am planning to buy these components for RF communication
https://www.sparkfun.com/products/10534 (https://www.sparkfun.com/products/10534)
https://www.sparkfun.com/products/10532 (https://www.sparkfun.com/products/10532)

so i looked up some tutorials wiring it seems easy but then it talks about data packets
all this encoding business which starts to get complicated
here is the link:
http://winavr.scienceprog.com/example-avr-projects/running-tx433-and-rx433-rf-modules-with-avr-microcontrollers.html (http://winavr.scienceprog.com/example-avr-projects/running-tx433-and-rx433-rf-modules-with-avr-microcontrollers.html)

i would appreciate it if someone could generally explain how this works(i have some understanding about the structure of data packets)
also can some explain these different "ending methods"(whatever they are)
also how will the programming work if i was hooking this up with an arduino?

thanks
Title: Re: encoding in RF
Post by: waltr on August 31, 2013, 08:17:21 AM
Yes, to get reliable communications with those RF modules you must encode/decode the data.
To learn start by googling and read (Wiki has good info) on the following:
OOK/ASK
Manchester encoding

Good C code to study is the Virtual Wire:
http://www.airspayce.com/mikem/arduino/VirtualWire.pdf (http://www.airspayce.com/mikem/arduino/VirtualWire.pdf)

These question of how to use these RF modlues has come up on this (and the SparkFun forum) many times. So search these forums for lots of info and discussions.
Title: Re: encoding in RF
Post by: vipulan12 on August 31, 2013, 09:54:30 AM
oh thanks