Low cost RF for simple data link and remote control using ATtiny12 microcontroller

Summary of Low cost RF for simple data link and remote control using ATtiny12 microcontroller


This article describes a low-cost, simple RF data link capable of reliable communication over 1–2 meters. It utilizes pulse frequency modulation and Atmel microcontrollers (AT90S1200, ATtiny12) for encoding and decoding. The system features a transmitter oscillator and a receiver comprising a TRF detector, AF amplifier, and comparator. Successful operation requires precise tuning of two hand-wound inductors to match frequencies.

Parts used in the Low Cost RF Data Link:

  • Atmel microcontrollers (AT90S1200, ATtiny12)
  • Oscillator
  • Tuned radio frequency (TRF) detector
  • 40 dB AF amplifier
  • Op amp
  • Comparator
  • Transistor
  • Diode
  • Dual op amp
  • Hand wound inductors (transmitter and receiver)

Wireless data links don’t have to be difficult to build or adjust They can be built quickly using inexpensive and readily available parts.

Overview

This is a simple, low cost RF data link that can send data reliably over a distance of one to two meters, enough for bench top or desktop use. The data protocol supported by the encoder and decoder provides 16 device addresses, three message types, and a toggle bit. Pulse frequency modulation is employed to make the receiver design less demanding and to reduce the susceptibility to noise.

The encoder and decoder are based on Atmel microcontrollers, though the protocol can be easily implemented on most micro controllers. The transmitter is an oscillator that is biased on and off by the encoder chip. The receiver is a tuned radio frequency (TRF) detector without preamp followed by an 40 db AF amplifier that drives a comparator, which provides pulses suitable for driving the digital input pin on the decoder. Most of the gain is provided by the op amp, where gain is easy and cheap, and the RF section is minimized and simplified.

RF for simple data link
The receiver is a transistor, a diode, and a dual op amp.
You can probably build a working receiver from bits and pieces
laying around on your workbench.

The only things that really need any tweaking to get the demonstration circuits to work is one hand wound inductor in the transmitter and one hand wound inductor in the receiver. The trick is to get the transmitter and the receiver on the same frequency. Having them “almost” on the same frequency will result in poor performance – very short range and unreliable decoding. Use a small wooden or plastic tool to deform the coils. Expect to spend some time at it, and don’t be disappointed if you have to scrap a coil or two before you feel you have it right (more on this in the receiver section). Make and adjust the transmitter first. This way, you know what frequency you are using. Adjust the receiver for peak sensitivity to the transmitter.
A pulse frequency modulated pulse train is used to amplitude modulate an RF carrier (in on-off fashion) and
detected and made digital in a simple receiver and this pulse train is decoded by a microcontroller.
The assembly code for the encoder and decoder were written with the AT90S1200 and ATtiny12 in mind in that they make minimal use of the return stack. The code was initially tested on AT90S2313’s.
For more detail: Low cost RF for simple data link and remote control using ATtiny12 microcontroller

Quick Solutions to Questions related to Low Cost RF Data Link:

  • How far can this RF data link send data reliably?
    The link can send data reliably over a distance of one to two meters.
  • What modulation technique is employed to reduce noise susceptibility?
    Pulse frequency modulation is used to make the receiver design less demanding and reduce noise susceptibility.
  • Which microcontrollers are the encoder and decoder based on?
    The encoder and decoder are based on Atmel microcontrollers, specifically tested with AT90S2313 and designed for AT90S1200 and ATtiny12.
  • Does the receiver include a preamplifier?
    No, the receiver is a tuned radio frequency detector without a preamp.
  • What component provides most of the gain in the circuit?
    Most of the gain is provided by the op amp.
  • What parts require tweaking to get the demonstration circuits to work?
    One hand wound inductor in the transmitter and one hand wound inductor in the receiver need tweaking.
  • How do you adjust the coils if they are not on the same frequency?
    Use a small wooden or plastic tool to deform the coils until they are on the same frequency.
  • What is the best way to adjust the receiver after setting the transmitter?
    Adjust the receiver for peak sensitivity to the already set transmitter frequency.

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter
Scroll to Top