Skip to content
This repository was archived by the owner on Mar 13, 2019. It is now read-only.

cmusv/18647-s2017-lab3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PowerDué Acoustic Sensor

This repository contains basic firmware for performing distributed, time synchronized sensing of analog channels on the PowerDué. Captured events are sent to a webserver over TCP. Additionally, Matlab scripts to post-process the captured data are also available.

Requirements

Acoustic Sensor Configuration

The firmware for the acoustic sensor can easily configured in ADCConfig.h. The following parameters must be set properly:

  • Device and System Parameters:
    • DEVICE_ID - an 8-byte character array uniquely identifying a device.
    • WIFI_SSID and WIFI_PASS - credentials to access a WiFi network.
    • SERVER_IP - the IP address to send captured events to.
  • Clock Synchronization Parameters:
    • MASTER_CLOCK - specify whether a certain device holds the reference clock which slaves synchronize with. (1 for master, 0 for slaves).
    • MASTER_CLOCK_IP - IP address of Master Clock device.
    • SYNC_PORT - UDP port to run time synchronization algorithms on.
    • SYNC_FREQUENCY - the period between synchronization attempts (in milliseconds)
    • NTP_TASK_PRIORITY - FreeRTOS task priority for NTP tasks to run at
  • ADC Parameters:
    • ADC_CHANNEL_MIC - the ADC channel number to sample
    • ADC_SAMPLE_RATE - the sampling frequency of the ADC
    • NUM_BUFFERS - the number of DMA buffers to cycle through
    • BUFFER_SIZE - the number of samples per buffer
    • BUFFERS_TO_SEND - the number of buffers to send for each event
  • Triggering Parameters:
    • WINDOW_COUNT - the number of buffer statistics to keep around for statistically analysis
    • MIN_WINDOW_COUNT - the minimum number of windows to collect before triggering
    • TRIGGER_DEFAULT_STD_DISTANCE - the minimum std distance from the mean to detect outliers in the signal

Post-Processing Scripts

Some Matlab scripts to post-process captured data in the scripts/matlab sub-directory. These scripts will be updated over time.

About

WARNING: moved to Bitbucket 3/5/19

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors