This has been an interest of mine for a while and I have researched and developed a few ways to achieve communication over the air. Here goes…
The MRF24J40 is a chip developed by Microchip that allows for 2.4Ghz communication over the air. The IEEE standard protocol for this device is 802.15.4 which means that the device is not licensed to be compatible with wireless communications using other protocols such as 802.11.x. The device has 4 available channels open for use. These channels associate to transceiver frequencies at which the device can communicate. We have the ability to hop onto these 4 channels via the RFCON0 register in increments of .005Ghz. Knowing this, and knowing the WiFi standard, it IS possible to hop onto a WiFi network with this device as both have common channels at 2.405Ghz, 2.410Ghz … although programming the protocol would be redonkulous.
So how do you use this thing?I’m glad you asked.

So there she is, in all her freaking particular complexity. I’ll tackle the easy part first. Programming.
This chip accepts all of its incoming information from the host controller via the SPI protocol. The SPI protocol is a 2 wire communications type that employs a clock and data line for one-way communications. For two-way communications an extra wire is needed. So, you say, “what the heck do you call CS(not)! That is another wire!” CS(not) is a signal used to herald across the SPI bus which chip is the intended receiving party of the SPI information. SPI is a little strange in that it is a broadcast bus that doesn’t natively allow addressing the receiver. What I mean to say is that, when using the SPI bus, you cannot simply send out the address of the chip you wish to speak with, and then speak, but rather you must signal the chip you which to speak with, and then speak. If you want a true 2-wire serial bus, look to I2C by Phillips. Long story short, tie CS(not) low with a 10k resistor so that you are always permitted to chat with the chip.
Looking at the datasheet, there are a good bunch of registers that need to be set in order to start communicating. This is how.

Now that you can write and read the short registers, we can set up the chip to start yapping at 2.4xxGhz. These are a few registers that need attention: RXMCR,TXNCON,SECCON0,INTCON,BBREG0…Run through the list of short registers and make your selections.
Now,I must back up and mention the few particular nature of RF communications. The chip and specific requirements in order to speak over 2.4xxGhz. I’ll just speak on what I am familiar with in the following schematic.

L5 and L4 are the inductive managers of the incoming and outgoing differential analogue signal. As we know, it is not possible to send digital information over the air because there is little to none differential in binary information. To solve this we employ a SINE wave whose differential is constantly changing. Electrons of porous material respond analogously to a consistent differential. So, L4 and L5 saturate current during the negative and positive cycles of communication. These inductor values must be calculatedly small in order to react quickly enough at 2.4xxGhz. I’m still a little confused about the tank circuit used to trap the resonant frequency but L1, C7, C23, and C38 contribute to a resonant tank circuit that supplies communications of 2.3215Ghz. Capacitors such as C45, C39, C10… are decoupling caps that ensure a consistent operating voltage.
Okay! I know all of this is uber confusing, but hopefully this helps as an introduction to the chip. This next order of business is to select a protocol stack. There are a few options: ZigBee, MiWi, or if you live in your mothers basement and enjoy D&D you could write your own communications protocol. Next post I will briefly describe the differences.
Hmmm, looks like I’m going to have to wire up my house with a couple of these. Home automation, here I come!
I don’t understand. If it is a matter of clarity, I agree, but you must also know that this is a very complex chip and study. I am far from finished authoring on this chip.
How you find ideas for articles, I am always lack of new ideas for articles. Some tips would be great
I love sites like HackaDay.com and instructables.com. I am a believer in Microchips hardware. Unlike Arduino, Microchips hardware isn’t made for any particular application(pre-made shields and boards), so interfacing them to communications devices is a bit easier. Check out these links if you are interested in authoring on some similar stuff:
http://www.sparkfun.com/
http://www.goldmine-elec.com/
http://picprojects.org.uk/projects/picprojects.htm
http://www.electronickits.com/kit/complete/complete.htm
http://olimex.com/dev/index.html
I don’t understand. If it is a matter of clarity, I agree, but you must also know that this is a very complex chip and study. I am far from finished authoring on this chip.