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
//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 | |
*/ |
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
//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桁区切りにする。 |
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
// 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 |
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
/* | |
小型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 |
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
/* | |
小型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 |
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
/* | |
小型I2C接続 128x64 OLED ディスプレイの動作確認 | |
2016/07/23 edy | |
このスケッチはu8glibのサンプルをカスタマイズしたものです。 | |
Universal 8bit Graphics Library | |
htempps://github.com/olikraus/u8glib | |
2016/07/26 ADT7410を接続、スケッチは「wsnakのブログ」を参考にした。 | |
htempp://www.wsnak.com/wsnakblog/?p=409 |
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
/* | |
小型I2C接続 128x64 OLED ディスプレイの動作確認 | |
2016/07/23 edy | |
このスケッチはu8glibのサンプルをカスタマイズしたものです。 | |
Universal 8bit Graphics Library | |
https://github.com/olikraus/u8glib | |
*/ | |
#include "U8glib.h" |
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
//ロータリーエンコーダを試す(2) | |
// 2016/06/04 edy | |
// 2016/06/05 EX-ORを使わない | |
// | |
//How to use a quadrature encoder | |
//http://www.robotshop.com/media/files/PDF/tutorial-how-to-use-a-quadrature-encoder-rs011a.pdf | |
#include <LiquidCrystal.h> | |
// 接続ピンをして指定してライブラリを初期化 |
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
//ロータリーエンコーダを試す | |
// 2016/06/04 edy | |
// | |
//How to use a quadrature encoder | |
//http://www.robotshop.com/media/files/PDF/tutorial-how-to-use-a-quadrature-encoder-rs011a.pdf | |
#include <LiquidCrystal.h> | |
// 接続ピンをして指定してライブラリを初期化 | |
//LiquidCrystal(rs, enable, d4, d5, d6, d7) |
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
// RTC-8564をつないでみる。 | |
// 2016/04/29:edy | |
// 2016/04/30:detachInterrupt を使う。 | |
// 2016/05/01:変数名の変更、RTCとのやり取りはBCDで行うが、内部ではDECIMAL | |
// 2016/05/07:初期電源投入時の問題を回避 | |
// 2016/05/08:デジット6行16桁7セグメントLCDとつなぐ | |
// | |
//参考にしたサイト | |
// | |
//Arduinoで実験 (RTCモジュール) |