Arduino V-USB / HID 14 channel data logger




UPDATE:  Please see Addendum 2 at the end of this article for an Excel automatic logging implementation.

There are several good articles on Instructables about building your own Arduino.  Depending on your horde of electrical parts, you may be able to build an Arduino clone for as little as $3.  I recently built two: one on a solderless breadboard and another that is like a USB-stick made on perfboard and my parts cost were approximately $7 (the breadboard parts were sacrificed to build the stick after I got all the hardware and software working.)
Arduino data logger




Once you get your CloneDuino built, or even if you purchase a commercial model such as the UNO (picture #5), then you need to do some programming for the next step down the path of creating something useful or fun.  BUT, what if you could use the Arduino for gathering the state of digital or analog information and then log that data to the PC for later manipulation?  This would mean that the Arduino software would not need to be changed (or perhaps only minor changes) to perform many experiments.

Step 1: Building the USB hardware interface

To connect a genuine Arduino UNO or a clone UNO to your PC USB port, you need to have an interface.

The interface built by rancidbacon for his tests is shown in the first picture.
http://code.rancidbacon.com/ProjectLogArduinoUSB

The schematic for the interface is shown in the second picture.
http://petrockblog.wordpress.com/2012/05/19/usb-keyboard-with-arduino-and-v-usb-library-an-example/

To be successful with this project, you will need to construct this circuit in some manner, either as shown here or as I showed in the previous section.  While the construction is not complicated, errors will keep the V-USB software from working (said another way, the project will be a BIG flop and will not work.)  Additionally, if you have a wiring accident, diode reversed, improper parts selection, or cold solder joints, the circuit is likely to not work.  AT WORST, IMPROPER CONSTRUCTION AND WIRING COULD DAMAGE YOUR PC USB PORT, SYSTEMBOARD, OR CREATE OTHER SERIOUS AND EXPENSIVE DAMAGE.

READ  The Arduino Mothbot

DO NOT ATTEMPT TO BUILD THIS INTERFACE AND USE IT ON YOUR PC UNLESS YOU ARE CONFIDENT YOU CAN CONSTRUCT THE CIRCUIT PROPERLY AND HAVE THE ABILITY TO TEST YOUR INTERFACE BEFORE CONNECTING TO YOUR PC.  IF YOU MOVE FORWARD WITH CONNECTING TO YOUR PC YOU ASSUME ALL RISKS ASSOCIATED WITH THIS PROJECT.

Step 2: Download the V-USB modified code

You will need to download the V-USB for Arduino library.  This library is located here:
http://code.google.com/p/vusb-for-arduino/downloads/list
Arduino data logger circuit
The code should be integrated into your Arduino environment in the library section.  On my XP machine, the location is:
My Documents\Arduino\Libraries\UsbKeyboard

Adjust your location (directories) to match the install requirements for Arduino on Linux or iOS.

Download and expand the ZIP file.  The ZIP file is structured as:
vusb-for-arduino-005.zip\vusb-for-arduino-005\libraries\UsbKeyboard

Only the files in the \UsbKeyboard folder and subordinate folders are required to be moved to
My Documents\Arduino\Libraries\UsbKeyboard

Major Components in Project

Arduino UNO

 

For more detail: Arduino V-USB / HID 14 channel data logger




This Post / Project can also be found using search terms:

  • vusb-for-arduino-005 zip
  • arduino UNO hid
  • https://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1821 aP6Ot5sH5yi9PDvw5U8_xAcPXQGmwmDljF4qY5FGXMS6HzyzrrsoW9hxeBipK8OM 04e37e4433196ced6358b90ceb43f44aa8d2ad98&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXme
  • https://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1829 66CWBi_EyDSPjdhQMpfuqS24Z1V6zxyQ_1cYFucxRYQpUkMypOxeJTo4pDf8kVah a8bdeac227590d70043eebe856eb4d1ba100f796&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXme

Leave a Comment

*
= 3 + 9

(Spamcheck Enabled)

Read previous post:
Arduino GPS
Arduino GPS Tutorial – Complete Guide

Do I need to say more about GPS? See here for some background info: Global Positioning System (GPS) In this tutorial, I...

Close
Scroll to top