Tipsというほどでもないが、音声帯域のファンクションジェネレータのデバッグの際に使用して非常に使いやすかったので
おすすめとして一項目設けた。DIGILENTというアメリカの会社が製造している
PC用デジタルオシロスコープ+ファンクションジェネレータ+ロジックアナライザ+パターンジェネレータ+電圧計+スペクトラムアナライザ+ネットワークアナライザで、
校正は出来ないので、商用としては使えないが、実験・研究用途には非常に重宝する。日本だと、有名どころで秋月電子通商で購入できる。
学生価格で購入したい場合は手続きがいるようである。
初代購入後にしばらくして2代目がほぼ同価格出たので、そこだけは少し残念であったが、それを補って余りある仕事をしてくれたと思う。
別項目で挙げた機械の製作の時に使用していた様子。DACはMCP4922を使い、差動アンプによりバイポーラの出力としている。
DIO 0がラッチ、DIO 1/2/3はSPIのDATA/CS/SCLKにあたる。Arduinoは通常16MHzだが、水晶発振子を20MHzにして、タイマでSPIを駆動させると、12bitのDACで
最高125kHz程度までは動かすことが出来るが、それ以上になると、DACの精度を落とすかパラレルDACを使う必要が出てくる。
最初はただのタイマに呼び出される関数内でラッチも呼んでいたが、ラッチまでのクロックが時々前後し、ジッタがかなり出てしまうため、
DACのラッチはタイマでハード的に駆動させたところ、ほぼジッタは消失し、予想通りの出力となるようになった。
<Su-Shee> 2010 is planned more or less as a refactoring year.
<DrForr_> A whole *year*? What physical plane of existence do you reside
on?
<Su-Shee> DrForr_: there's also bugs to fix and systems to care for and
things like that. it's not that we're locked into the closet
and a year later a new, shiny product is released. ;)
<DrForr_> Closet optional.
<Su-Shee> I'm not a wonderwoman refactoring half a million lines of perl
in a week, sorry. :)
<rindolf> Su-Shee: Chuck Norris refactors 10 millions lines of perl
before lunch.
<Su-Shee> rindolf: hm. that's the reason.. I'm not as hairy as chuck
norris and I don't have a beard...
<rindolf> Su-Shee: ah.
<rindolf> Su-Shee: Chuck Norris also wrote a complete Perl 6
implementation.
<Su-Shee> rindolf: I heard, he already wrote Perl 7.
<rindolf> Su-Shee: yes.
* rindolf wants to be as awesome as Chuck when he grows up.
<Su-Shee> rindolf: I envy you. I'll never be as awesome without a beard.
<rindolf> Su-Shee: heh.
<rindolf> Su-Shee: it doesn't matter if you're rigid on the outside as
long as you're rigid on the inside.
<Su-Shee> chuck norris doesn't make mistakes.
<rindolf> Su-Shee: Chuck Norris corrects God.
<Su-Shee> rindolf: I'll apply as his secretary.
<rindolf> Su-Shee: as Chuck's?
<Su-Shee> rindolf: yes.
<rindolf> Su-Shee: OK.
<rindolf> Chuck Norris doesn't code. When he sits next to a computer, it
just does whatever he wants.
<Su-Shee> I'll tell my boss tomorrow. Chuck is who he wants.
<rindolf> Su-Shee: Chuck Norris is his own boss.
<rindolf> Su-Shee: if you hire him, he'll tell your boss what to do.
<Su-Shee> good point.
-- Becoming as awesome as Chuck Norris is
-- #perl, Freenode
Don't read everything you believe.