THIS IS AN ADVANCED PROJECT - NO HANDHOLDING
You will need access to an AVR programmer, either a dedicated one such as USB-AVR or an Arduino programming shield such as sold by AdaFruit or a home-made programming interface. This will be necessary for programming the naked 328P-PU which will be used in this project. The assumption is that you will be using the Arduino 1.0.1 or higher environment to program the uC. There are several decent Instructables on how to program the ATmel ATmega328P-PU. Please read and research.
Summary of operation:
The sketch makes use of the SD Arduino library. There are 3 physical connections: Gnd, +5V, and RS232 ASCII signaling at 9600 BAUD. The 328P will buffer incoming characters until the buffer is full (512 characters) or until the datastream has a Carriage Return (CR) at which time the data in the buffer is written to the SD Card. I have tested 1G and 2G inexpensive cards formatted FAT with no issues noted. That is all this project does... just records serial data onto SD.
Parts you will likely need to purchase:
- ATmel328P-PU blank chip - approx $4
- SD Card holder such as LC Studio for approx $3.50 from eBay
- 16MHz (20ppm or 30ppm) crystal for approx $0.50 from any Internet seller
- Small load capacitors, 2x, of approx 18-22 pF to match crystal requirements
- 10uF to 100uF bulk capacitor rating 10V or greater
- 10K resistor / 22K resistor / 150 Ohm resistor all 1/4W
- 100pF, 2x, ceramic bypass capacitors for power lines
- Tri-color LED or separate Red, Green, Blue LEDs (Optional but useful)
- Screw-down lead connector (optional)
- 28 pin IC socket (optional, but highly recommended)
- Small prototype board - shown is from Radio Shack
- Misc. lengths of hook-up insulated 24G wire
- Soldering iron, solder, hand tools, and other things I forgot to list
Why you may want to build this project:
Because this self-contained project will simply log anything that is thrown to it at 9600BAUD from a serial output of another device. In software, you can lower the serial speed to 4800 BAUD or lower if necessary. You may have success with serial rates above 9600 BAUD - but I have not tested this as my need is strictly selfish and centered around 9600.
Yes, this device can read and log PC terminal output.