Skip to content

Commit ca44ed3

Browse files
committed
trying to increase sampling frequency
1 parent 5b08716 commit ca44ed3

File tree

3 files changed

+28
-3
lines changed

3 files changed

+28
-3
lines changed

Accel_read_w_logger.ino renamed to Accel_read_w_logger/Accel_read_w_logger.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include "RTClib.h"
44

55
// how many milliseconds between grabbing data and logging it. 1000 ms is once a second
6-
#define LOG_INTERVAL 100 // mills between entries (reduce to take more/faster data)
6+
#define LOG_INTERVAL 1 // mills between entries (reduce to take more/faster data)
77

88
// how many milliseconds before writing the logged data permanently to disk
99
// set it to the LOG_INTERVAL to write each time (safest)
@@ -62,7 +62,7 @@ void error(char *str)
6262
void setup()
6363
{
6464
analogReference(EXTERNAL);
65-
Serial.begin(9600); // sets the serial port to 9600
65+
Serial.begin(115200); // sets the serial port to 9600
6666
pinMode(button, INPUT);
6767

6868
// use debugging LEDs

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
11
# arduino-accelerometer-and-data-logger
22

3-
An arduino based accelerometer with SD data logger shield.
3+
This project was intended to create a low cost accelerometer with portable DAQ system. The system consisted of a three axis accelerometer, an Arduino and a data logging shield. When the user presses the start/stop (on/off) button the Arduino will start logging the output from the accelerometer.
4+
5+
The following is the parts list:
6+
7+
*[+/- 3G triple axis accelerometer ($15)](https://www.adafruit.com/products/163)
8+
*[Illuminated latching on/off switch ($2)](https://www.adafruit.com/products/1478)
9+
*[SD Data logging shield for Arduino ($20)](https://www.adafruit.com/products/1141)
10+
*[Arduino Uno ($25)](https://www.adafruit.com/products/50)
11+
*[SD card]
12+
*[Shield stacking headers ($2)](https://www.adafruit.com/products/85)
13+
14+

README.md~

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# arduino-accelerometer-and-data-logger
2+
3+
An arduino based accelerometer with SD data logger shield.
4+
5+
The following is the parts list:
6+
7+
*[+/- 3G triple axis accelerometer ($15)](https://www.adafruit.com/products/163)
8+
*[Illuminated latching on/off switch ($2)](https://www.adafruit.com/products/1478)
9+
*[SD Data logging shield for Arduino ($20)](https://www.adafruit.com/products/1141)
10+
*[Arduino Uno ($25)](https://www.adafruit.com/products/50)
11+
*[SD card]
12+
*[Shield stacking headers ($2)](https://www.adafruit.com/products/85)
13+
14+

0 commit comments

Comments
 (0)