この記事は 半導体・ハードウェア開発 Advent Calendar 2017 - Qiita の6日目の記事です。 Advent-Calendarを埋めてくれるかた、今からでも募集中です!是非参加してください! 私一人では、クオリティのある記事を続けられそうにありません。。。(弱音) ソフトウェア分野でのテストフレームワークって、非常に多くあるように思う。 GoogleTest https://github.com/google/googletest CMake(CTest) https://cmake.org/cmake/help/v3.0/manual/ctest.1.html CppUnit https://freedesktop.org/wiki/Software/cppunit/ ただし、ハードウェア業界におけるテストフレームワークってあまり無いように思う。 主な理由として、
オシロスコープやデジタルマルチメータ, 電源, etc.など測定器をPCから制御する場合は、 Excel VBAやVisual BASIC/C++などでマクロを作る場合が普通です。 測定器メーカのサンプルプログラム例もあるしGUIも作成しやすく配布も楽です。 なんですがここではあえてPythonを利用した測定器制御について紹介しようと思います。 Pythonを推す理由としてはざっと以下です。 1.対話的な操作ができる。 2.スクリプトで思いつきをささっと試せる。 3.GUI, DB, Web系などもいける 4.測定後(データ収集)⇒解析(Scipy, Numpy)⇒可視化(Matplotlib)と一連の作業が統一してできる。 やり方は単純でPythonのctypesを利用してドライバのDLLから関数呼び出しを行うだけです。 ※ctypesはPythonのための外部関数ライブラリで Cと互換
目的 庭で家庭菜園をやってみようと一念発起してみたはいいものの、ちょっと旅行したり、目を離した隙に水やりを忘れて枯れていたら哀しいので、各種センサーを活用して、ある程度自動的に菜園を操業出来ないだろうかと思い、作ってみました。 全部一度にやろうとすると中々進まないので、下記のような感じでバージョンアップしていこうと思います。 菜園の状態(光量、温度、湿度、土の湿り気)を一定間隔でモニタリングし、インターネット経由で外部からも菜園の状態を監視できるようにする (注)今回の内容はここまで 土の湿り気等の情報を元に、菜園に自動的に散水する(他にも何かやることないかな…) 電源となる太陽光パネルを赤道儀のように動かす(できたらいいな…) 全体の構成 お粗末な絵ですが、全体像はこんな感じです。 もう少し詳しく書くと、下記のような構成になります。 菜園 太陽光パネル 20W+バッテリ(わたしたち電力さ
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く