This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Simple demo of the ADXL345 accelerometer library. Will output the X, Y, Z | |
# axis acceleration values and its FFT values as csv files. | |
# Author: Tatsuya Sasaki | |
# License: Public Domain | |
# Import the ADXL345 module. | |
import Adafruit_ADXL345 | |
import csv | |
import pandas as pd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "mbed.h" | |
#define HISTSIZE 200 | |
#define LOOPSIZE 10000 | |
DigitalIn signPin(dp25); | |
DigitalIn noisePin(dp26); | |
DigitalOut myled(LED1); | |
Serial pc(USBTX, USBRX); // tx, rx | |
Timer t; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
////////////////////////////////////////////////// | |
// Radiation-Watch.org | |
// URL http://www.radiation-watch.org/ | |
////////////////////////////////////////////////// | |
// put a shell script which is attached at the end of this sketch | |
// on yun's /root/ directory as m2x_up.sh. | |
/// デジタルIOのピンの設定 /// | |
int signPin = 4; //信号(黄) |