USB Datalogging with Arduino using V-USB

USB_Logger_01_16_14

Adding USB functionality to your Arduino projects used to be a pain, but thankfully, the V-USB project came along and gave your ATMEGA328 the ability to control the USB lines directly and mimic simple (low-speed) USB peripherals. [Ray] shows an implementation of the V-USB project by logging the status of the Arduino’s I/O pins to an open Excel spreadsheet

V-USB (Virtual USB) is especially useful for those of us who build standalone Arduino projects with the ATMEGA328. Unlike the Arduino Leonardo and its ATMEGA32U4, the ATMEGA328 does not have a built-in USB controller. The circuit required to tie into the USB lines is made up of just a few basic components, and [Ray] provides a reference schematic and BOM to get you started. The Arduino is programmed to mimic a keyboard, so the datalogging is achieved by allowing the Arduino to ‘type’ the data into an open Excel spreadsheet. In this example, the status of 8 digital pins and all 6 Analog Input pins are logged.

For those of you who prefer the PIC microcontroller and are in a similar position of not having a built-in USB controller, there is the 16FUSB project to help you out.

ATtiny Hacks: BEES! An electronic scale to see who brings in more honey.

[MakingThingsWork] wanted an accurate way to keep track of the weight of his beehive, so he decided to build himself a data logging electronic scale. First he ripped the strain gauges from an old electronic scale which he then fitted to his home made beehive base. He then went about designing and building the control board which is based about the Attiny 85 (if you hadn’t guessed by the banner). An instrumentation amplifier was used to amplify the signal from the strain gauge, which is then read by the ADC on the Attiny. It looks like he had some trouble getting consistent results from the scale, so to eliminate the error caused by temperature variations he set up a fixed voltage divider for reference. With this setup the scale can produce results at +/- 0.5lb accuracy, sounds just fine for a system that cost less than $50. The V-usb project software has been used to connect the scale to his PC which he uses to collect and graph the data. All in all a very neat project and by the looks of it, some very productive bees.

Tripmate gps data logger


This one is fitting – I was just checking out Suunto’s sweet gps data logging watches today. [Steve Cholewiak] sent in his diy GPS data logger. It uses an old DeLorme tripmate – these were serial gps units that ran off of internal batteries. A PIC controller reads the NMEA sentences from the tripmate. Then it stores the track data to an EEPROM. The same serial connection is used to retrieve the data later on. [Steve] did a great job writing this up, the circuit is pretty simple and he’s provided all the information you need to build your own.

Follow

Get every new post delivered to your Inbox.

Join 96,345 other followers