I need to add one-way short range wireless to a microcontroller project. My estimated max range is only 3 feet, but cost is a big issue. The units may be covered, so infrared communication is not possible.
I’ve been playing with [rfpics, but I think they are overkill for my project.
I want to know if it’s possible to do simple LF (like 125khz) communications with a microcontroller. Has anyone gotten something like this to work before? If so how? I imagine the transmitter would just turn on or off (on off keying). I don’t really know how to make a low frequency antenna though. The receiver may be more complicated. Could a diode peak detector and a built in comparator work?
Any idea on where to start with the hardware?
BTW, I don’t need any software help. I’ve dealt with Manchester encoding before. I’m just looking for hardware advice for extremely cheap, short range, low bandwidth wireless.
I’m not worried about that yet. I figured certification would be easy, as I’m only looking to transmit 3 feet. I thought I may have more certification problems with an RF PIC.
In any case, pre-certified units would be to big and bulky. I’m thinking of using a PIC 10F micro-controller for the transmitter and receiver. So size and unit cost are my primary concerns for now. I hope it’s doable since I need very low bandwidth and range.
Look at near-field communications, there is a lot of research being done in that area. The field strength drops off by the cube of the distance, unlike far-field communication.
OK, I did a really simple experiment with breadboards. Basically, I feed a square wave (from a PIC) into an inductor and capacitor for my transmitter. It ran at 83 khz because of the components I had on hand.
My receiver is just one comparator. My idea is that it compares the present voltage of the antenna loop to its previous voltage, which is remembered by a capacitor.
[
Anyway, it works reliably to about 3 inches, giving a very clean square wave output. I couldn’t ask for anything simpler or cheaper. Now I just need to improve the range (by about 12x :lol:). If the power drops off by the distance cubed, does that mean I need to be about 1,800 times more sensitive?
I don’t really know anything about RF though. Where should I start for improvement? I’m quite excited that I got this to work at all, but am I even on the right track?