Skip to content

Instantly share code, notes, and snippets.

@weldtype
weldtype / BME280_OLED.ino
Created August 6, 2016 19:04
BME280とOLEDを接続
/*
小型I2C接続 128x64 OLED ディスプレイの動作確認
2016/07/23 edy
このスケッチはu8glibのサンプルをカスタマイズしたものです。
Universal 8bit Graphics Library
https://github.com/olikraus/u8glib
2016/07/26 ADT7410を接続、スケッチは「wsnakのブログ」を参考にした。
http://www.wsnak.com/wsnakblog/?p=409
@weldtype
weldtype / CurrentIntegrator2.ino
Last active August 10, 2016 22:59
積算電流計2
// 2016/08/10 積算電流計
// このスケッチは戸田よろず研究所の積算電流計を使わせていただいております。
// Stand-alone Current Integrator by Toda Yorzu Kenkyujyo
//http://tyk-systems.com/CurrentIntegrator/CurrentIntegrator.html
//
//2016/08/11
//手持ちのLCDシールドにあわせてスケッチの一部変更。
//スケッチの若干の修正。
#include <LiquidCrystal.h> // include LCD driver
@weldtype
weldtype / AD9850_sinewave_generator3.ino
Created October 8, 2016 23:07
AD9850Sinewave generator
//AD9850 sinewave generator
// edy
//
//2016/10/06 First version(ver 0.1)
//
//2016/10/08 ver 0.2
// 周波数下限を 10Hz から 1Hz へ変更。
// 変数 freq,freqOld,incr を負号なしから負号ありへ。引き算によるエラー回避のため。
// 周波数ステップ 2.5KHz を 2KHz へ変更。
// 周波数表示を3桁区切りにする。
@weldtype
weldtype / AD9850_Sinewave_generator1.ino
Last active October 9, 2016 00:27
AD9850 Sinewave generator 1
//AD9850 sinewave generator
// edy
// First version 2016/10/06
//
//参考にしたweb page
// http://www.vwlowen.co.uk/arduino/AD9850-waveform-generator/AD9850-waveform-generator.htm
/* Based on AD9851 code from Andrew Smallbone - modified for AD9850
http://www.rocketnumbernine.com/2011/10/25/programming-the-ad9851-dds-synthesizer
*/
// ControlEverything.comのスケッチを改造。
// 2017/01/11 edy
//
// Distributed with a free-will license.
// Use it any way you want, profit or free, provided it fits in the licenses of its associated works.
// TMP007
// This code is designed to work with the TMP007_I2CS I2C Mini Module available from ControlEverything.com.
// https://www.controleverything.com/content/Temperature?sku=TMP007_I2CS#tabs-0-product_tabset-2
#include<Wire.h>
/***************************************************
This is a library example for the MLX90614 Temp Sensor
Designed specifically to work with the MLX90614 sensors in the
adafruit shop
----> https://www.adafruit.com/products/1748
----> https://www.adafruit.com/products/1749
These sensors use I2C to communicate, 2 pins are required to
interface
// MLX90614の実験
// 2017/01/28 edy
// 2017/01/29 8x2行LCDを追加
//http://mag.switch-science.com/2014/11/05/i2c_lcd_breakout_int/
/***************************************************
This is a library example for the MLX90614 Temp Sensor
Designed specifically to work with the MLX90614 sensors in the
adafruit shop
//KOMAINOにLCDをつける
// 2017/02/25 edy
//参考にしたWeb page
//http://mag.switch-science.com/2013/07/17/i2c-lcd-breakout/
//
#include<Wire.h>
#define LCDAdr 0x3e
byte contrast = 30; // コントラスト(0~63)
// MLX90614の実験
// 2017/01/28 edy
// 2017/01/29 8x2行LCDを追加
//http://mag.switch-science.com/2014/11/05/i2c_lcd_breakout_int/
//
//2017/03/19 ラジオペンチさんのdelayWDTを使う
//http://radiopench.blog96.fc2.com/blog-entry-486.html
/***************************************************
This is a library example for the MLX90614 Temp Sensor
// MAX30100 test
// 2017/05/16 edy
// 2017/05/17
// LED current 4.4mAに変更
// onBeatDetected() 変更
// 脈拍値 整数型に変更
// REPORTING_PERIOD_MS 2000に変更
/*
Arduino-MAX30100 oximetry / heart rate integrated sensor library
Copyright (C) 2016 OXullo Intersecans <x@brainrapers.org>