We will be having Diwali Festival holidays from 18th October to 24th October. Any orders placed during that time will ship from 25th October onwards. Good Wishes for a joyous Diwali and a Happy New Year with plenty of Peace and Prosperity.
SUNROM ELECTRONICS
Back to USB Host (7)

Analog Data Logger to USB Pen Drive

Creates CSV file with 4 channel analog data to connected usb flash drive. Customize logging rate from 100ms to 100seconds

Analog Data Logger to USB Pen Drive

Sunrom Part# 1320

Available We dispatch same day if ordered by 4PM (excluding holidays), then courier usually takes 2-5 days.
Quantity Pricing
Quantity :
Price (Discount%)
1-4 :
Rs.1,500/- (0%)
5-9 :
Rs.1,455/- (3%)
10-24 :
Rs.1,395/- (7%)
25-49 :
Rs.1,350/- (10%)
50-74 :
Rs.1,320/- (12%)
75-99 :
Rs.1,275/- (15%)
100-249 :
Rs.1,230/- (18%)
250-499 :
Rs.1,200/- (20%)
500-999 :
Rs.1,170/- (22%)
1000+ :
Rs.1,125/- (25%)

Reads analog voltages and logs to CSV(Comma Seperated Values) files on USB pen drive(thumb drive, flash drive). The files stored on pen drive can be accessed on PC with Microsoft Excel application or any other supporting CSV format. Different sampling rates can be selected from 100ms to 100 seconds. LED indicates if the logger is active. During each sample the LED blinks. The switch can be used to start or stop logging action.

Features

  • Logs 4x Analog Channels at a time in 10 bit resolution
  • Custom sampling rates from 100ms to 100 seconds
  • Accepts any USB Pen Drive from 128MB to 32GB which is FAT16 or FAT32 formatted
  • Simple to use and low cost
  • Logging Start / Stop switch
  • Active Logging indicating LED

Status LEDs

  • Board has three LEDs
  • PWR - Green LED indicate that board is getting power
  • STS - Yellow LED indicate any writing activity currently going on with USB Drive
  • ERR - Red LED indicate any error like USB Drive not found or Logging Stopped

When USB Drive is inserted, it automatically starts to logging and red error led will switch off.

Pinouts

Power Supply pins (2x)

Pin#

Pin Name

Function

1

GND

Ground pin

2

+5V

Provide regulated +5V DC voltage to this pin for board operation. Board has LM1117-3.3V regulator to power all parts.

Analog Input pins (6x)

Pin#

Pin Name

Function

1

GND

Board Ground

2

3V3 OUT

3.3V output for sensors power (optional)

3

1

Analog input channel 1 (Maximum 3.3V input) Can use resistor divider for measuring greater voltages on all analog channels.

4

2

Analog input channel 2 (Maximum 3.3V input) 

5

3

Analog input channel 3 (Maximum 3.3V input) 

6

4

Analog input channel 4 (Maximum 3.3V input)

Switch Input pins (2x)

Pin#

Pin Name

Function

1

GND

Ground pin

2

DET

Switch for START / STOP(Safe Eject) is connected. Before powering off board or removing pen drive. Please push this switch to save any data pending in its memory. Removing usb drive without pressing this switch might cause loss of data in file or corruption of file.

 

Sampling Rate

To configure your board on which sampling rate it should log the data you need to create a simple text file on your usb drive. It should be empty file without any content in it. If there is no file for configuration default logging of 100ms(mili seconds) will be set. It supports following sampling rates.

Note: In PC, some computer you cannot see file extensions. To see file extensions, you can open windows Explorer > Organize > Folder Options > View > UNCHECK (Hide Extensions for known file types)

Setup File Created
on USB Drive

Sampling Rate

<No File>
Default will be 100 mili-seconds

100 mili-seconds (Logs 4x Analog Channels 10 times a second)

500ms.txt

500 mili-seconds (Logs 4x Analog Channels 2 times a second)

1sec.txt

1 second (Logs 4x Analog Channels every second)

10sec.txt

10 seconds (Logs 4x Analog Channels every 10 seconds)

100sec.txt

100 seconds  (Logs 4x Analog Channels every 100 seconds)

Reading data

To read data on your USB Drive, you can remove from board and insert into it PC's USB port. You can view the CSV  files as well as sampling configuration file which you have created. CSV files will be numeric starting from 0.csv. These files are autoincremented and manged by board on its own at each power up. The highest number is the latest file. Maximum files it can manage is 65,000.

Understanding Values of CSV file

If you open CSV file in excel you will see following type of data. Each line is one sample. So each sample has four values.

For each sample the analog data is 10 bit so the value can go from 0 to 1023 (2^10 bits = 1024 resolution)

How to convert the value to voltage reading?
This is a frequently asked question. The board operates on 3.3V and the resolution of analog to digital convetor is 10 bit. So each analog value is between 0 to 1023.

So when the analog input is given 3.3V(3300 mili volts) it has to read 1023. So lets divide 3300/1023 = 3.23mv per adc reading.

Now you can multiple any 10 bit analog value by 3.23mv to get actual voltage reading.

For example reading is 503 x 3.23mv = 1624.69 mV or 1.62469 V

Reading 4-20ma Current Loop

Many industrial systems uses current signals to monitor certain devices (like pressure sensors, gas detectors, temperature sensors). The signal is transported over 2 wires. The advantage of working with currents is a current always remains the same, no matter what the length of a wire is.

Most sensors can output a current signal between 4 and 20 mA. A signal lower than 4mA, typically indicates an error.

This method below allows you to log a 4 - 20mA signal coming from a sensor. The 4-20mA current is converted into voltage in range of 0.6V to 3V by adding a 150R ohms 1% MFR type resistor in parallel to input.

When the current is 4mA the board will read analog voltage as 0.6V, When the current is 20mA the board will read 3V

The calculation as per ohm low is as under for minimum, maximum of current range.

1) Current is 4mA = 0.004 A x 150(Ohms) = 0.6V (Voltage output)

2) Current is 20mA = 0.02 A x 150(Ohms) = 3V (Voltage output)

Reading High Voltages with Board

A simple resistive voltage divider will enable you to measure high DC voltages with the board.


The formula to calculate the output voltage is:

So if we assume your input voltage ranges from 0-30V, we need to divide it by 10 to achieve 0-3V. 

If we also assume we want to load the input voltage with 100kΩ, then the calculations would something like:

Vout / Vin = R2 / 100kΩ
0.1 = R2 / 100kΩ -> R2 = 10kΩ
R1 = 100kΩ - R2 = 90kΩ
So R1 = 90kΩ and R2 = 10kΩ

Bestselling Products

Sunrom Electronics & Sunrom Technologies are two companies, that are the foremost online e-commerce stores since 2004, providing innovative embedded systems, components & services. Our aim is to empower you to Make In India. We work closely with electronics manufacturing companies & individuals to understand & solve the challenges faced during production. We do not just sell things, We use them ourselves in our products, and provide you with high quality tested components for trouble free experience.

Sunrom Electronics GSTIN: 24AFBPT4632H1ZJ
Handles Online Payment by CCAvenue
Sunrom Technologies GSTIN: 24AJLPP4029L1ZW
Handles Offline Bank Payments / NEFT / P.O. / Telr