Skip to content

Instantly share code, notes, and snippets.

@tasasaki-github
tasasaki-github / adxl345_fft.py
Last active October 25, 2019 02:41
change the first comments
# 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
@tasasaki-github
tasasaki-github / pocket_geiger_type5.cpp
Created May 3, 2015 09:32
mbedでPocketGeiger Type5のデータを読み取る試み
#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;
@tasasaki-github
tasasaki-github / pocket_geiger_xively_m2x.ino
Last active August 29, 2015 14:19
Arduino yunでpocket geigerの測定データをxivelyとM2Xに上げるスケッチ
//////////////////////////////////////////////////
// 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; //信号(黄)