Do-it-yourself projects and technology updates

DIY Wireless Link for Microcontroller

Filed under: Uncategorized — Greg Lipscomb on May 5, 2007 @ 2:05 pm

Here is a great little DIY project using a $14 RF receiver and transmitter from Sparkfun to transmit data from a microcontroller to a PC. This is a good little article that goes into the basics of how to program your micro to transmit packets of information.

For this article I will be using this device with an Atmel AVR 8-bit Microcontroller, more specifically the atmega32 for the transmitter, and the PC’s serial port for receiver (RS232). Now all of you AVR Freaks out there know the atmega32 has an on-board USART, which is perfect for running this device!

First, lets talk about how U(S)ART must be setup to get this transmitter sending. For a clean USART you need an external clock source, the internal clock source on an AVR is not stable enough for clean sending. So with my ATMega I will be using a 3.6864 MHz external crystal. I went with this number for one reason, magic number (X.XXXXMhz) crystals are extremely USART friendly, were talking a 0% error rate, for USART you need at most a 2% error rate. Here are the USART settings I am using:

2800 Baud-rate (that’s 2800bps, which is perfect, that’s why it so easy to interface)
8 Data bits
1 Stop bits
Handshaking none

Well things are starting to slow down a little. I finally finished my surgery rotation, and am now on my pediatric rotation. I should be able to update more now. I don’t know what is going on with the database, and the comments. I will try to get that fixed as soon as possible.

One Response to “DIY Wireless Link for Microcontroller”

  1. Computers To Transmit Data Says:
  2. Computer Consulting Services: Protecting Client Data

    As a provider of computer consulting services, you should communicate to your clients that a dedicated server generally can enforce strong user passwords. This means your clients can:

Leave a Reply