RSS Reader using AVR mega8

I spent part of an afternoon developing a hardware RSS reader (most of my time was spent on the python side of things).
It’s pretty simple and uses an AVR microcontroller connected to a computer via a serial cableRSS Reader using AVR mega8
Hardware
I am using the Dragon Rider 500 as a development board. This provides all of the hardware you need (assuming you have all of the add-on kits). That being said you certainly can do this with your own hardware setup:

  • ATmega8 microcontroller (or any that has a USART and enough pins for all connections)
  • A way to program the microcontroller (I use the AVR Dragon)
  • MAX232 chip for the serial communications
  • DB9 connector
  • HD44780 LCD screen
  • Crystal (I used an 8MHz crystal)
  • Assorted capacitors and resistors

On the Dragon Rider we will need to use some creativity to Route the connections. Normally Port D could be connected directly to the LCD header. This is not the case here because the USART needed for the serial connection uses PD0 and PD1. Furthermore, Port B cannot be used because PB6 and PB7 are in use for the external crystal.Schematic RSS Reader using AVR mega8
In this pictured you can see my solution to this problem. I pluged in a ribbon cable into the headers for the LCD, Port B, and Port D. I then use jumper wires to make the proper routes. Don’t forget to hook up voltage and ground to the LCD header.
Software
The software for this project comes in two parts, the firmware for the microcontroller and the python script for scraping the RSS feeds and sending them over the serial connection.

AVR Firmware

I’m using Peter Fleury’s LCD library again (http://jump.to/fleury). It’s powerful, concise, versatile, and easy to alter for your hardware setup. If you look at the header file attached (lcd.h) you will see that I’m running in 4-bit mode with Port D as the data bits, and Port B as the control bits.
The concept of this firmware is pretty simple:

  • Once powered up the microcontroller displays “RSS Reader” and then waits for serial data.
  • Each byte of serial data received causes a buffer of 16 chars to shift left and add the byte to the buffer, then display the buffer.
  • Three special commands are accepted by the microcontroller: 0x00, 0x01, and 0x02. These are clear screen, move to line 0, and move to line 1 respectively.

For more detail: RSS Reader using AVR mega8


About The Author

Ibrar Ayyub

I am an experienced technical writer with a Master's degree in computer science from BZU Multan University. I have written for various industries, mainly home automation and engineering. My writing style is clear and simple, and I am skilled in using infographics and diagrams. I am a great researcher and am able to present information in a well-organized and logical manner.

Follow Us:
LinkedinTwitter
Scroll to Top