In Water Vel Sensor FFT SD Logging Test

From BoSL Wiki
Revision as of 00:56, 6 July 2020 by Stephen (talk | contribs)
Jump to navigation Jump to search

Test Details

Date: -- to --
Location:
Hardware: BoSL Velocity 0.1.1 (OPA2830 modified)(5V)

Description: Logging of FFT output of velocity sensor to determine the best way to extract velocity information and determine the effect of different speed particles.

Data:
1. CSV file uploaded to: http://www.bosl.com.au/IoT/testing/a.php, SITE ID: --------,
2. CSV file retrieved from SD card
3. CSV file retrieved from hach velocity sensor

Hardware

A BoSL Velocity sensor is to be installed next to a hach probe. The BoSL sensor is to be connected to an Arduino Uno with SIM5320 shield and SD card reader. Wiring is as follows.

BoSL Velocity Arduino Uno
GREEN 5V
HALF GREEN GND
ORANGE D7
BLUE A1
BROWN A2
SD Card Shield Arduino Uno
3V3 3V3
GND GND
CS D6
MISO D13
SCK D12
MOSI D11

The SD card should be format as FAT16 and empty before inserted. Only remove the SD card when the blue "W" LED is flashing on the SIM5320, else corruption of data may occur.

Code

Code to be uploaded to Arduino Uno: File:SIM5320SD.ino

Velocity sensor: File:Velocity Code.zip
The board selected in the Arduino IDE should be: Arduino Pro/Pro Mini 3V3 8 MHz

To upload code to the velocity sensor. The velocity sensor should be wired

BoSL Velocity USB - TTL Converter
GREEN 5V
HALF GREEN GND
ORANGE RESET
BLUE RX/TX
BROWN TX/RX

Note: the RX/TX labeling is not always constant so both combinations may need to be tried.

Data Format

1. This is a CSV with sample line:
02/07/20 08:44:00 AM,10 ,,,,,,52 ,0 ,,,,
[DATE] , [LOG ID],,,,,,[VEL],[VEL SD],,,,
DATE -- datetime of logging
LOG ID -- number incremented each log. Used to synchronize with logs on SD card. Reset on power up.
VEL -- Calculated velocity.
VEL SD -- Calculated standard deviation of velocity FFT peak.