2018-02-01から1ヶ月間の記事一覧

サーボのハンチングの防止

対処療法として、writeMicroseconds()して動作完了したらdetach()することで、振動を抑える(そもそもPWMを切ってしまう)ことにした。 均衡点付近で永久に振動していることを考えると、スライディングモード制御などが使えるんだろうか。 #include <Servo.h> Servo s</servo.h>…

サーボの原理

RCサーボの中身

Arduinoでサーボ制御

write()ではなく、writeMicroseconds()を使う http://tetsuakibaba.jp/index.php?page=workshop/ServoBasis/main #include <Servo.h> Servo sv; void setup() { Serial.begin(9600); sv.attach(9); } void loop() { for(int i=0;i<180;i++){ int j = map(i,0,180,800,</servo.h>…

ダウンコンバージョンとダウンサンプリング、間引きの違い

http://ednjapan.com/edn/articles/1009/01/news112.html 基本的には間引き(decimation)を利用することから、ダウンコンバージョン、ダウンサンプリング、間引きは同一のものとして扱われるとのこと。

Jupyter notebookをPythonスクリプトに変換する

https://stackoverflow.com/questions/17077494/how-do-i-convert-a-ipython-notebook-into-a-python-file-via-commandline $ jupyter nbconvert --to script [YOUR_NOTEBOOK].ipynb

Jupyter notebookを起動時にPythonスクリプト(スタートアップスクリプト)を実行する

グラフのインライン表示の設定と、グラフのダークカラースキーム対応の設定をしたい。 ~/.ipython/profile_default/startup/load_matplotlib_for_dark_colorscheme.ipy %matplotlib inline from jupyterthemes import jtplot jtplot.style('monokai')いちい…

jupyter notebookの設定(vimキーバインド&カラースキーム)

0. jupyter-nbextensions(contrib?)を入れる https://github.com/ipython-contrib/jupyter_contrib_nbextensions sudo pip install jupyter_contrib_nbextensions jupyter contrib nbextension install --user 1. jupyter-vimbindingを入れる https://github…

SentdexのPythonによるMachine learningのチュートリアル

https://www.youtube.com/playlist?list=PLQVvvaa0QuDfKTOs3Keq_kaG2P55YRn5v

Scikit-learnのTutorial集

https://www.youtube.com/playlist?list=PLDVKrmVEl_Wt0WoaQqDfRVt9EK1lQjZu5