2013-09-23から1日間の記事一覧

オシロスコープのメモ

OWON PDS5022T

RepRap controller boardの比較

http://reprap.org/wiki/Comparison_of_ElectronicsArduinoで動くもの ・RAMPS、Ultimaker electronics(すべてArduino Mega w/ ATmega1280)ARM32bitを使ったもの ・4pi(SAM3U), Smoothieboard(LPC1769)ステッピングモータドライバ ・A4988、DRV8825

3Dプリンタ Portabeeの組み立てとテスト

Portabeeを組み立てた。自分の場合は届いたリミットスイッチの回路が説明書のものと異なっていて Y方向のスイッチがうまく押せなかったので Y方向のパーツを本家サイトからダウンロードしてきて再設計して3Dプリンタで作った。 方向が逆である リミットスイ…

openFrameworksでDJのターンテーブルを描く

testApp.h #pragma once #include "ofMain.h" class testApp : public ofBaseApp{ public: void setup(); void update(); void draw(); void keyPressed (int key); void keyReleased(int key); void mouseMoved(int x, int y ); void mouseDragged(int x, i…

Arduinoでステッピングモータのマイクロステップ駆動

ここを参考に。 http://nekosan0.bake-neko.net/connection_stepper.html #include <MsTimer2.h> volatile int iCount; void counting() { iCount++; if (iCount==960) { iCount = 0; } } void setup() { Serial.begin(9600); pinMode(6, OUTPUT); //oc0a (PD6) for X pi</mstimer2.h>…

Arduino UNOで10bit PWM

ここを参考にしてコード書いた。 http://forum.arduino.cc/index.php/topic,41964.0.html Timer1が16bitなのでこれを使えば良いと言っている。PWMはどれでも10bitモードが使えるのかな? #define ledPin 9 void setup() { /********************************…

マイコンで使うシフト演算

http://elec-studio.eco.coocan.jp/tool_soft02.html例えば次の例。 TCCR1B &= ~(1 << CS12);これはCS12のみをゼロにする(フィルターをかける)コード。CS12はビット番号を取得するグローバル変数。 (0 or 1の値と思っていたら違った) CS12は2番なので、1…