Fischl.de Logo
 Home 
   Kontakt 

 USBStickLogger

USBStickLogger - Log serial data to an USB thumb drive

USBStickLogger With this circuit you can log serial (UART) data to an USB thumb drive and record data over a long period without the need of a PC. Simply connect your system to the logger and plug in an USB keydrive. All incoming data is logged to a file on the memory stick.

Features

  • No smd components are needed.
  • Firmware is open source.
  • Single power supply voltage: 5V (about 80mA).
  • Connection to your circuit with only three lines: +5V, GND, uC-Tx.
  • UART baudrate can be adjusted with a configuration file on the USB keydrive.

Usage

Connection

USBStickLogger has two connectors: the USB connector for the memory stick and a pin header socket for interfacing the UART and power supply:
PinFunction Connection diagram of USBStickLogger
1+5V
2GND
3[uc-Rx/Logger-Tx]
4GND
5
6GND
7
8GND
9uc-Tx/Logger-Rx
10GND

Configuration

Default setting for the UART is: 9600 baud, 1 start bit, 1 stop bit, no parity. You can configure this paramter by placing the file "CONFIG.TXT" to the USB thumb drive. Currently only the baudrate can be configured. Example:
COM_BAUDRATE:	115200

Logging

Once the device is connected and correctly configured, all incoming characters on the serial interface are written to the file "LOGGING.TXT" on the USB key drive.

Firmware

usbsticklogger_firmware_v1.2.tar.gz (2011-08-06)

Steps to compile the firmware:
  • Install the MAL Microchip Application Library (USB framework). Tested with v2010-10-19.
  • Unpack usbsticklogger*.tar.gz into a subfolder to the Microchip library folder.
    e.g. C:\Microchip Solutions v2010-10-19\usbsticklogger\usbsticklogger_firmware_v1.2\
  • Open the Project with MPLAB IDE 8*. Tested with v8.63.
  • Compile with MPLAB C30. Tested with v3.24.

Hardware

Schematic



USBStickLogger kit

USBStickLogger kit by Fisch und Fischl GmbH with case and preprogrammed controller. No smd parts.
Shop:
en Order USBStickLogger kit
de USBStickLogger Bausatz bestellen


Links

de Elektor-Projekt: USB-Stick am Mikrocontroller

 © Thomas Fischl