以前試したサーボを動かす方法は、20msの間に、heightとlowをつくる方法だった。 今回は、可変抵抗をセンサーにして、前回の方法も含め3つの方法で試してみる。 1 │ analogWriteコマンドを使う void setup(){ pinMode(3,OUTPUT); } void loop(){ int val=analogRead(0)/4; // (0~1023)/4 analogWrite(3,val); // (0~255) delay(20); } この方法は、 Arduino基盤にpwmと書いてあるポートにだけ可能。 分解能は、256 ※サーボのメーカーによっては、動かないときがある。 2 │ Servoオブジェクトを使う ここからオブジェクトをダウンロードして、Arduinoのフォルダのなかのlib/targets/librariesに入れてArduinoを
This site will no longer be updated. Current projects can be seen at my new site. ben fry This is an archive of work developed while at the MIT Media Laboratory pursuing my doctoral degree. I completed my Ph.D. in June 2004 with my dissertation titled Computational Information Design A short biography
This site archives my work from 2001–present. I'm an artist, a professor at UCLA, a co-founder of Processing and the Processing Foundation, and I co-founded Feral File in 2020. In the tradition of the 90s WWW, this site is always a work in progress and rough around the edges. For more regular updates, check out the studio INSTAGRAM, TWITTER, and VIMEO. See the INFORMATION page for more links, cont
METAPHORは、デザインとエンジニアリングを密接に関連付けたより良いプロダクトを制作することをミッションとして活動しています。企業のコーポレートサイトやプロモーションサイト、デジタル・サイネージ、映像、インスタレーション、グラフィックなど、ご提案から制作まで総合的にサポートいたします。
I tend to avoid trying new things until the last minute. I usually have to be dragged kicking and pouting into new technology or a new way of thinking. However, if I need to learn something new for a client, though I will still kick and pout, I find the threat of a shitty deadline is just the thing to allow me to dive into something new. JBox2D is the new thing that is occupying my time these days
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く